Binary Expressions

2005-7-11

PEAR: Command Not Found

Filed under: — The Warden @ 11:32 am

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.

One Response to “PEAR: Command Not Found”

  1. Ben Says:

    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!.

Take back your mailbox - CAUCE.org

Powered By Wordpress PHP: Hypertext Preprocessor MySQL Powered Download Juice, the cross-platform podcast receiver
Proud To Be Canadian Get Firefox Valid XHTML Valid CSS
<NO>OOXML Logo


26 queries. 0.256 seconds.
Copyright © 2004 - 2005 by Adam Douglas