LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-24-2009, 06:13 PM   #1
eblade
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: Disabled
Fedora 11 and yum error


Hello I am trying to setup a LAMP server for a friend but yum gives me an error: librpmbuild.so.0: cannot open shared object file: No such file or directory. This is on a fresh install of 32 bit version of the distro and I am using putty to remotely connect. I really don't want to reinstall linux so any help will be much appreciated.
 
Old 09-24-2009, 07:57 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
what repos are installed ?
Code:
yum repolist
and HOW are you installing lamp
Code:
su -
yum groupinstall "Web Server" "DNS Name Server" "Web Development"
or are you building each package from source then making an rpm from that.
 
Old 09-24-2009, 08:16 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Usually librpmbuild.so.0 is a link to the actual library to use.
Code:
$ ls -l `locate librpmbuild.so`
lrwxrwxrwx. 1 root root     20 2009-08-07 09:37 /usr/lib64/librpmbuild.so -> librpmbuild.so.0.0.0
lrwxrwxrwx. 1 root root     20 2009-08-07 09:36 /usr/lib64/librpmbuild.so.0 -> librpmbuild.so.0.0.0
-rwxr-xr-x. 1 root root 162344 2009-07-23 22:07 /usr/lib64/librpmbuild.so.0.0.0
and the library is part of the rpm-devel package, so install that.

I don't understand why yum itself would require rpmbuild. What yum command were you running?
 
Old 09-24-2009, 08:19 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
if he was installing the *.src.rpm's then the rpm-devel would be needed . that is why i asked HOW is it being installed.
 
Old 09-24-2009, 08:25 PM   #5
eblade
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
what repos are installed ?
and HOW are you installing lamp
or are you building each package from source then making an rpm from that.
I still get the same error trying to run yum. I forgot to add prior to getting the specific error I get a message: "There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: librpmbuild.so.0: cannot open shared object file: No such file or directory." I don't know how clean the install was because my friend is the one who installed the distro. I tried to search for the librpmbuild.so.0 but I only found a similar files named:
Code:
find -name 'librpm*'
./usr/lib/librpmbuild.so
./usr/lib/librpm.so
./usr/lib/librpmio.so
I didn't know that a combined package was created for a LAMP installation. I was going to get each service installed one at a time once I get this issue with yum resolved. I also need AJAX installed as well but I have no idea where to get that service for Linux (I thought AJAX is only Microsoft). If someone can enlighten me that would be a real big help!
 
Old 09-24-2009, 08:29 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
in my opinion building a server from scratch is the BEST way for the first 12 or so Apache installs . then AFTER you learn the ins and outs ,use the prepackaged to save about 30 min. to 2 hours install time.
 
Old 09-24-2009, 08:34 PM   #7
eblade
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
in my opinion building a server from scratch is the BEST way for the first 12 or so Apache installs . then AFTER you learn the ins and outs ,use the prepackaged to save about 30 min. to 2 hours install time.
My friend is not going to like the idea of reinstalling Fedora but if it will save time I will have to try to convince him. Also if you can point me in the right direction of the combination install it would be a great help (and time saver). Thanks.
 
Old 09-25-2009, 12:32 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
Quote:
My friend is not going to like the idea of reinstalling Fedora but if it will save time
i did not say to REINSTALL the Fedora operating system or anything else .

using the already apache rpm's IS ONLY a time saver IF YOU ALREADY KNOW HOW TO CONFIGURE IT
If you do not already KNOW HOW to edit httpd.conf,php.ini.my.conf. IpTables ( the firewall) ,PhpMyAdmin, and the rest.

using the prebuilt will teach you NOTHING
and you will still NEED to learn what to edit and HOW to edit it.

Code:
yum groupinstall "Web Server" "MySQL Database" "Mail Server" "DNS Name Server"
=============================
i still do not know how you were tiring to install apache,myqsl,and php
that gave you this error " librpmbuild.so.0 " as missing ????

Last edited by John VV; 09-25-2009 at 12:48 AM.
 
