-bash: pear: comando não encontrado

1

Ao tentar instalar o phpDoc através do Terminal, recebo o seguinte erro:

-bash: pear: command not found

Apesar de eu ter acabado de instalar a pêra.

Antes de tentar instalar o phpDoc, instalei o Pear e recebi o seguinte aviso:

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!

Alguém por favor pode me explicar o que eu preciso fazer para consertar isso? Tenho certeza de que é algo simples, mas não sei por onde começar.

    
por Mike 17.10.2013 / 18:22

1 resposta

2

Diz logo na sua saída:

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

Para adicionar o comando fornecido ao seu PATH , adicione export PATH=$PATH:/Users/Mike/pear/bin/pear ao seu ~/.bashrc .

    
por 17.10.2013 / 18:24

Tags