LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-06-2009, 09:30 AM   #1
kingkashif
Member
 
Registered: May 2009
Posts: 92

Rep: Reputation: 15
php 5.3 - configure: error: wrong mysql library version or lib not found.


Hello friends,

Well I am trying to compile php 5.3 from sources..

I've met every other required dependencies, but I am getting an error while configuring, which I don't seem to understand well.

I am configuring it using below
Code:
./configure --prefix=/usr --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-mod-charset --with-libxml-dir --with-openssl --with-kerberos --with-pcre-regex --with-zlib --with-bz2 --with-curl --with-dbm --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-t1lib --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --with-imap-ssl --enable-intl --enable-mbstring --with-mcrypt --with-mssql --with-mysql --with-mysqli --enable-embedded-mysqli --with-apxs2 --with-snmp --enable-zip
The error I am getting is following

Code:
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... no
checking for variable length prototypes and stdarg.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... yes
checking for unistd.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/times.h... yes
checking for stdarg.h... (cached) yes
checking size of int... (cached) 4
checking size of short... (cached) 2
checking size of long... (cached) 8
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for 8-bit clean memcmp... yes
checking for stdarg.h... (cached) yes
checking for mcrypt support... yes
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... yes
checking for MSSQL support via FreeTDS... yes
checking for dnet_addr in -ldnet_stub... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/tmp/mysql.sock
checking for mysql_close in -lmysqlclient... yes
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.

I really searched alot but couldn't find anything valuable.

I have following mysql packages installed

Code:
mysql-server-5.0.77-3.el5
mysql-5.0.77-3.el5
perl-DBD-MySQL-3.0007-2.el5
mysql-bench-5.0.77-3.el5
mysql-devel-5.0.77-3.el5

My system is a 64 bit system...

I have libmysqlclient.so in /usr/lib64/mysql/
I also made a symlink of it in /usr/lib64

But still no luck.

Any help will be greatly appreciated ....


Thanks
 
Old 11-06-2009, 09:48 AM   #2
kingkashif
Member
 
Registered: May 2009
Posts: 92

Original Poster
Rep: Reputation: 15
ok I got it ..

If you're facing the same error then following is the remedy..

if you're configure with --with-mysqli --enable-embedded-mysqli

then just remove "--enable-embedded_mysqli"


and everything will be fine.
 
Old 11-06-2009, 11:02 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Well .... building php-5.3 for Fedora Xx and Redhat EL 5
from source, I guess this one will provide all the "tricks" :
(And using an 'src.rpm' is the obvious choice, when available.)

http://download.fedora.redhat.com/pu...6.fc12.src.rpm
> > php-5.3.0-6.fc12.src.rpm
including some patching .. and also supplying all the "70"
configure options, ready to compile.

Ref. http://www.linuxquestions.org/questi...ux-5.0-764323/
post # 3.
.....

Last edited by knudfl; 11-06-2009 at 11:51 AM.
 
Old 09-20-2011, 03:52 AM   #4
GloolsGuan
LQ Newbie
 
Registered: Sep 2011
Location: China
Posts: 1

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by kingkashif View Post
ok I got it ..

If you're facing the same error then following is the remedy..

if you're configure with --with-mysqli --enable-embedded-mysqli

then just remove "--enable-embedded_mysqli"


and everything will be fine.

Thanks man, thanks very much, My problem has been solved.
 
  


Reply

Tags
php5


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: Essential library asound not found tandp7877 Linux - Software 2 03-15-2009 01:11 PM
configure: error: Qt (>= Qt 3.3 and < 4.0) (library qt-mt) not found jaygee02 Linux - Software 2 04-30-2006 11:59 PM
knoda configure error re: qt-mt library not found tr6boy Linux - Software 0 07-12-2004 10:21 PM
/lib/ld-linux.so.2: version 'GLIBC_PRIVATE' not found error nienamusa Red Hat 0 02-04-2004 09:16 PM
configure: error: Qt (>= Qt 3.1 (20021021)) (library qt-mt) not found Mugatu Linux - Software 14 12-15-2003 04:11 AM


All times are GMT -5. The time now is 06:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration