Sangwal’s Weblog

Just another WordPress.com weblog

Archive for May 2008

where is PEAR package installed?

without comments

Being a new user of (Ubuntu) Linux, there are times when I simply run out of tools I know about to do a particular task. The use of search engines in such a situation can be helpful. However, the query given to the search engine might not yield any good result due to a malformed query.

I today stuck at the problem of finding the location of PEAR package in Linux. I knew it was installed but could not find which directory it was installed in. After searching a lot in vain, pear command itself came to my rescue.

pear config-show

This command lists many configuration options of PEAR and the path (directory) information. The output from the above command on my computer contained line:

PEAR directory php_dir /usr/share/php

The directory where PEAR was installed was /usr/share/php as shown.

Written by sangwal

May 21, 2008 at 2:19 am

Posted in Uncategorized