LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-16-2006, 01:39 AM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
CentOS - how to install RPM's?


I hope this is the correct Linux Distrubition to post in. If not, please move to proper location

I just installed the CentOS (based off of RedHat?) to build some clusters and I need to install a software. I am not too familiar with the RPM system, unfortunately. I managed to download this R-2.3.1-1.fc5.src.rpm file. When I try to install it, I get this:

Code:
[root@master ~]# rpm -ivh R-2.3.1-1.fc5.src.rpm
   1:R                      warning: user martyn does not exist - using root
warning: group martyn does not exist - using root
########################################### [100%]
warning: user martyn does not exist - using root
warning: group martyn does not exist - using root
warning: user martyn does not exist - using root
warning: group martyn does not exist - using root
Who the heck is Martyn (RPM builder?) and do I have to be a Martyn to install this software? What should I do with this RPM file?
 
Old 08-16-2006, 03:32 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You installed the wrong type of package. Any package named *.src.rpm is a source rpm i.e. it contains source code to build a binary rpm. The kind of rpms you need should be something like *.i386.rpm, *.i586.rpm, etc.
 
Old 08-16-2006, 12:57 PM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
also, it appears to have installed okay. You should remove the src rpm package.
rpm -evh rpm-package-name
e=erase
 
Old 08-17-2006, 10:51 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
UPDATE!!!
Holy cow! Problem solved! I got my R statistical program to work under CentOS! I used the 'rpmbuild -bb' command on the source RPM file and it started putting everything together.

What I don't get is how come I didn't have any dependency problems when I used the rpmbuild command. At least my program is working!

-------------

Quote:
Originally Posted by DotHQ
also, it appears to have installed okay. You should remove the src rpm package.
rpm -evh rpm-package-name
e=erase
Apparently it didn't even install!

Code:
[root@master ~]# rpm -e R-2.3.1-1.fc5.src.rpm
error: package R-2.3.1-1.fc5.src.rpm is not installed
I got the non-src.rpm file and this is what happens:

Code:
[root@master ~]# rpm -ivh R-2.3.1-1.fc5.i386.rpm
error: Failed dependencies:
        libc.so.6(GLIBC_2.4) is needed by R-2.3.1-1.fc5.i386
        libgfortran.so.1 is needed by R-2.3.1-1.fc5.i386
Now what? Where do I get these files? Seriously, how do you people even use this RPM system? It's horrible! Is there anything like Debian/Ubuntu with the 'apt-get' feature that resolves dependencies automagically???

Last edited by Micro420; 08-18-2006 at 01:14 AM.
 
  


Reply



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
Can't install rpm's!!! Braveheart1980 Linux - General 8 01-02-2004 05:25 PM
RPM's won't install Hoops66 Red Hat 2 10-16-2003 04:15 PM
RPM's won't install DigiDave Linux - Newbie 10 09-29-2003 05:48 AM
Can't install RPM's kronchev Linux - Software 1 07-30-2003 09:05 AM
rpm's won't install -- help drumma64 Linux - Software 5 06-05-2003 08:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:59 AM.

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
Open Source Consulting | Domain Registration