PEAR: Command Not Found
I recently installed PHP 4.3.11 from source (due to configuration requirements) on to an OpenBSD i386 v3.7 server. The installation went perfectly as it has many times before, however I found out that the PEAR script was not installed (normally in /usr/local/bin). 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 tried locating the PEAR script using “find / -name pear” and “/usr/libexec/locate.updatedb” then “locate -i pear”. The result came up empty with no PEAR script in the returned results. I double checked the PEAR documents, PHP documents and ./configure all three places stated PEAR is installed by default unless a parameter is provided at configure with –without-pear. I’m still not aware as to why the PEAR script was not installed however with help by SmallOne of #midgard I was able to resolve the problem manually. Here’s how it was resolved at the shell prompt.
- # cp pear.sh /usr/local/bin/pear
- # chmod 755 /usr/local/bin/pear
If anyone knows how the PEAR script could not have been installed please let me know, thanks.


November 16th, 2005 at 6:21 am
Hi,
On my RHEL 3.0 box.
I’ve run today pear upgrade-all, and it worked it upgraded all my pages, but then I’ve run pear install somepackage and I got the: command not found message, seems like the pear command has disappeared from my sistem.
I see that you have solved this prolem, but, where did you get the pear.sh to copy it to /usr/local/bin/ ??? I just dont have pear.sh on my system.
Thank you!.