Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-15-2003, 07:18 PM
|
#1
|
LQ Newbie
Registered: May 2003
Posts: 4
Rep:
|
Failed dependencies installing samba
I am trying to install Samba on RedHat9 so that I can share files with a Windows XP machine on a LAN. The install fails:
# rpm -Uvh samba*
error: Failed dependencies:
libcrypto.so.2 is needed by samba-2.2.7-5.8.0
libssl.so.2 is needed by samba-2.2.7-5.8.0
libcrypto.so.2 is needed by samba-common-2.2.7-5.8.0
libssl.so.2 is needed by samba-common-2.2.7-5.8.0
libcrypto.so.2 is needed by samba-swat-2.2.7-5.8.0
libssl.so.2 is needed by samba-swat-2.2.7-5.8.0
Here is what I have tried, without success:
1) Use rpm to install the older version of openssl in addition to the current one:
# rpm -Uvh openssl-0.9.6b-33.i686.rpm openssl-0.9.7a-5.i686.rpm
warning: package openssl = 0.9.6b-33 was already added, replacing with openssl <= 0.9.7a-5
Preparing... ########################################### [100%]
package openssl-0.9.7a-5 is already installed
2) Create the two needed files as symbolic links. Created in both /lib and /usr/lib since the "real" file was in both places.
# ln -s /lib/libcrypto.so.0.9.7a /lib/libcrypto.so.2
# ln -s /lib/libssl.so.0.9.7a /lib/libssl.so.2
# ln -s /usr//lib/libcrypto.so.0.9.7a /usr/lib/libcrypto.so.2
# ln -s /usr/lib/libssl.so.0.9.7a /usr/lib/libssl.so.2
# ll /usr/lib/libssl.so.2 /usr/lib/libcrypto.so.2
lrwxrwxrwx 1 root root 28 May 15 18:03 /usr/lib/libcrypto.so.2 -> /usr/lib/libcrypto.so.0.9.7a
lrwxrwxrwx 1 root root 25 May 15 18:03 /usr/lib/libssl.so.2 -> /usr/lib/libssl.so.0.9.7a
# ll /lib/libssl.so.2 /lib/libcrypto.so.2
lrwxrwxrwx 1 root root 19 May 15 18:03 /lib/libcrypto.so.2 -> libcrypto.so.0.9.7a
lrwxrwxrwx 1 root root 16 May 15 18:03 /lib/libssl.so.2 -> libssl.so.0.9.7a
After doing these steps, I get the same error trying to install samba. How the heck do I get these two files? Why don't the symbolic links work?
David
|
|
|
05-15-2003, 09:25 PM
|
#2
|
Member
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142
Rep:
|
First, the link don't work since rpm does not check if the file exist on the system. It uses a database to log what as been installed on the system.
I have three idea that could help you:
1-
Try to run rpm with the consistency switch (don't remember what it). This switch will check the rmp database and see if it is corupted. Try to reinstall afterward.
2-
What if you try to install the RPM without the dependency.
3-
What if you try to uninstall the problematic packages and reinstall them. (I know looks a bit like a windows approch but it would make sure you have not acidently deleted some files of the package)
|
|
|
05-16-2003, 12:12 AM
|
#3
|
LQ Newbie
Registered: May 2003
Posts: 4
Original Poster
Rep:
|
I can confirm that the symbolic links don't work. I managed to extract the two files I needed, copy them to the /usr/lib and /lib directories, and update the symbolic links. No go. The files are there and the symbolic links are there, but rpm insists it knows better.
1) # rpm --rebuilddb -v
error: db4 error(16) from dbenv->remove: Device or resource busy
Do I need to specify the --dbpath or --root options? They are listed as optional, and I'd expect the defaults to be correct.
2) Do you mean --force? I tried that. I get the same messages with or without --force.
3) I tried uninstalling openssl, but I got a bazillion errors about other packages being dependent on things I was uninstalling. I did not try forcing it, but that might be what I try next.
David
|
|
|
05-16-2003, 12:56 AM
|
#4
|
LQ Newbie
Registered: May 2003
Posts: 4
Original Poster
Rep:
|
I got it to install using --nodeps to get rpm to igore the dependencies. Normally this might not work, but the files are there, it's just the rpm database that doesn't KNOW the files are there. At least, that is what I believe to be true at this time.
I can get into SWAT. I don't know what to DO with it, but that's a different story, and a different thread.
David
|
|
|
05-16-2003, 08:31 AM
|
#5
|
Member
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142
Rep:
|
Just to make sure, did you run the rpm --rebuilddb -v
command as root?
As for the --dbpath it should not be needed. I'm usure as to what the --root does.
The error from --rebuilddb suggest your rpm database is corupted AND someone is stuck in it. You could do two things:
- run ps -A to see if the is an rpm process running. if there is, kill it ( kill -9 $pid) (where $pid is the number next to the rpm line fom ps -A)
After that retry --rebuilddb
- If it still does not work. Reboot in single user mode. From there, run the rebuilddb.
|
|
|
05-16-2003, 03:24 PM
|
#6
|
LQ Newbie
Registered: May 2003
Posts: 4
Original Poster
Rep:
|
I was logged in as root, or rather "super usered" to root. I logged out and back in and the "lock" went away.
I wish I had seen your post before I did that. It would have given me more understanding of what was going on than the band-aid of logging out or rebooting. Rebooting is a habit I've picked up from Windows. :-)
David
|
|
|
All times are GMT -5. The time now is 02:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|