LinuxQuestions.org
Visit Jeremy's Blog.
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 03-26-2003, 06:41 PM   #1
ravenswood1000
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat
Posts: 6

Rep: Reputation: 0
Suicide by Redhat


Hi Folks,

I just need to vent and I'm hoping you people will understand. Please know that at work we use two different linux servers, one for windows file sharing through samba, and the other as a web/mysql based accounting system that adds and subtracts items from/to the database via hand held bar scanners. The system works great!!!! Just fantastic...

Because we are expanding we purchased a nice new server and we figured we would load up Redhat 8, make some changes we have really wanted to make and then go. The changes we wanted to make were small i.e. install the newest production version of PHP (4.3) and the newest production of mySql (4.0). Sounds easy eh?

This started yesterday morning at 7 am when I did a "Everything" installation of Rh8 only to find out that when I wanted to upgrade the mySql RPM I was unable to due to dependencies on "libmysqlclient.so.10". I decided to force the issue and discovered I had corrupted the rpm database. After fixing that I find that mySql just isn't going to work so I try and load the original RPM only now it really needs that shared library and the RPM didn't include it.

Reading around (here) I found a post regarding the library and a note mentioning which version of mySql RPM had it to install so I installed the old version of mySql, then the original RPM. It still didn't work so I did a complete new "everything" load of Rh8.

Learning from my mistakes I decided to downgrade to the old mySQL and then work my way back up which seemed to work until I tried to upgrade Apache and the "up2date" program stopped. Somehow I had corrupted the RPM database again so I fixed it one more time. The Apache upgrade went without a hitch and all was fine until I destroyed it's conf file and decided it was time to reload RH8 again. This time with the bare minimum and no mySql.

End of day one.

Again I start in at 7am and put in the new mySql 4.0 RPM with all of it's other RPM's needed and it does fine. Make some careful changes to the Apache conf file and it is up and running. Then my boss walks in and suggest that we do an "Everything" load minus mySql and Apache and load them up later along with the new php so we stop and reload RH8 carefully instructing to load everything except those two items.

mySql loads in just fine again when I notice that Apache was loaded in on install. Oh well I think and find an RPM for the new PHP which all of a sudden won't work. After some review and a test at the command line I discover php wants a shared library (something like libmm.so or something). I decide that the old version of PHP will be just fine and after some finagling get it loaded. Installing "phpMyAdmin" tells me that I need to have "php-mySql" installed also (coulda sworn it was in there) and my boss has a link to it that he sends me.

I install it only to find out that it isn't correct for the version of php we have so I download and install the correct version but it still won't work. By now my boss is working with me at this issue and is swearing louder than I. We decide to scrap the new version of both PHP and mySql and go back to the RPM's on the Rh8 disk only to discover it needs "libmysql.so.10" again and all we have is version 12.

It's 20 minutes after quitting time on my second day of doing this and I'm about to rip off all my clothes, go screaming naked through the plant floor, and fling myself THROUGH a band saw (I work in a cabinet factory) but instead grab my coat and go home crying.

There has to be a better way.
 
Old 03-26-2003, 06:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Sorry for the bad experience mate...

FreeBSD, Debian, Gentoo, installation from tarballs?

Cheers,
Tink (personally not a great fan of rpm or
distros based on it)
 
Old 03-26-2003, 07:10 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
There is a better way!

Use rpmfind.net - just enter a search term at:
http://rpmfind.net/linux/rpm2html/search.php
It should find most if not all files.

Be carefull with the lateset version of apache - it doesn't support mod_perl - if you need it you must stick to an older version (hence why I still ahve a partition with RH 7.3 - I could downgrade but I hate having old versions of software )
 
Old 03-26-2003, 07:17 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
redhat has been coasting on brand recognition for years, but truthfully, it's a pretty lame distro. they give all other rpm based distro's a bad name.
 
Old 03-26-2003, 07:50 PM   #5
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
Re: Suicide by Redhat

Quote:
Originally posted by ravenswood1000
I decided to force the issue and discovered I had corrupted the rpm database. After fixing that I find that mySql just isn't going to work so I try and load the original RPM only now it really needs that shared library and the RPM didn't include it.

... Somehow I had corrupted the RPM database again so I fixed it one more time.

We decide to scrap the new version of both PHP and mySql and go back to the RPM's on the Rh8 disk only to discover it needs "libmysql.so.10" again and all we have is version 12.

There has to be a better way.
I don't mind people slagging off RPM (even though many other distro's never neglect to support it) - but are you aware of the extended RPM options:

