LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installation Problems using RPM (https://www.linuxquestions.org/questions/linux-newbie-8/installation-problems-using-rpm-203459/)

mitu 07-10-2004 01:46 PM

Installation Problems using RPM
 
Hi,

I'm having major problems with using rpm to install packages (i.e. gcc and binutils) on my new RedHat 9 server.

i'm using the command in the following format:

rpm -ivh packagename.rpm.

Where packagename.rpm is the URL of the remote rpm file for binutil. This gives no errors. However, when I then try entering binutil at the prompt, I get the error "-bash: binutil: command not found". Indeed, entering rpm -q binutil tells me that package binutil is not installed.

I've tried doing an updatedb, but this doesn't seem to help. I've typed locate binutil, which outputs the following:

Quote:

/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-ia64-brl.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-array-sects-compat.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-20030206.patch.bz2
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-alpha-relax.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-eh-frame-hdr.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-compatsym.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-libpath-suffix.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-eh-frame-ro.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-ld-r.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-ltconfig-multilib.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-ppc64-tls1.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-ppc64-tls2.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-s390-file-loc.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-s390-noreladyn.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-searchdir.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-sparc-nonpic.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18-sub-same.patch
/usr/src/redhat/SOURCES/binutils-2.13.90.0.18.tar.bz2
/usr/src/redhat/SPECS/binutils.spec
Therefore, it looks like rpm is indeed unpacking the rpm into that location, but not actually installing it? What do I need to do?

I would of course go and manually build binutils myself from those files, but I don't have gcc installed yet either! :(

What can I do? Any help would be very much appreciated! Thanks in advance. :D

(Oh, and this is all on a remote server, so I can't use the RedHat CDs!)

bruno buys 07-10-2004 02:13 PM

Isn't it because you installed the source binutils (as it seems by the path /usr/src/redhat/SOURCES/ ... in theses lines)?

What is the output of
whereis binutils

Try to search and install a binary binutils.

mitu 07-10-2004 02:52 PM

Quote:

Originally posted by bruno buys
Isn't it because you installed the source binutils (as it seems by the path /usr/src/redhat/SOURCES/ ... in theses lines)?

What is the output of
whereis binutils

Try to search and install a binary binutils.


Ahhhh I see! Thanks very much, I've now tried downloading adifferent binutils rpm and things seem to work now!


All times are GMT -5. The time now is 08:46 PM.