PEAR seems determined to install into my home directory instead of wherever it usually goes:

user@PC:/usr/share/lib$ pear config-get php_dir

I've installed PEAR a few times in the past but have never seen it do this. I installed with the go-pear.phar PHP script (https://pear.php.net/manual/en/installation.getting.php) and apt-get doesn't see the package to remove it so I can start over.

Any ideas on how to remove it and/or get it installed to the right place (wherever that is)?

  • That's more a pear question than one related to Elementary OS. – Ken Kinder Jan 8 at 21:03
  • Welcome to eOS SE. This Stack Exchange site is for elementary OS and things related to elementary OS. This question does not appear to be about elementary OS, within the scope defined in the help center. – Hasan Jan 9 at 8:14

Please try to get PEAR using apt-get first,

apt-get install php-pear

If the above command fails, please execute the commands bellow with a higher php version than 5.3,

wget http://pear.php.net/go-pear.phar
php go-pear.phar

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.