LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2006, 03:41 PM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
php5 and mysql not working on Slackware RC4 (edited title)


I have upgraded my 10.2 system to Slackware-current. I can't get php working. It is looking for libmysqlclient.so.14 when it should be looking for xxx.so.15. According to the change log (or my interpretation of it), the php5 package was recompiled for the new mysql version (5.0.24 in my case).

Before I recompile php myself (which I do not have fond memories of doing last time), is there something else I can do or check? Do I misunderstand the change log?

Thanks,
Brian

Last edited by BCarey; 09-07-2006 at 11:34 AM.
 
Old 08-30-2006, 10:08 AM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Sim link 'libmysqlclient.so.14' to point to the actual lib file. Should solve the problem with no hastle.

regards,
...drkstr
 
Old 08-30-2006, 12:06 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Thanks for the response.

I had a mysqli-5.0.5 package still installed. Removed that and reinstalled the php package and I can now start php. However, I am still not able to load the mysql extension. I've tried with php4 and php5. php --info shows that it was compiled with mysql.

Brian
 
Old 08-30-2006, 02:38 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I have the mysql-5.0.24-i486-1 package installed but have PHP 5.1.6 compiled from sources. When I upgraded mysql to that version I got the same error - unfortunately the symlink didn't fix the problem for me. Recompiling PHP fixed it so the only good news I can off is that the following was painless on my install:
Code:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-mysql=/usr/lib/mysql
make
su -
make install
I use the php.ini-recommended ini file as well...
 
Old 09-07-2006, 11:33 AM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Still no joy.

I just installed the latest (Sep 3) recompiles of mysql and php5. The mysql extensions continue to fail.

Gilead,
I did try to recompile php, but had one problem after another and got frustrated/ran out of time. I do need a bunch more configure options than you gave in your example:-(. The Slackware configure should have all I need, if it would only work as advertised.

Brian
 
Old 09-16-2006, 12:04 PM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
OK, this was all my own stupidity. I forgot to replace my old php.ini with the new one. Now works like a charm.

Brian
 
  


Reply



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
PHP5 having problems with libmysqlclient alitrix Linux - Software 2 05-23-2007 08:50 AM
LXer: Slackware 11.0 RC3 available LXer Syndicated Linux News 0 08-25-2006 07:54 PM
enable php5 in apache on Slackware 10.2 esteeven Slackware 3 01-30-2006 04:41 PM
Slackware php5 install failure Transition Linux - Newbie 1 07-05-2004 05:20 PM
Slackware 8.1 rc3 charliekennedy Slackware 3 06-16-2002 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration