Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Ive got an old installation of PEAR and don have the permissions to install a new version – what now?

0
Posted

Ive got an old installation of PEAR and don have the permissions to install a new version – what now?

0

If $ which pear gives you something like /usr/local/bin/pear and $ pear -V shows a very old version or if you don’t want to use it for other reasons, you have to install PEAR in your home directory. Go to http://pear.php.net/go-pear, save as gopear.php and do $ php gopear.php or try $ lynx -source http://pear.php.net/go-pear | php -q. Use /home/user/pear as prefix while installing PEAR, where user is your username. Once the installation is done, edit your PATH variable to include your planned new PEAR directory before the old one. For example put a export PATH=/home/user/pear/bin:$PATH at the end of your ~/.bashrc or ~/.profile under Linux. $ echo $PATH should give you now /home/user/pear/bin:[…] $ which pear should result in /home/user/pear/bin/pear and $ pear -V something like “PEAR Version: 1.4.8” (at the time of writing) or newer. Check the latest stable version at http://pear.php.net/package/PEAR under Current Release. Now all you need is to set your include_path correctly, most

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123