Page 1 of 1

Installing PECL extension on Linux

Posted: Thu Aug 30, 2007 4:58 am
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

Posted: Thu Aug 30, 2007 5:33 am
by volka

Posted: Thu Aug 30, 2007 10:11 pm
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

Posted: Fri Aug 31, 2007 3:13 am
by CoderGoblin
Which linux ?

Link to get the installation manual

Posted: Fri Aug 31, 2007 4:45 am
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

Re: Link to get the installation manual

Posted: Fri Aug 31, 2007 5:54 am
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 ;)

Posted: Mon Sep 03, 2007 9:16 pm
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