note 114495 added to http.install
| From: | Anonymous | Date: | Thu, 27 Feb 2014 14:17:43 +0000 |
| Subject: | note 114495 added to http.install | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198739@lists.php.net to get a copy of this message | ||
Hi guys
I am configuring this on Ubuntu system and when I tried to run
pecl install pecl_http
it used to fail because it did not find pcre.h
I found out that I need to apt-get install
libcurl4-openssl-dev
libevent-dev
libpcre3-dev - here is where the pcre.h is available
then I run it again and when it asks me for the zlib, libcurl and libevent I specify the respective
folders where the src of each of them is located.
So in that way it worked, and the pecl managed to corectly compile a brand new 'http.so'
just under '/usr/lib/php5/20090626+lfs/http.so'
Then under both of
/etc/php5/apache2/php.ini
and
/etc/php5/cli/php.ini
I inserted this:
extension=/usr/lib/php5/20090626+lfs/http.so
I'am really not sure which of the php.ini files above is the really correct one.
PS: Sources of zlib, libcurl and libevent if you need to download them manually:
zlib: http://zlib.net/zlib-1.2.8.tar.gz
libcurl: http://curl.haxx.se/download/curl-7.35.0.tar.gz
libevent: https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/http.install.php
Edit -- https://master.php.net/note/edit/114495
Del: integrated -- https://master.php.net/note/delete/114495/integrated
Del: useless -- https://master.php.net/note/delete/114495/useless
Del: bad code -- https://master.php.net/note/delete/114495/bad+code
Del: spam -- https://master.php.net/note/delete/114495/spam
Del: non-english -- https://master.php.net/note/delete/114495/non-english
Del: in docs -- https://master.php.net/note/delete/114495/in+docs
Del: other reasons-- https://master.php.net/note/delete/114495
Reject -- https://master.php.net/note/reject/114495
Search -- https://master.php.net/manage/user-notes.php