note 114495 deleted from http.install by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:25:51 +0000 |
| Subject: | note 114495 deleted from http.install by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208096@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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