For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > November 2005 > PHP5 complile strangeness with curl and mysqli









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP5 complile strangeness with curl and mysqli
Peer Allan

2005-11-17, 6:57 pm

Hi,

I am a compiliing PHP5 on a Linux box with MySQL 5 and Apache2. The goal =
is
to have both the mysqli and curl extensions enabled in PHP. This is the
configure command I used:

../configure --with-mysqli=3D/usr/local/mysql/bin/mysql_config
--with-apxs2=3D/usr/local/apache2/bin/apxs --with-gd --with-zlib=3D/usr
--enable-xslt --with-xslt-sablot --with-openssl --enable-mbstring
--with-curl

This compiles, installs and functions fine. This is where it gets =
strange.
When I do a phpinfo() on the server it shows the mysqli extension to be
4.1.x, where the mysql libraries I am linking against are 5.0.15. If I =
do a
"php -i" command from the command line it says I am running the mysqli
extension 5.0.15. As would be expected the mod_php5 module will not =
connect
to mysql, but the command line version will.

If I change the configure command and remove '--with-curl', then make =
and
install the phpinfo() shows the mysqli extension to be 5.0.15 (which is =
what
I need).

To summarize, i can't get PHP5 to link to the mysql 5 client libraries =
if I
try to build it with curl suppport. Anyone experiences something like =
this
before or have any ideas as to what to do about it?

Thanks

Peer

Peer Allan=20
Sr. Web Developer, e-Business

CanadaDrugs.com=20
24 Terracon Place=20
Winnipeg, MB, Canada
R2J 4G7=20

Phone: (204) 654-7951
Cell: (204) 781-8719
Fax: (204) 654-7910
www.canadadrugs.com



-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-
CanadaDrugs.com
http://www.canadadrugs.com
Tollfree voice:1-800-CAN-DRUG
Tollfree fax: 1-888-DRUG-FAX
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com