Installing PECL extension on Linux

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
dennislee85
Forum Newbie
Posts: 15
Joined: Mon Mar 12, 2007 9:16 pm

Installing PECL extension on Linux

Post by dennislee85 »

hi,

i am new to PHP and Linux. Lately i need to use the PHP PECL HTTP extension to continue on my work. But somehow i do not know how i gonna install it onto my Linux server. I have downloaded the zipped files from PECL website, uploaded and unzipped in the server. But i do not know in which directory i should store the unzipped files and folder. Can anyone please elaborate some steps on how to install the extension?

thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

dennislee85
Forum Newbie
Posts: 15
Joined: Mon Mar 12, 2007 9:16 pm

Post by dennislee85 »

Hi,

I tried using pearl install to install the extension. But somehow i got this following error message.

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/extensions/dom.so' - /usr/lib/php5/extensions/dom.so: undefined symbol: php_realpath in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/extensions/xmlreader.so' - /usr/lib/php5/extensions/xmlreader.so: undefined symbol: php_dom_create_object in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/extensions/xmlwriter.so' - /usr/lib/php5/extensions/xmlwriter.so: undefined symbol: php_realpath in Unknown on line 0
/tmp/glibctestD6Gqfs:1:22: error: features.h: No such file or directory
ERROR: file ./docs/examples/tutorial.txt does not exist
Note that i have the dom.so, xmlreader.so, xmlwriter.so installed in the extension folder.

Please advise.

Thanks
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Which linux ?
websiteprogrammer
Forum Newbie
Posts: 1
Joined: Fri Aug 31, 2007 4:22 am

Link to get the installation manual

Post by websiteprogrammer »

Hi there, I think the PHP malual help will help you in this. Follow these links and you get lots of help

Install PECL

http://www.hardeepkapoor.com/php-manual ... .pecl.html

Let me know if you need more links
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Re: Link to get the installation manual

Post by volka »

websiteprogrammer wrote:Hi there, I think the PHP malual help will help you in this. Follow these links and you get lots of help

Install PECL

http://www.hardeepkapoor.com/php-manual ... .pecl.html

Let me know if you need more links
That's the same doc I posted, only yours isn't hosted by php.net ;)
dennislee85
Forum Newbie
Posts: 15
Joined: Mon Mar 12, 2007 9:16 pm

Post by dennislee85 »

Hi,

hi, i am new to Linux and PHP. Lately i am facing problems in installing PECL extension (HTTP). Installation guides i found was showing me to use pecl command or phpize to install, yet i found that i was unable to use this 2 commands as they were not installed. Below are some steps with problems i am facing:

1. phpsrcdir: does it means the directory where i can find the php.ini file (/etc/php5/apache2/....)? Or the directory where i can find all the extension.so (/usr/lib/php5/extension....)?

2. extracting the extension zip file(pecl_http-1.5.4.tar) into the phpsrcdir. After extraction, i am having a folder containing some .xml .h files.

3. i've tried using pear5 "install pecl_http-1.5.4" command but it shows that the system was unable to find the extesions ( dom.so, xmlread.so,xmlwriter.so) which i can find them inside my extension directory.

Please advise. Thanks alot for your kindness.

Regards,
Dennis
Post Reply