Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
I am trying to compile php 5.1.5 on a server and I received this


checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found.


Also using easyapache does not permit to isntall php because it reporting me tha I need mysql 4.1.19 but I have mysql 4.1.21 running without problems ...


Any idea ?
 

carluk

Well-Known Member
Sep 2, 2003
161
0
166
Which build of cpanel are you using?
Why php 5.1.5 and not php 5.1.6?

Could you provide the output of:
Code:
mysqladmin version
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
I have php 5.1.4


mysqladmin Ver 8.40 Distrib 4.0.20, for pc-linux on i686
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version 4.1.21-standard
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 14 min 37 sec

Threads: 3 Questions: 1423 Slow queries: 0 Opens: 47 Flush tables: 1 Open tables: 41 Queries per second avg: 1.623
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
how to upgrade mysqladmin to mysqladmin Ver 8.41 Distrib 4.1.21 ?
 

carluk

Well-Known Member
Sep 2, 2003
161
0
166
I'd suggest running the following

Code:
/scripts/upcp; /scripts/mysql --force
Also make sure after doing that you select php 5.1.6 :)
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
Thank you for reply

/scripts/mysql --force already didn't help however will try also updating cpanel
 

carluk

Well-Known Member
Sep 2, 2003
161
0
166
The command above your reply should have both upgraded your cpanel and forced an upgrade to mysql.
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
I executed

/scripts/upcp; /scripts/mysqlup --force

all executed without problems execpt of this
chown: changing ownership of `/var/lib/mysql/mysql.sock': No such device or address

mysqladmin -v still reports an outaded version :confused:

I still cannot upgrade php (neither compile or using easyapache)
 

carluk

Well-Known Member
Sep 2, 2003
161
0
166
Out of interest what does the following show:
Code:
/usr/local/cpanel/cpanel -V
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
10.9.0-CURRENT_46


mysqladmin -v
mysqladmin Ver 8.40 Distrib 4.0.20, for pc-linux on i686

mysql is 4.1.21-standard


When i execute easyapache it still write me that I need mysql 4.1.19 or later to install 5.1.6 :-O!
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
removing the mysqli exsention ( --with-mysqli=/usr/bin/mysql_config ) from the PHP configure switch solved the problem, but what if I wanted to include the mysqli extension and getting this error?
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
as it seems mysqli is not supported in php version 5