store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu May 23, 2013 4:43 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 4 posts ] 
Author Message
 Post subject: Mysql Client API version
Unread postPosted: Tue Oct 27, 2009 11:58 am 
Offline
New Forum User
New Forum User

Joined: Tue Oct 27, 2009 10:54 am
Posts: 1
Hello Everyone,

Running Plesk 8.6 on CentOS5.

[root@live modules]# rpm -qf /usr/lib/php/modules/mysql.so
php-mysql-5.2.11-2.el4.art

phpinfo Returns:
Client API version 4.1.22

I've got a client trying to use some DECIMAL tables for mysql, and 4.x doesn't know about it, only 5.x. Just wondering if theres anything I can do from here, as php-mysql is updated to the latest and it didn't change the mysql.so module.

Any help is appreciated!

Thank you,

Josh


Top
 Profile  
 
 Post subject: Re: Mysql Client API version
Unread postPosted: Tue Oct 27, 2009 8:35 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7428
Location: earth
Yeah what you need to do is recompile the php src.rpm against the mysql 5 client libraries. By default I stick with the mysql 4 libs so you arent forced to upgrade to mysql 5 when you upgrade php


Top
 Profile  
 
 Post subject: Re: Mysql Client API version
Unread postPosted: Mon Feb 01, 2010 8:45 am 
Offline
New Forum User
New Forum User

Joined: Mon Feb 01, 2010 8:38 am
Posts: 1
I've got the same problem on RHEL4.8. Using pretty much all the standard ART RPMs. I've not recompiled PHP from a src RPM before so a bit of a newbie here.
I've got into dependency hell! I installed most of the -deve rpms it was asking me for but I'm getting these failures:
sqlite-devel >= 3.0.0 is needed
pcre-devel >= 6.6 is needed
libpng-devel is needed
libXaw-devel is needed

Can I disable the requirements for these (and how would I do that) if I just need to recompile mysqli.so?
TIA


Top
 Profile  
 
 Post subject: Re: Mysql Client API version
Unread postPosted: Mon Feb 01, 2010 10:51 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7428
Location: earth
You would need to modify the spec file to do that. If you're using yum from centos on your system, you should also have access to the yum-utils package. This will automatically install all the dependencies specified by a src.rpm:

yum-builddep <src.rpm filename>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 4 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group