RE: installing curl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: hadi [mailto:almarzuki2011@xxxxxxxxxxx]
> Sent: Thursday, February 12, 2015 2:15 PM
> To: ash@xxxxxxxxxxxxxxxxxxxx
> Cc: php-general@xxxxxxxxxxxxx
> Subject: RE:  installing curl
> 
> 
> 
> > -----Original Message-----
> > From: Ashley Sheridan [mailto:ash@xxxxxxxxxxxxxxxxxxxx]
> > Sent: Wednesday, February 11, 2015 12:22 AM
> > To: hadi
> > Cc: php-general@xxxxxxxxxxxxx
> > Subject: Re:  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 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux