Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP pear not locating php executable

Tags:

php

pear

PHP pear is not locating the correct php executable. When I type pear config-show It is showing the following error.

/usr/local/bin/pear: line 28: /usr/local/Cellar/php55/5.5.36/bin/php: No such file or directory
/usr/local/bin/pear: line 28: exec: /usr/local/Cellar/php55/5.5.36/bin/php: cannot execute: No such file or directory

But when I execute which php I am getting

/usr/local/bin/php

How I should configure this in pear

like image 892
Unnikrishnan Avatar asked Feb 06 '26 12:02

Unnikrishnan


1 Answers

You need to set the location of the php binary. You can do this with the following:

$ pear config-set php_bin /usr/local/bin/php

If that doesn't work, you could link the non-existant php to the correct one:

$ sudo ln -s /usr/local/bin/php /usr/local/Cellar/php55/5.5.36/bin/php

I hope this helps.

like image 123
kguest Avatar answered Feb 08 '26 04:02

kguest



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!