LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-06-2003, 12:46 AM   #1
SForsgren
Member
 
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Rep: Reputation: 15
Need to add /usr/lib to PATH for RPM?


When I try to rpm -i for MySQL 4.1, I get:

[root@sforsgren-linux-01 MySQL_4.1]# rpm -i MySQL-sh*
warning: MySQL-shared-4.1.0-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5error: Failed dependencies:
libcrypto.so.0.9.6 is needed by MySQL-shared-4.1.0-0
libssl.so.0.9.6 is needed by MySQL-shared-4.1.0-0

Though, I have both in /usr/lib. Why is it not looking there? Do I need to add that to my PATH or ?
 
Old 05-06-2003, 02:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the path isn't relevant, the information is kept in the rpm database try a query like "rpm -qf openssl" to see what rpm *thinks* is there.
 
Old 05-06-2003, 10:36 PM   #3
SForsgren
Member
 
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Original Poster
Rep: Reputation: 15
When I do that, I get

[root@sforsgren-linux-01 MySQL_4.1]# !r
rpm -qf openssl
error: file openssl: No such file or directory

When I do this:

[root@sforsgren-linux-01 MySQL_4.1]# rpm -qa | grep openssl
openssl096-0.9.6-17
openssl-devel-0.9.7a-5
openssl096b-0.9.6b-6
openssl-perl-0.9.7a-5
openssl-0.9.7a-5

So, it doesn't see openssl at all, right? How do I tell it about it?

Here are the files I have in /usr/lib:

[root@sforsgren-linux-01 lib]# ls libss*
libss.a libssl.a libssl.so.0.9.6 libss.so
libssl3.so libssl.so libssl.so.1
[root@sforsgren-linux-01 lib]#


Thanks
 
Old 05-06-2003, 11:14 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You just answered your own question
mate :)

Quote:
[root@sforsgren-linux-01 MySQL_4.1]# rpm -i MySQL-sh*
warning: MySQL-shared-4.1.0-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5error: Failed dependencies:
libcrypto.so.0.9.6 is needed by MySQL-shared-4.1.0-0
libssl.so.0.9.6 is needed by MySQL-shared-4.1.0-0
Quote:
[root@sforsgren-linux-01 MySQL_4.1]# rpm -qa | grep openssl
openssl096-0.9.6-17
openssl-devel-0.9.7a-5
openssl096b-0.9.6b-6
openssl-perl-0.9.7a-5
openssl-0.9.7a-5
The version numbers don't match ;)

And man, rpm is sooooo utterly, unforgivingly stupid



Cheers,
Tink
 
Old 05-06-2003, 11:41 PM   #5
SForsgren
Member
 
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Original Poster
Rep: Reputation: 15
So, even though I have the file:

/usr/lib/libssl.so.0.9.6

and RPM says it is looking for:

libssl.so.0.9.6 is needed by MySQL-shared-4.1.0-0

How do I not have the right version? Where did the file come from if I don't have the correct version?

What do I need to do to correct this? All I am trying to do is install MySQL 4.1.

Thanks!
 
Old 05-07-2003, 03:16 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by SForsgren
So, even though I have the file:

/usr/lib/libssl.so.0.9.6

and RPM says it is looking for:

libssl.so.0.9.6 is needed by MySQL-shared-4.1.0-0

How do I not have the right version? Where did the file come from if I don't have the correct version?

What do I need to do to correct this? All I am trying to do is install MySQL 4.1.

Thanks!
Code:
 
libssl.so.0.9.6-17 != libssl.so.0.9.6
libssl.so.0.9.6b-6 != libssl.so.0.9.6
They are -admittedly- close enough,
but not identical, which is why I said
that RPM is retarded ;)

Cheers,
Tink
 
Old 05-07-2003, 11:38 PM   #7
SForsgren
Member
 
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Original Poster
Rep: Reputation: 15
So does

/usr/lib/libssl.so.0.9.6 != libssl.so.0.9.6

That's the part I still don't get. Where do I get the correct libssl.so.0.9.6 then? I went to openssl.org and didn't see anything that I could use without having to compile myself which I am not quite ready for. Since MySQL 3.23 worked fine on this box, it seems odd that the new version would need older libraries than the older MySQL. No?

Thanks
 
Old 05-08-2003, 03:15 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Not in terms of RPM ... you can, however,
since you do have at least one version
that qualifies (wherever it came from, maybe
you installed a MDK rpm on your RH box
and they use different conventions for their
databases) you could always do a "--force"ed
install of MySQL and just ignore the warnings.

However, this is one of the reasons why I'm
using Slackware ;)

Cheers,
Tink
 
Old 05-09-2003, 12:50 AM   #9
SForsgren
Member
 
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Original Poster
Rep: Reputation: 15
So, what is Slackware? I tried downloading Ximian Red Carpet, but it wanted an OLDER version of RPM that what comes with RH 9. So that wasn't a great idea. Hmm...

When I tried to do the force, it kept coming back with "Segmentation Fault". So, the force didn't seem to work.

Thanks
 
Old 05-15-2003, 08:48 PM   #10
ifconfig
LQ Newbie
 
Registered: May 2003
Posts: 23

Rep: Reputation: 15
yes, I met this "Segmentation fault" too. Anyone know about this error?
 
Old 05-15-2003, 10:50 PM   #11
SForsgren
Member
 
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Original Poster
Rep: Reputation: 15
Usually, seems like I see this when something has dependencies and the force just won't work. Saw the same problem with MySQL. Try without the --force and see what it is looking for.
 
Old 05-16-2003, 07:03 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you showed you have libssl.so.0.9.6 in /usr/lib, do you also have libcrypto.so.0.9.6 in /usr/lib?

If so I would submit that it's not in your lib path, which is not the same as your path

to fix it add /usr/lib to /etc/ld.so.conf

then run ldconfig


if /usr/lib is already there run ldconfig.

if that does not help you need to get the right files installed, and I would be very surprised.

Last edited by DavidPhillips; 05-16-2003 at 07:07 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
/usr/lib/mozilla/plugins not valid install path for macromedia flash player 7? dr_zayus69 Linux - Software 2 08-14-2005 10:13 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Mysql:how can I add the lib path in Kylix walkinmud Programming 4 09-24-2004 09:48 AM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:56 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