Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have installed xampp 1.8 on my ubuntu 12.04. In /opt/lampp/lib/php/PEAR I can see there are two directory named PEAR and PHPUnit.

But when I run pear -V or phpunit from terminal it gives the below messages:

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

and

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

Why these messages are showing ? Do I need to install pear and phpunit again. If so how to do this as I still have PEAR and PHPUnit directory /opt/lampp/lib/php/

share|improve this question
    
Is there anyone who have faced this type of problem –  Haque Jun 12 '13 at 11:47
    
Should I ask this in stackoverflow ? –  Haque Jun 12 '13 at 17:10
add comment

1 Answer 1

You need to add the xampp bin/ directory to your $PATH variable; otherwise the executables cannot be found.

This could be done by e.g.

PATH=$PATH:/opt/lampp/lib/php/bin

in your .bashrc, so it gets automatically executed whenever you open a terminal.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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