1

При попытке установить phpDoc через Терминал я получаю следующую ошибку:

-bash: pear: command not found

Хотя я только что установил грушу.

Перед попыткой установить phpDoc я установил Pear и получил следующее предупреждение:

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!

Может кто-нибудь, пожалуйста, проведите меня через то, что мне нужно сделать, чтобы это исправить? Я уверен, что это что-то простое, но я не знаю, с чего начать.

1 ответ1

2

Это говорит прямо в вашем выводе:

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

Чтобы добавить данную команду в ваш PATH , добавьте export PATH=$PATH:/Users/Mike/pear/bin/pear в ваш ~/.bashrc .

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .