Forum Moderators: coopster

Message Too Old, No Replies

Pear: command not found

Pear script not present after installation of PHP

         

The_Warden

5:39 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



Hi. I've installed PHP 4.3.11 from source on to an OpenBSD i386 server however I've found out that pear script doesn't appear to be present. I discovered this when trying to install some pear packages doing "pear install packagename". I get a returned error of "-bash: pear: command not found". I've tried locating the pear script with locate and find but came up empty. I thought it might have been that the pear script was not in my path or execute permission not set however pear script is not present.

In the past it was located at /usr/local/bin/pear. I've checked and checked and it's certain that PHP should install pear. I've found the pear.conf, pear data, and pear libs but no pear script. In my situation I have to have PHP installed from source so my configuration requirements are met, therefore installing PHP from a package or port is not an option.

Please if anyone knows of how to resolve this problem please let me know! I've exhausted all ideas I can think of and this is my third day trying to resolve the problem. I've installed PHP 4 times now and still no pear script file found.

Thanks!

ergophobe

7:21 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hmm.... I thought that with recent versions of PHP, PEAR was automatically installed in a subdir of the PHP install, so it would be at

/path/to/php/PEAR/

The_Warden

4:05 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



Yes Pear is installed with PHP however I've not been able to locate the pear script file. I've found the installed directory of PHP but no reference to the pear script file which in the past was located at /usr/local/bin/pear.

I've been unable to locate a solution to this problem. I'll do whatever it takes to resolve this problem.

MattyMoose

5:03 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



try running this:

find / -name 'pear'

Or:

find / -name '*pear*'

That should find the pear executable for you. If it doesn't then it's not installed and you've maybe missed a ./configure switch.

coopster

8:23 pm on Jul 8, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You didn't compile PHP without it did you? From the PEAR installation pages ...


If you have a recent installation of PHP, you can relax: The PEAR base installation is already there, unless you have compiled your PHP with the ./configure flag --without-pear.