OpenVZ Forum


Home » General » Support » can't compile php with curl in openvz
can't compile php with curl in openvz [message #33291] Sat, 04 October 2008 16:05 Go to next message
michaelvv is currently offline  michaelvv
Messages: 7
Registered: October 2008
Junior Member
Hi OpenVz...

First to say this ISSUE works flawless on my Centos 5.2 box.

checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.15.5
checking for SSL support in libcurl... yes
checking how to run the C preprocessor... gcc -E
checking for openssl support in libcurl... yes
checking for openssl/crypto.h... yes
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... yes
checking for curl_version_info in -lcurl... yes
checking for curl_easy_strerror in -lcurl... yes
checking for curl_multi_strerror in -lcurl... yes


I had a problem with compiling php with curl in a openvz
containers centos 5.2 x86_64 , it give this error in PHP.

checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.15.5
checking for SSL support in libcurl... yes
checking how to run the C preprocessor... gcc -E
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no

I have the same curl packages on both setups , and my
php configure script looks like this :

./configure \
--with-mysql=/usr/local \
--with-mysqli=/usr/local/bin/mysql_config \
--enable-pcntl \
--enable-ftp \
--with-curl \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-gd-native-tt \
--with-ttf \
--with-freetype \
--with-freetype-dir=/usr/lib \
--with-xml \
--with-bz2 \
--with-zlib \
--enable-calendar \
--with-gettext \
--enable-track-vars \
--enable-sockets \
--enable-ctype \
--enable-bcmath \
--with-openssl \
--with-openssl-dir=/usr \
--with-apxs2=/usr/local/apache/bin/apxs \
--enable-magic-quotes \
--enable-cgi-redirect \
--disable-debug > $phpfile

Could it be an issue with PKG_CONFIG_PATH ???

So my questions is , are there someone out there , which
are able to compile php 5.2.6 with curl , without these
problems ????

php 5.2.6
CentOS release 5.2 (Final) x86_64
curl-devel-7.15.5-2.el5
curl-7.15.5-2.el5


/Michael












Re: can't compile php with curl in openvz [message #33293 is a reply to message #33291] Sat, 04 October 2008 19:19 Go to previous messageGo to next message
michaelvv is currently offline  michaelvv
Messages: 7
Registered: October 2008
Junior Member

Hi again

Sorry for my impatience....

This is an issue with the 64 bit libs, with curl need to
use...

I have added --with=libdir=/lib64 \ to my php configure
script and i figured out that these rpm-packages need to
only be installed as 64 bit...

curl-devel-7.15.5-2.el5
e2fsprogs-devel-1.39-15.el5
krb5-devel-1.6.1-25.el5
libidn-devel-0.6.5-1.1
openssl-devel-0.9.8b-10.el5

Then i works flawless again...

Weired it doesnt affect Centos 5.2 64 on my host system..

/Michael






Re: can't compile php with curl in openvz [message #39441 is a reply to message #33293] Fri, 23 April 2010 21:24 Go to previous message
rm31 is currently offline  rm31
Messages: 1
Registered: April 2010
Junior Member
michaelvv - you're a life saver!! somehow my CentOS box had the same problem with i386 vs x86_64 libs.
Previous Topic: Not seeing multicast on veth
Next Topic: 2.6.32 kernel - big improvement
Goto Forum:
  


Current Time: Mon May 13 11:04:44 GMT 2024

Total time taken to generate the page: 0.01405 seconds