Jump to content
The Uniform Server Community
reenyg

Plug in - PEAR

Recommended Posts

Hi

 

The plug in installation, Uniform Srever 3.2, stops after the following error message(s)

Error  File Not Found: /repository/php-src/pear/PEAR.php,v

Fatal error: Class 'PEAR' not found in W:\home\admin\WWW\plugins\PHP-pear\Uni_go-pear.php on line 681

 

Is there a work around for this?

 

Reeny

Share this post


Link to post
Share on other sites

Using Windows XP:

 

I've downloaded the PEAR installation script from http://go-pear.org/ and stored it at "c:\UniServer3_2a\diskw\home\admin\WWW\plugins\PHP-pear\Uni-go.php"

 

(I installed Uni on the root of C:)

 

During installation, I get the following errors:

 

The requested URL /co.php/pear-core/PEAR.php was not found on this server.

 

and

 

Fatal error: Class 'PEAR' not found in W:\home\admin\WWW\plugins\PHP-pear\Uni_go-pear.php on line 668

 

Am I missing the point here?

Share this post


Link to post
Share on other sites

hmm.. it should not really have that error, download a new copy and see if it will work. If it doesn't, go to http://www.go-pear.com and download the PEAR.php file from there. The main PEAR.php file that is and put it in the same folder as the go-pear.php file.

 

BTW: When downloading the new go-pear file, you do not have to name it the same name. You can name it go-pear.php :angry:

Share this post


Link to post
Share on other sites

I've done all of the above/below,

- downloaded newest version of PEAR, PHP, Apache

- tried all sorts of work-arounds

- copy the entire PEAR tar into the Apache subdirectory

- copy the entire PEAR tar into the PHP subdirectory

- change Apache conf file to add directories and privileges for PHP and PEAR trees

- Sent various emails to support groups and contacts with no response

 

Bottom line, the PEAR 1.4.5 installer (go-pear,v 1.77 2005/09/15 23:52:42) doesn't work on Windows XP Prof SP1 with Apache 2.0.54 and PHP 5.0.4 (cli) (built: Mar 31 2005 02:45:48), Copyright © 1997-2004 The PHP Group, Zend Engine v2.0.4-dev, Copyright © 1998-2004 Zend Technologies

 

I've attached the go_pear.php output from a DOS command prompt. go_pear_bug.htm

 

Is PEAR stable? I'm looking for something like PEAR that installs. I've been strugling with this bug for 3-4 weeks. Every web posting I've seen says "download the newest version" which I've done several times. :) :D

 

So before someone says download the newest version or something like that, please check the above detailed version numbers against what you are looking at to ensure it's not already the newest version. :o

 

I'm seriously looking at Ruby on Rails. It seems to be more stable, easier to install and very well supported. :lol:

 

Marc

 

hmm.. it should not really have that error, download a new copy and see if it will work. If it doesn't, go to http://www.go-pear.com and download the PEAR.php file from there. The main PEAR.php file that is and put it in the same folder as the go-pear.php file.

 

BTW: When downloading the new go-pear file, you do not have to name it the same name. You can name it go-pear.php :D

1784[/snapback]

Share this post


Link to post
Share on other sites

Actually that works for some as you can see.

 

For yours, i'm sure you caused other problems while doing this:

I've done all of the above/below,

- downloaded newest version of PEAR, PHP, Apache

- tried all sorts of work-arounds

- copy the entire PEAR tar into the Apache subdirectory

- copy the entire PEAR tar into the PHP subdirectory

- change Apache conf file to add directories and privileges for PHP and PEAR trees

- Sent various emails to support groups and contacts with no response

1969[/snapback]

 

 

A. Do you have single installations of PHP? Apache? or MySQL?

 

B. When you said you updated PHP and Apache, how did you do that?

 

C. What did you chnage in the Apache Config File?

Share this post


Link to post
Share on other sites
Actually that works for some as you can see.

 

For yours, i'm sure you caused other problems while doing this:

A. Do you have single installations of PHP? Apache? or MySQL?

