LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2009, 05:18 PM   #1
henli
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
rpm -ivh gcc-4.1.1-52.el5.2.src.rpm failed with no error


I run rpm -ivh gcc-4.1.1-52.el5.src.rpm
This is the output:

warning: gcc-4.1.1-52.el5.src.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
1:gcc ########################################### [100%]

[root@dhcpfbb10-138 download]# rpm -q gcc-4.1.1-52*
package gcc-4.1.1-52.el5.src.rpm is not installed

Any additional steps required for installing a src.rpm? I searched on GOOGLE and cannot find gcc-4.1.1-52.el5.i386.rpm, only the src.rpm available.

Thanks for your help in advance.

Henry
 
Old 04-14-2009, 05:25 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

gcc-4.1.2-42.el5.i386.rpm should be OK ?

http://isoredirect.centos.org/centos...s/i386/CentOS/

Or add the CentOS repo to /etc/yum.repos.d
if you don't have a Redhat EL account.
.....

Last edited by knudfl; 04-14-2009 at 05:29 PM.
 
Old 04-14-2009, 06:00 PM   #3
henli
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much for the help.
I got a chicken-egg issue to install gcc-4.1.2-42.el5.i386.rpm

[root@dhcpfbb10-138 download]# rpm -ivh gcc-4.1.2-42.el5.i386.rpm
warning: gcc-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
cpp = 4.1.2-42.el5 is needed by gcc-4.1.2-42.el5.i386
libgcc >= 4.1.2-42.el5 is needed by gcc-4.1.2-42.el5.i386
libgomp = 4.1.2-42.el5 is needed by gcc-4.1.2-42.el5.i386


[root@dhcpfbb10-138 download]# rpm -ivh gcc-c++-4.1.2-42.el5.i386.rpm
warning: gcc-c++-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
gcc = 4.1.2-42.el5 is needed by gcc-c++-4.1.2-42.el5.i386
libstdc++ = 4.1.2-42.el5 is needed by gcc-c++-4.1.2-42.el5.i386
libstdc++-devel = 4.1.2-42.el5 is needed by gcc-c++-4.1.2-42.el5.i386


Does cpp means gcc-c++?

Thanks,
Henry
 
Old 04-14-2009, 06:04 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You can install more than one at once.
Code:
 rpm -ivh gcc-c++-4.1.2-42.el5.i386.rpm gcc-4.1.2-42.el5.i386.rpm
 
Old 04-15-2009, 12:39 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'cpp' is a package too, same link, same location as gcc ...

cpp-4.1.2-42.el5.i386.rpm
( you will find 'libgomp', etc. there too.)

You really should set up a repo, then you can get it all
with the command # yum install <package>
Yum installs the dependencies too, automatically.
And the command # 'yum search name' is very useful.
See post # 2, 3 here
http://www.linuxquestions.org/questi...ghlight=centos
......

Last edited by knudfl; 04-15-2009 at 03:31 AM.
 
Old 04-15-2009, 01:08 PM   #6
henli
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I had all the packages installed successfully using rpm. Thank you so much for the help!
I also setup the yum repos following your instructions. I got an error when I run yum search:

[root@dhcpfbb10-138 SPECS]# yum search sysstat
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up repositories
rpmfusion-nonfree-updates 100% |=========================| 2.5 kB 00:00
epel 100% |=========================| 2.1 kB 00:00
rpmfusion-free-updates-te 100% |=========================| 2.5 kB 00:00
rpmfusion-nonfree-updates 100% |=========================| 2.4 kB 00:00
not using ftp, http[s], or file for repos, skipping - 5Server is not a valid release or hasnt been released yet
Error: Cannot find a valid baseurl for repo: extras

sysstat was successfully installed with rpm:
[root@dhcpfbb10-138 yum.repos.d]# rpm -q sysstat
sysstat-7.0.2-1.el5

Here is the extras:
[root@dhcpfbb10-138 yum.repos.d]# grep extra *.repo
CentOS-Base.repo:[extras]
CentOS-Base.repo:mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
CentOS-Base.repo:#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/

Thanks,
Henry
 
  


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
rpm -ivh vs. rpm -Uvh Eklipz Fedora 6 12-02-2013 01:51 AM
Pls help to explain this syntax. "rpm -ivh bash.rpm --root /mnt/image --replacepkgs" nanosec Linux - Newbie 2 08-12-2008 01:37 PM
php-5.2.5-2.el5.src.rpm with Oracle support DBabo Linux - Software 0 12-18-2007 09:34 PM
error in installing compat-gcc-34-3.4.6-7.src.rpm fairy_queen Linux - Software 4 09-05-2007 07:58 PM
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 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
Open Source Consulting | Domain Registration