why does php compile looks for wrong curl

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



My server is Solaris 10 Sparc and I’m using Suns cc compilers.

 

I have curl compiled into /usr/local/lib and compiled again native Solaris 10 openssl.   I installed another version into /usr/local/curl-7.19.5 and compiled against a different openssl.  Then I compiled php using that later curl verion (see below).   Today I did an ldd against php shows it is using /usr/local/lib. I don’t believe I specify the lib directory on the php --with-curl line.  Doesn’t my LD_RUN_PATH specify where to find the library files?   Both versions are 7.19.5 but I need one compiled against the native libraries.

 

What is even stranger is that if I run php –i it will show php compiled against the 2nd curl installation (libcurl/7.19.5 OpenSSL/0.9.8h zlib/1.2.3) but phpinfo on a web browser shows the curl info from /usr/local/lib (libcurl/7.19.5 OpenSSL/0.9.7d zlib/1.2.3).

 

Why isn’t php compiling against the correct curl?  

Thanks for any help.

# ldd /usr/local/bin/php | grep curl
libcurl.so.4 => /usr/local/lib/libcurl.so.4
#

# more ConfigurePHP
#!/bin/sh

PATH=/opt/SUNWspro/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sbin; export PATH
LD_RUN_PATH=/usr/local/curl-7.19.5/lib:/usr/sfw/lib:/usr/local/lib; export LD_RUN_PATH

env CC=cc CXX=CC \
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-pear \
--with-libxml-dir=/usr \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--enable-mbstring \
--with-curl=/usr/local/curl-7.19.5 \
--with-gd \
--with-jpeg \
--with-jpeg-dir=/usr/lib

#!/end
#

# php -i | grep curl
Configure Command => './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-pear' '--with-libxml-dir=/usr' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--enable-mbstring' '--with-curl=/usr/local/curl-7.19.5' '--with-gd' '--with-jpeg' '--with-jpeg-dir=/usr/lib'

 

Sincerely,
Christine Ross 
HCCS - Experts in Healthcare Learning
(516)478-4100, x108
cross@xxxxxxxx

Announcing COI-SMART!  - A new solution for tracking & managing Conflicts of Interest.

HCCS is the leading provider of effective online training courses and learning management systems to healthcare facilities.   HCCS has provided over 2.5 million hours of compliance and competency training courseware to hospitals, teaching facilities, medical schools, health plans and other health care entities.  The HCCS Compliance Learning Library contains expert training content in the areas of Medicare, Medicaid, HIPAA, Harassment, Research, Patient Safety and Quality Improvement Compliance.  The HCCS Healthcare Learning Platform (HLP) is a healthcare specific Learning and Competency Management System.   http://www.hccs.com (516) 478-4100 or (877) 933-hccs.

This email message is for the sole use of the intended recipient(s) and contains confidential and privileged information. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient or have received this communication in error please contact the sender by reply e-mail and destroy all copies of the original message. Thank you.

 


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux