Create a local PEAR

Source: Internet
Author: User
Create a local PEAR and read about creating a local PEAR. on some hosts, you may not have the permission to modify the system default to install pear, but want to install your own pear package. In this case, a simple method is also available: First, create a pear configuration file in your home. pearrc: $ pearconfig-create $ HOME. pearrc if everything goes well "> <LI

On some hosts, you may not have the permission to modify the system's default pear installation, but want to install your own pear package. In this case, there is also a simple way to achieve:

Create a pear configuration file under your home. pearrc:
$ Pear config-create $ HOME. pearrc

If everything goes well, proceed to the next step. otherwise, 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 to install pear, which will be connected to the pear dependency file:
$ Pear install-o PEAR

After this step, pear has been installed. if you want to install other packages, then:
$ Pear install pear/PackageName

In this way, you have a customized pear package. to call these pear packages in your program, you need to thank you for writing some additional code. after all, these codes are not in your shortde_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'
);
Author: volcano was published on March 13, 2007 at am.

Copyright information: This information can be reproduced at will. during reprinting, you must mark the original source and author information of the article in the form of hyperlinks and this statement.

Permanent link-http://www.ooso.net/index.php/archives/327

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.