LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rpm -ivh gcc-4.1.1-52.el5.2.src.rpm failed with no error (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-ivh-gcc-4-1-1-52-el5-2-src-rpm-failed-with-no-error-719120/)

henli 04-14-2009 06:18 PM

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

knudfl 04-14-2009 06:25 PM

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.
.....

henli 04-14-2009 07:00 PM

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

AlucardZero 04-14-2009 07:04 PM

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

knudfl 04-15-2009 01:39 AM

'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
......

henli 04-15-2009 02:08 PM

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


All times are GMT -5. The time now is 09:14 PM.