如何在linux上启用xampp中的pear和phpunit


How to enable pear and phpunit in xampp on linux?

我已经在我的ubuntu 12.04操作系统上安装了examplep 1.8.0。它已成功安装。但我想启用pear和phpunit。我可以在/opt/lamp/lib/php/pear和/opt/lampp/lib/php/phpunit中分别看到pear和phpunit目录但如果我从终端运行pear-v,它会说

The program 'pear' is currently not installed. You can install it by typing:
sudo apt-get install php-pear

请帮助我在xampp中启用pear和phpunit。

提前感谢

/opt/lampp/lib/bin/添加到您的$PATH