RE: [PHP] installing curl
| From: | hadi | Date: | Thu, 12 Feb 2015 11:42:07 +0000 |
| Subject: | RE: [PHP] installing curl | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324435@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: hadi [mailto:almarzuki2011@hotmail.com]
> Sent: Thursday, February 12, 2015 2:15 PM
> To: ash@ashleysheridan.co.uk
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] installing curl
>
>
>
> > -----Original Message-----
> > From: Ashley Sheridan [mailto:ash@ashleysheridan.co.uk]
> > Sent: Wednesday, February 11, 2015 12:22 AM
> > To: hadi
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] installing curl
> >
> > On Wed, 2015-02-11 at 00:13 +0300, hadi wrote:
> > > Hi,
> > >
> > > I have php 5.6.5 on centos 4.5 64bit.
> > > Im unable to install curl. And generate so file.
> > > I have tried all the possibilities.
> > >
> > > I have tried this command:-
> > > ./configure --with-curl=/root/php-5.6.5/ext/curl/libs --with-mysql
> > > --with-mysqli --with-apxs2=/usr/local/apache2/bin/apxs
> > >
> > >
> > > Thanks and regards
> > >
> > >
> > >
> >
> > Hi Hadi,
> >
> > As you're compiling from source it's possible that you don't have the
> > source header files for cURL installed. I don't know what platform
> > you're building this on but it looks like Linux. Which distro, and is
> > there any reason why you're compiling from scratch and not using the
> repositories to build for you?
> >
> > You also didn't mention what error message you're getting (which you
> > presumably would if you're unable to install cURL when you compile
> > PHP)
>
> im getting this error
>
> PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
> '/root/php-5.6.5/ext/curl/modules/curl.so' in Unknown on line 0
> Warning: PHP Startup: Invalid library (maybe not a PHP library) '/root/php-
> 5.6.5/ext/curl/modules/curl.so' in Unknown on line 0
>
> I have compiled curl extension like this
>
> phpize
> ./configure
> make
> make install
i fixed the problem by adding extension_dir =
"/usr/local/lib/php/extensions/no-debug-zts-20131226/"
to php.ini
thanks