I work with Red Hat Enterprise Linux 4, I installed apache and php5 with
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config

Normally the PEAR is already installed with php5 but when i write in terminal command line "pear install <package>" i have this message bash: pear: command not found

some one can help me please

    Either:

    • Pear is indeed not installed, in such case, you'll need to install it

    • Either the directory in which the pear command is stored does not belong to your path, in that case just update your path.

    Go to / cd / and then make a find . -name pear
    This should show you where pear is located. Once you know it, you can either update your path or make a soft link in /usr/bin directory

    ln -s you_current_pear_location /usr/bin/pear

      Write a Reply...