rpm --rebuilddb
rpm -qlp <file.rpm>
rpm -qf <file>

also the differences between the rpm install name and the package name, and the wildcard query mode?

You can query the shared object library to see which RPM it came from but you don't appear to have done that here. Did you rebuild the database when you found out it was corrupted (why did you think it was corrupted?)

I don't mind people criticizing free software as long as they're 100% sure they're using it properly. RPM has a lot more options than most people use and that's why it often doesn't appear to work.

Q*Bert
 
Old 03-26-2003, 08:35 PM   #6
ravenswood1000
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Q*Bert,

Oh, I'm just venting mostly because it has been a rough few days. Not that I won't keep plugging along. I really do like linux and as I mentioned it really works well for us.

Yes. I know of some of the rpm flags, but probably not all of them.

I was thinking the rpm database was corrupted after I saw a note regarding the "up2date" installation feature not being able to install after a goodly amount of wait time and to do a
rpm -v --rebuilddb
statement to clean it all up after deleting the lock files "--db1", etc.

I'll get it yet.
 
Old 03-26-2003, 08:49 PM   #7
rnturn
Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0), SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64
Posts: 982

Rep: Reputation: 53
Re: Suicide by Redhat

Quote:
Originally posted by ravenswood1000
Learning from my mistakes I decided to downgrade to the old mySQL and then work my way back up which seemed to work until I tried to upgrade Apache and the "up2date" program stopped. Somehow I had corrupted the RPM database again so I fixed it one more time.
I had a similar problem the first time I used up2date. The rpm binary that shipped with RH8 has a problem (actually, RH's Bugzilla has quite a few rpm-related problems listed; probably worth a little time looking at the problems/solutions that come back when you search for `rpm hangs'.). You can download a fixed version from:

ftp://people.redhat.com/jbj/test-4.1

That version solved some problems for me. Get the 4.1-9 version for your architecture.

And other folks mentioned this as well: you can rebuild the rpm database if it's gotten corrupted.

Hope this helps,
Rick
 
Old 03-26-2003, 09:06 PM   #8
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
Quote:
Originally posted by ravenswood1000
Hi Q*Bert,

Oh, I'm just venting mostly because it has been a rough few days. Not that I won't keep plugging along. I really do like linux and as I mentioned it really works well for us.

Yes. I know of some of the rpm flags, but probably not all of them.

I was thinking the rpm database was corrupted after I saw a note regarding the "up2date" installation feature not being able to install after a goodly amount of wait time and to do a
rpm -v --rebuilddb
statement to clean it all up after deleting the lock files "--db1", etc.

I'll get it yet.
It's probably worth investiating all the options and what they do when used together in that case - it certainly took away a lot of the headaches I had with RPM. Lets face it, it's kind of difficult to be taken seriously (and RHCEs have to use RPM a lot) if you're selling a broken utility.

Debian's apt-get is a great utility but for a sysadmin, the combination of up2date and rpm takes away a lot of hassle (usually ).
 
Old 03-27-2003, 01:50 AM   #9
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Rep: Reputation: 15
I think this is the part where I recommend synaptic from freshrpms. It adds APT functionality to rpm's, so it takes care of depency issues and the like. It's still pretty new, and the package repositories are relatively small, but I think if RedHat were to pick it up and run with it, they'd be doing a lot of ppl a huge favor. I haven't had to worry about rpm hell since I installed it. I don't have a link, but I'm sure you can find it from http://www.google.com/linux

Hope things go better for you tomorrow.
 
Old 03-27-2003, 02:08 AM   #10
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 991

Rep: Reputation: 30
to me RH 6.2 is still best
 
Old 03-27-2003, 06:39 AM   #11
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
You can use a version of apt on RPM based machines and it will eliminate alot of the dependency problems. You can get apt for RH at http://freshrpms.net

I've been using it at work, and it has made my life a lot easier. It's not as, er um wonderful (for lack of better word) on RPM based distros as it is on Debian. I think that is mainly because there just aren't enough apt repositories for RPM at this point. Still it definately makes life easier.
 
  


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
Dcop server keeps commiting suicide Toadman Linux - Software 5 07-17-2005 12:30 PM
dcopserver commits suicide! Read all about it! tireseas Linux - Software 3 07-18-2004 03:38 PM
When harddrives almost commit suicide. squall14716 Linux - General 8 05-29-2004 06:53 PM
USB 2.0 card mass suicide? Electrode Linux - Hardware 4 08-10-2003 07:45 PM
Samba Suicide! dbCooper Linux - Networking 1 01-16-2002 08:19 AM


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