Single installation of PHP and Apache. I'm running against Oracle with PHP currently working and reading/writing to Oracle tables.

 

B. When you said you updated PHP and Apache, how did you do that?

I downloaded the newest post of Apache (non beta), PHP and PEAR. I installed Apache and PHP from scratch on a new machine.

 

C. What did you chnage in the Apache Config File?

I have added <Directory></Directory> items for the PHP and PEAR and custom directories, I have enabled CGI.

1970[/snapback]

Share this post


Link to post
Share on other sites

How about pressing the "Live IRC Support" button at the top of the site?

 

I'll be there to help :lol:

Share this post


Link to post
Share on other sites
Ok

>> Please answer the question just for the PC which the server is on so you do not create a confusion.

 

I did - the PC on which the server is located is the reference PC in all of my above/below posts. I've only installed PHP and Apache once. I've tried to install PEAR many times.

 

As a note, I just installed Ruby on Rails yesterday and it went very nicely.  Some hickups but all were documented with corrective actions.  The PEAR may be a null issue now.  It seems Ruby on Rails has some nice features.  The jury is still out.

 

Thanks :lol:

1980[/snapback]

Share this post


Link to post
Share on other sites

The problem is the other installation of PHP.

 

If you have another installation on your computer, as it says on that file you attached you have a PHP installation in C:/php, you need to remove it for PEAR to work on Uniform Server. If you have removed it, it might have left some dust on your PC/Registry.

 

They usually leave this file: LIBMYSQL.DLL in the C:/Windows or C:/Windows/System32 folder. Delete it! It causes problems and sometimes blcoks you from starting Uniform Server :lol:

Share this post


Link to post
Share on other sites
The problem is the other installation of PHP.

 

If you have another installation on your computer, as it says on that file you attached you have a PHP installation in C:/php, you need to remove it for PEAR to work on Uniform Server. If you have removed it, it might have left some dust on your PC/Registry.

 

They usually leave this file: LIBMYSQL.DLL in the C:/Windows or C:/Windows/System32 folder. Delete it! It causes problems and sometimes blcoks you from starting Uniform Server <_<

1989[/snapback]

 

 

Tried the 'Install Pear' from Admin Panel 2.0 in Uniform Server 3.3 . It ended with the following message

Apache/1.3.34 Server at cvs.php.net Port 80
ok Bootstrapping: Archive_Tar............(remote) ok Bootstrapping: Console_Getopt.........(remote) ok Downloading package: DB...............ok Downloading package: Net_Socket.......ok Downloading package: Net_SMTP.........ok Downloading package: Mail.............ok Downloading package: XML_Parser.......ok Downloading package: PHPUnit..........ok 
Fatal error: Class 'PEAR' not found in W:\home\admin\www\plugins\pear\go_pear.php on line 668

 

Absence of Pear is brining up some errors when testing some of the opensource CRM applications (eg vTigerCRM)

 

LIBMYSQL.DLL is not there in C:\Windows\System32 folder or anywhere in the 'path'.

Looking forward to a solution to this puzzle...

Share this post


Link to post
Share on other sites

So, I've downloaded Uniform 3.3... But the pear installer crash at the point shown in the next lines. With the go-pear.php copied from go-pear.org, it's even worse! What do I have to do to have PEAR installed and its package manager up running ?

 

|||||||... 70%

|||||||||| 100% Downloading PHPUnit-1.3.2.tgz ...

 

Starting installation ...

Loading zlib: ok

Downloading package: PEAR-stable......ok

Downloading package: Archive_Tar-stable....ok

Downloading package: Console_Getopt-stable....ok

Downloading package: XML_RPC-stable....ok

Downloading package: Pager............ok

Downloading package: HTML_Template_IT....ok

Downloading package: Net_UserAgent_Detect....ok

Downloading package: PEAR_Frontend_Web....ok

Bootstrapping: PEAR...................(remote)

 

Found

The document has moved here.

 

Apache/1.3.34 Server at cvs.php.net Port 80

 

ok

Bootstrapping: Archive_Tar............(remote) ok

Bootstrapping: Console_Getopt.........(remote) ok

Downloading package: DB...............ok

Downloading package: Net_Socket.......ok

Downloading package: Net_SMTP.........ok

Downloading package: Mail.............ok

Downloading package: XML_Parser.......ok

Downloading package: PHPUnit..........ok

 

Fatal error: Class 'PEAR' not found in W:\home\admin\www\plugins\pear\go_pear.php on line 668

Share this post


Link to post
Share on other sites

So if I understand you well, I have to put the PEAR.php file in the

w:\home\admin\www\plugins\pear

directory. Am I right?

 

I'm not sure I have the correct pear.php file (why don't you give a direct link: it's very difficult to find trace "pear.php" among all "pear.php.net" occurences) but I tried... downloaded it... put it in the above mentioned directory... stopped the server... restarted it again... launched the Install Pear process... and failed at exactly the same point... <_<

Share this post


Link to post
Share on other sites

The PEAR.php I have come from another PEAR installation. Its header is

/**
* PEAR, the PHP Extension and Application Repository
*
* PEAR class and PEAR_Error class
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt.  If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category   pear
* @package    PEAR
* @author     Sterling Hughes <sterling@php.net>
* @author     Stig Bakken <ssb@php.net>
* @author     Tomas V.V.Cox <cox@idecnet.com>
* @author     Greg Beaver <cellog@php.net>
* @copyright  1997-2006 The PHP Group
* @license    http://www.php.net/license/3_0.txt  PHP License 3.0
* @version    CVS: $Id: PEAR.php,v 1.97 2006/01/06 04:47:36 cellog Exp $
* @link       http://pear.php.net/package/PEAR
* @since      File available since Release 0.1
*/

Is it the correct file ?

 

As I have said, when I put this file in the same directory as your go-pear.php file (ie, \diskw\home\admin\www\plugins\pear\), I still have the problem. Even, if I put a explicit mention of this path in the include_path variable of php.ini.

 

And when I replace your go-pear.php file with the current one at http://go-pear.org I have this error message:

Error
Sorry! PEAR_Frontend_Web is not yet compatible
with PEAR 1.4.x. A new version will be available soon.
Until then, you may install the CLI version of PEAR,
or grab the CVS version of PEAR_Frontend_Web via
anonymous CVS (WARNING: experienced developers only)

 

What can I do, now?

Share this post


Link to post
Share on other sites

I have no idea... i will look into it as i said. I am not the developer of PEAR and dont use it much so i do not know what the problem is, but i will try and fix this for Unifom Server so please have patience.

 

Thanks

Share this post


Link to post
Share on other sites

I've managed to get pear working on uniserver after receiving all the errors you guys all have.

 

Open up a command line window, ( Start > Run > "command" > Enter )

 

run the following commands.

 

w:
cd\
cd usr
cd local
cd php
php -r "readfile('http://pear.php.net/go-pear');" > go-pear
php go-pear

 

The installer should run perfectly if your running this as administrator.

 

Hope this helps, it worked for me after a couple weeks of frustration.

Share this post


Link to post
Share on other sites

The installer should run perfectly if your running this as administrator.

 

Hope this helps, it worked for me after a couple weeks of frustration.

2310[/snapback]

 

Thanks a lot, the problem is solved!

 

W:\>cd usr

 

W:\usr>cd local

 

W:\usr\local>cd php

 

W:\usr\local\php>php -r "readfile('http://pear.php.net/go-pear');"  > go-pear

 

W:\usr\local\php> php go-pear

Welcome to go-pear!

 

Go-pear will install the 'pear' command and all the files needed by

it.  This command is your tool for PEAR installation and maintenance.

 

Use 'php go-pear local' to install a local copy of PEAR.

 

Go-pear also lets you download and install the PEAR packages bundled

with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit.

 

 

If you wish to abort, press Control-C now, or press Enter to continue:

 

HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none::

 

Below is a suggested file layout for your new PEAR installation.  To

change individual locations, type the number in front of the

directory.  Type 'all' to change all of them or simply press Enter to

accept these locations.

 

1. Installation prefix          : W:\usr\local\php

2. Binaries directory            : $prefix

3. PHP code directory ($php_dir) : $prefix\pear

4. Documentation base directory  : $php_dir\docs

5. Data base directory          : $php_dir\data

6. Tests base directory          : $php_dir\tests

7. php.exe path                  : W:\usr\local\php\php.exe

 

1-7, 'all' or Enter to continue:

 

The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,

Mail, XML_Parser, PHPUnit.

Would you like to install these as well? [Y/n] : y

 

Loading zlib: ok

Downloading package: PEAR-stable......ok

Downloading package: Archive_Tar-stable....ok

Downloading package: Console_Getopt-stable....ok

Downloading package: XML_RPC-stable....ok

Bootstrapping: PEAR...................(remote) ok

Bootstrapping: Archive_Tar............(remote) ok

Bootstrapping: Console_Getopt.........(remote) ok

Downloading package: DB...............ok

Downloading package: Net_Socket.......ok

Downloading package: Net_SMTP.........ok

Downloading package: Mail.............ok

Downloading package: XML_Parser.......ok

Downloading package: PHPUnit..........ok

Extracting installer..................ok

warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)

warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)

pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)

pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)

 

pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)

 

install ok: channel://pear.php.net/PEAR-1.4.6

install ok: channel://pear.php.net/Archive_Tar-1.3.1

install ok: channel://pear.php.net/Console_Getopt-1.2

install ok: channel://pear.php.net/XML_RPC-1.4.5

install ok: channel://pear.php.net/DB-1.7.6

install ok: channel://pear.php.net/Net_Socket-1.0.6

pear/Net_SMTP can optionally use package "pear/Auth_SASL"

install ok: channel://pear.php.net/Net_SMTP-1.2.7

install ok: channel://pear.php.net/Mail-1.1.9

install ok: channel://pear.php.net/XML_Parser-1.2.7

pear/PHPUnit can optionally use package "pear/PHP_Compat"

install ok: channel://pear.php.net/PHPUnit-1.3.2

 

******************************************************************************

WARNING!  The include_path defined in the currently used php.ini does not

contain the PEAR PHP directory you just specified:

<W:\usr\local\php\pear>

If the specified directory is also not in the include_path used by

your scripts, you will have problems getting any PEAR packages working.

 

 

Would you like to alter php.ini <W:\usr\local\php\php.ini>? [Y/n] : y

 

php.ini <W:\usr\local\php\php.ini> include_path updated.

 

Current include path          : .;/usr/local/PHP/includes;/usr/local/PHP/pear

Configured directory          : W:\usr\local\php\pear

Currently used php.ini (guess) : W:\usr\local\php\php.ini

Press Enter to continue:

 

The 'pear' command is now at your service at w:\usr\local\php\pear.bat

 

** The 'pear' command is not currently in your PATH, so you need to

** use 'w:\usr\local\php\pear.bat' until you have added

** 'W:\usr\local\php' to your PATH environment variable.

 

Run it without parameters to see the available actions, try 'pear list'

to see what packages are installed, or 'pear help' for help.

 

For more information about PEAR, see:

 

  http://pear.php.net/faq.php

  http://cvs.php.net/co.php/pearweb/doc/pear...manager.txt?p=1

  http://pear.php.net/manual/

 

Thanks for using go-pear!

 

 

 

* WINDOWS ENVIRONMENT VARIABLES *

For convenience, a REG file is available under W:\usr\local\php\PEAR_ENV.reg .

This file creates ENV variables for the current user.

 

Double-click this file to add it to the current user registry.

 

 

W:\usr\local\php>

Share this post


Link to post
Share on other sites

No problem. Its not as nice as the web-based version, but perhaps it could be added to a .bat file and linked to the admin area. This should help alot of people, plus I think this keeps it up to date.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...