On some hosts, you may not have permission to modify the system's default installation of pear, but you will want to install your own pear package. In this case there are also simple ways to achieve:
First create a pear profile in your own home. PEARRC:
$ pear config-create $HOME. PEARRC
If all goes well, go directly to the next step, or run the following command:
$ pear config-set download_dir /home/(username)/tmp/pear/cache
$ pear config-set cache_dir /home/(username)/tmp/pear/cache
$ pear config-set temp_dir /home/(username)/tmp/pear/temp
Then you can start installing pear, which will be installed with pear's dependent file:
$ Pear Install-o Pear
After this step, pear has been installed, if you also want to install other package, then:
$ pear Install Pear/packagename
So you have a custom pear package, and you need to thank you for writing some extra code to call these pear in the program, which is not in your include_path.
PhP4
PLAIN TEXT
CODE:
ini_set(
'include_path',
ini_get('include_path').PATH_SEPARATOR."/home/(youruser)/pear/php"
);
php5
PLAIN TEXT
CODE:
set_include_path(
get_include_path().
PATH_SEPARATOR.'/home/(youruser)/pear/php'
);