RPM problems with Redhat Linux

tuzz

Member
Feb 20, 2001
77
0
0
Hey been having problems installing MySQL packages into Redhat 7.3 using VMWare Workstation 4.0. At first I thought it was problems with the RPM's themselves, as KPackage would start installing the packages since this is the message I get:

Found 0 source and 1 binary packages
insatlling binary packages


But KPackage just sits there, not doing anything. I have these options checked: Upgrade, Replace Packages, Check Dependencies. Unchecking Ugrade and Replace Packages makes no difference.

However, in GnoRPM, when trying to install the same packages I get the error message:
Application "gnorpm-auth" (process xxxx) has crashed due to a fatal error.
(Segmentation fault)


Trying to allocate more memory to the Linux virtual machine didn't help at all.

Finally I tried to install the RPM's from command line, using the command "rpm -ivh *packagename.rpm" but this is the error message I get:

error: unpacking of archive failed on file /usr/bin/comp_err;3f6e8e60: epio: read
Segmentation fault


What could be causing this?
 

sciencewhiz

Diamond Member
Jun 30, 2000
5,885
8
81
it sounds like the RPM is corrupt. See what you get when you do "file *packagename.rpm". You could also try rpm2cpio, and see if you can get a good cpio archive that will extract. You can also try redownloading the packages.

Do you have enough free disk space?
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
well this is what I would do:

1. are you root when you are trying to install the package? (you can check by typing in the command line "whoami")
2. do you have enough disk space? linux does very poorly with little disk space (you can check using the command "df -h")
3. I had trouble with rpms a long time ago then I decided to switch to debian because of apt-get. What I would personally recommend is to get the source package:

Once you have the source package you can compile it and installing it:

tar xzvf <package.tar.tgz>
cd <package name>
./configure --prefix=/usr/local
make
make install (make sure that you are root when you are doing the make install)

I would personally be logged in as your self throughout the whole configure and make process, but when you are getting ready to make install make sure that you are logged in as ROOT

I hope this helps,
pitupepito
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
That's not the error you'll get from trying to install as non-root. You'd get something about failing to establish a lock on the database in that case.

It's possible the RPM is corrupt, though that seems unlikely to segfault the process. Maybe, though. Are the RPM's designed for RH 7.3? RPM internals changed pretty dramatically from 7.3 to 8 to 9, so it's possible that packages built under a different RPM version are at fault. I assume you can install other RPM's without issue?