Old 09-25-2009, 10:42 AM   #9
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If one of the python programs used by yum didn't install properly, try a yum reinstall yum if you can. If not, download the yum RPM "by-hand" from the repositories and reinstall it with the rpm command.

Another alternative is to grab the smart package manager RPM file from the Fedora repository, install it with rpm, and use it to reinstall yum. (The smart package is a little more sophisticated then yum about resolving problems, but the default install on Fedora ignores the mirror repository sites. But it's handy to have installed when yum goes "bonkers.")
 
Old 09-25-2009, 01:57 PM   #10
eblade
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by PTrenholme View Post
If one of the python programs used by yum didn't install properly, try a yum reinstall yum if you can. If not, download the yum RPM "by-hand" from the repositories and reinstall it with the rpm command.

Another alternative is to grab the smart package manager RPM file from the Fedora repository, install it with rpm, and use it to reinstall yum. (The smart package is a little more sophisticated then yum about resolving problems, but the default install on Fedora ignores the mirror repository sites. But it's handy to have installed when yum goes "bonkers.")
Ok now rpm gives me the same error: "rpm: error while loading shared libraries: librpmbuild.so.0: cannot open shared object file: No such file or directory." At this point I don't know what is wrong. The only Linux distros I am familiar with are ubuntu flavors and I used apt-get for everything. I assume that yum is similar to apt-get and I never have these such problems using that command.

Like I have said before I did not install this distro. My friend said he has the installation CD in the drive, so can I just mv the files back into /lib ?


Quote:
Originally Posted by John VV View Post
=============================
i still do not know how you were tiring to install apache,myqsl,and php
that gave you this error " librpmbuild.so.0 " as missing ????
All I did was run the command yum to try to install the services. At this point I really think my friend botch the install of Fedora or installed some other apps/services without consent.
 
Old 09-25-2009, 04:40 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
no idea why "librpmbuild.so.0 " is being called for standard rpm's
you are NOT building rpm's from source

you might want to clean the yum and rpm databases
Code:
su -
yum clean all
rpm --rebuilddb
then run
" yum update "

then from this bit of code
" yum provides */librpmbuild.so.0 "
install or reinstall rpm-libs
Code:
su -
yum install rpm-libs
--- and if it says it is installed --
yum reinstall rpm-libs
 
Old 09-26-2009, 10:38 AM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If you're familiar with apt, check the CD to see if the apt RPM file is on it.

Wait, though: You're saying the the rpm command itself is failing. That's more serious, almost fatal.

Can you download and unpack the rpm.rpm file (from the Fedora repository) on your system? (I think the Ubuntu repositories include the RPM tools.) If so, you could see if you could then copy the Python files to your friends system.

Another thing you could do (since the CD - or, hopefully, it's a DVD - is in the drive) is compare the md5sum of the DVD with the published value. If they're different, the DVD is (presumably) bad and a reinstall from a good DVD is needed. (Your friend should have run the "verify before install" option when he did the install, but it's not the first option in the install options list.)

Last edited by PTrenholme; 09-26-2009 at 10:42 AM.
 
Old 09-26-2009, 02:04 PM   #13
eblade
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for all the help but I told my friend about the issues I have encountered. He said that he is going to install centOS distro instead Fedora. I wonder what could have cause the yum/rpm command to go haywire like it did. Before the system went offline I was trying to use the man pages and found I couldn't access that either because of a missing file: "libstdc++.so.6" It is my conclusion that something is awry with that install.
 
  


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
yum update or install error in Fedora 10 vipul_patel Fedora 3 03-29-2009 06:19 AM
Updated Fedora 9 And I Now Get A Yum Error jc_cpu Linux - Software 2 12-13-2008 04:48 PM
Yum Update Error Fedora Core 9 KrazyStuntRR Fedora 5 06-12-2008 02:08 AM
fedora 7 yum squid error sumesh.pt Linux - Newbie 6 12-04-2007 07:53 AM
Fedora Core 5 and Yum - Error 256 and 14 ittec Linux - Software 1 11-22-2007 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration