-bash: Birne: Befehl nicht gefunden

1862
Mike

Beim Versuch, phpDoc über das Terminal zu installieren, erhalte ich folgende Fehlermeldung:

-bash: pear: command not found

Obwohl ich gerade Birne installiert habe.

Vor dem Versuch, phpDoc zu installieren, habe ich Pear installiert und die folgende Warnung erhalten:

WARNING! The include_path defined in the currently used php.ini does not contain the PEAR PHP directory you just specified: </Users/Mike/pear/share/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.  Current include path : .: Configured directory : /Users/Mike/pear/share/pear Currently used php.ini (guess) :  Press Enter to continue:   ** WARNING! Old version found at /Users/Mike/pear/bin, please remove it or be sure to use the new /Users/Mike/pear/bin/pear command  The 'pear' command is now at your service at /Users/Mike/pear/bin/pear  ** The 'pear' command is not currently in your PATH, so you need to ** use '/Users/Mike/pear/bin/pear' until you have added ** '/Users/Mike/pear/bin' 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://pear.php.net/manual/  Thanks for using go-pear! 

Kann mir jemand bitte erklären, was ich tun muss, um das Problem zu beheben? Ich bin sicher, es ist etwas einfaches, aber ich habe keine Ahnung, wo ich anfangen soll.

1

1 Antwort auf die Frage

2
Der Hochstapler

Es steht genau dort in Ihrer Ausgabe:

** The 'pear' command is not currently in your PATH, so you need to ** use '/Users/Mike/pear/bin/pear' until you have added ** '/Users/Mike/pear/bin' to your PATH environment variable. 

Um den angegebenen Befehl zu Ihrem PATHhinzuzufügen, fügen Sie export PATH=$PATH:/Users/Mike/pear/bin/pearzu Ihrem hinzu ~/.bashrc.

Wie mache ich das? Ist das in der PHP.ini-Datei? Mike vor 10 Jahren 0
@ Mike: Siehe http://stackoverflow.com/a/11709409/259953 Der Hochstapler vor 10 Jahren 0