LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-05-2004, 01:59 PM   #1
heho
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
Question Installing MySQL


Hey everyone,

I'm attempting to install the updated MySQL package, 4.1.7 and when I do run the RPM installation I get the following message:

warning: /home/adam/MySQL-server-4.1.7-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
MySQL conflicts with mysql-3.23.58-9
MySQL-server conflicts with mysql-server-3.23.58-9

And can't seem to get the install to work, any suggestions as to what I might do to correct this problem would be greatly appreciated.
 
Old 11-05-2004, 03:12 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You should really uninstall the old version first with:
rpm -e packagename
 
Old 11-05-2004, 04:09 PM   #3
heho
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
When I attempt the rpm -e command I then get the following error:

error: can't create transaction lock

whatever that might mean

Programmers should start making intelligable error messages.
 
Old 11-05-2004, 04:18 PM   #4
heho
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
good grief, never mind that last post.. figured it out.. silly me, however when I do the:

rpm -e mysql-3.23.58-9 i receive:

error: Failed dependencies:
libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.9003-4
libmysqlclient.so.10 is needed by (installed) mod_auth_mysql-20030510-4.1
libmysqlclient.so.10 is needed by (installed) php-mysql-4.3.8-2.1

and does not uninstall. Any suggestions now?

Last edited by heho; 11-05-2004 at 04:22 PM.
 
Old 11-06-2004, 09:04 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you remove with --nodeps the package should go but make sure you install the new version so that libmysqlclient is installed again. Alternatively forget the rpms and install from source so that you have more control over the destination of the installed files.
 
Old 11-24-2004, 04:55 PM   #6
quinthar
LQ Newbie
 
Registered: Sep 2004
Posts: 11

Rep: Reputation: 0
Will erase with --nodeps and reinstall break dependencies?

I'm also trying to install MySQL-4.1.7 on a Fedora Core 2 system with MySQL-3.23.58-9 already installed. And I also get

[root@localhost downloads]# rpm -e --test mysql-3.23.58-9
error: Failed dependencies:
libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.9003-4
libmysqlclient.so.10 is needed by (installed) mod_auth_mysql-20030510-4.1
libmysqlclient.so.10 is needed by (installed) php-mysql-4.3.4-11
libmysqlclient.so.10 is needed by (installed) mysql-server-3.23.58-9
mysql = 3.23.58 is needed by (installed) mysql-server-3.23.58-9


My question is: If I erase while ignoring dependencies with:

[root@localhost downloads]# rpm -e --nodeps mysql-3.23.58-9

And then reinstall with:

[root@localhost downloads]# rpm -i MySQL-server-4.1.7-0.i386.rpm
[root@localhost downloads]# rpm -i MySQL-client-4.1.7-0.i386.rpm


Will it automatically put libmysqlclient.so back in the right place, such that the old dependencies will still work? I'm assuming they will, but I'd like to ask you to be on the safe side.

Furthermore, how would I go about testing these dependencies to make sure they still work after the reinstall? Is there any nifty command to test this, or need I whip up some PHP and perl scripts myself?

Thanks!

-david

Update: Turns out it doesn't go in cleanly. MySQL works great, but doing the above steps broke the httpd startup script. Specifically, it failed to load auth_mod_mysql because it couldn't find libmysqlclient.so. I "fixed" it by disabling this module and thus getting httpd to restart, but I don't know why the module broke to begin with. Any ideas what went wrong, and how to fix it?

-david

Last edited by quinthar; 11-24-2004 at 09:40 PM.
 
Old 11-25-2004, 01:49 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Does libmysqlclient.so exist?

Try running "ldconfig".
 
  


Reply


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
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
installing mysql cflyguy Linux - Software 1 11-25-2004 12:04 AM
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 03:43 PM
Installing MySQL carlg Linux - General 7 04-17-2004 03:17 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 PM.

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