LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   any software cann't be installed in red hat linux 9.0 (https://www.linuxquestions.org/questions/linux-newbie-8/any-software-cannt-be-installed-in-red-hat-linux-9-0-a-337932/)

wucheng 06-28-2005 03:19 AM

any software cann't be installed in red hat linux 9.0
 
2
my host computer 's operare system is windows xp .
and i installed the VMware in my computer .i created a virtual computer and installed the red hat 9.0 operate system .but i can not install any software under red hat OS .even the easiest-installed software ,for instance the RPM software is impossible to be install .i n the termination window ,i use this command "RPM -ivh rpmfilename.rpm",but fail to success .
are there anyone know how to salve this problem ?

BroX 06-28-2005 03:31 AM

I have no clue about rpm based distributions, but what kind of error message do you get when you try to install an rpm package?

wucheng 06-28-2005 04:02 AM

for example ,in the examination window ,i input "rpm -ivh xmms-1.2.10-1.src.rpm"
the information is "can not create %sourcedir /usr/src/redhat/SOURCES
do you know what can i do

heema 06-28-2005 05:22 AM

its not working because your trying to install a source package

xmms-1.2.10-1.src.rpm <== the src means source

you should get and install a binary one . eg: xmms-1.2.10-1.rpm

or if you want , you could build a binary package from the src package with pkgbuild

Code:

As root, or sudo:
rpmbuild --target i686 --rebuild noname-0.0.1.src.rpm


Go get a cup of coffee. This process may take a while,
 depending on the package. This process involves installing the src package
 to /usr/src/redhat/SOURCES, running configure, and running make.

Look in /usr/src/redhat/RPMS/i686 for the completed binary .rpm package.
 These packages can be installed with:

cd /usr/src/redhat/RPMS/i686
rpm -ivh noname-0.0.1.i686.rpm


or updated with:
cd /usr/src/redhat/RPMS/i686
rpm -Uvh noname-0.0.1.i686.rpm

http://www.tech-recipes.com/linux_tips214.html


All times are GMT -5. The time now is 10:56 AM.