LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Assitance with yum install gcc-c++ (https://www.linuxquestions.org/questions/linux-newbie-8/assitance-with-yum-install-gcc-c-670822/)

rjs225 09-18-2008 08:23 AM

Assitance with yum install gcc-c++
 
Please assist me with instruction on how to install gcc-c++ I have been trying for 2 whole days. I have installed every package via yum that is necessary for Asterisk 1.4; but, when I try to install gcc-c++ it gives me a Metadata error each time. I am able to download gcc, which is also needed, but I am unsuccessful with the gcc-c++. PLEASE assist me, someone, anyone…I need this installation to work for my employer, or I will be toast, fried, and eaten alive.

Also, I am a Linux and Asterisk beginner so please be kind and gentle with me. I am JUST learning a few of the commands and have literally been only playing with them for less than 1 month. This Asterisk installation is part of a larger installation that involves working with IPv6 in an IP-to-IP network. BUT, it will not work at all without the Asterisk PBX. And, since we need to test with IPv6, I have to port Asterisk to IPv6, like ASAP or I am truly done.

Thank you to everyone and anyone who heeds my call,

RJS

motsteve 09-18-2008 08:52 AM

Quote:

Originally Posted by rjs225 (Post 3284498)
Please assist me with instruction on how to install gcc-c++ I have been trying for 2 whole days. I have installed every package via yum that is necessary for Asterisk 1.4; but, when I try to install gcc-c++ it gives me a Metadata error each time. I am able to download gcc, which is also needed, but I am unsuccessful with the gcc-c++.

RJS


I'm probably newer than you and all I can find is a g++ not gcc c++. Could it be that simple?

rjs225 09-18-2008 08:58 AM

gcc-c++ error
 
Quote:

Originally Posted by motsteve (Post 3284543)
I'm probably newer than you and all I can find is a g++ not gcc c++. Could it be that simple?

Thanks motsteve,

but I believe it is gcc-c++ I've seen enough info on the web and in text to support this...I am unsure of the metadata error however

rjs225 09-18-2008 09:03 AM

I believe it is related to "Metadata does not match checksum" error
 
Quote:

Originally Posted by rjs225 (Post 3284550)
Thanks motsteve,

but I believe it is gcc-c++ I've seen enough info on the web and in text to support this...I am unsure of the metadata error however

I believe the following error is the root cause:

"Metadata file does not match checksum" error

motsteve 09-18-2008 09:03 AM

Quote:

Originally Posted by rjs225 (Post 3284550)
Thanks motsteve,

but I believe it is gcc-c++ I've seen enough info on the web and in text to support this...I am unsure of the metadata error however


I'm a brute force kind of guy. Did you just cut the error, paste it into the google window and hit the go button?

rjs225 09-18-2008 09:06 AM

metadata checksum error...i think?
 
Quote:

Originally Posted by motsteve (Post 3284557)
I'm a brute force kind of guy. Did you just cut the error, paste it into the google window and hit the go button?

yes, and I still haven't found it yet as specific to what it means for my installation...I have seen articles/ threads, but either I'm slow, or it doesn't apply...working on it as we speak

motsteve 09-18-2008 09:07 AM

With an md5 you may just want to keep trying the install. Maybe it'll fetch from a mirror with a good file.

rjs225 09-18-2008 09:09 AM

metadata checksum error...i think?
 
Quote:

Originally Posted by motsteve (Post 3284563)
With an md5 you may just want to keep trying the install. Maybe it'll fetch from a mirror with a good file.

ok, but it seems to keep trying the same mirror's time after time..are you saying it may switch to other mirrors?

motsteve 09-18-2008 09:14 AM

Well that checksum is getting hosed somewhere and I'm totally guessing as to how to get something with a good sum.

apeto 08-11-2010 01:11 PM

installing asterisk
 
Hi, I'm having the same problem installing Asterisk on a Fedora 13 64 bit system. But the thing is that I'm following the same steps that I did with a Fedora 12 system some month ago and then everything went ok.

I can not install kernel-devel headers so I think this is the main problem. Without kernel-devel headers, gcc can not install.

rjs225, did you solve your problem.
Pleas write to me if you did. apeto2104@gmail.com
Thanks.
Albert.

PTrenholme 08-11-2010 03:09 PM

It's not a good idea to attempt to revive a really old thread. :( The entry preceding yours is dated 18 Sept. 2008. :tisk:

However, the "metadata error" is often seen when you attempt to install from a repository that is being updated. To prevent inconsistencies, when a repository is updated, first the metadata is changed, and then the individual files.

The solution is to wait a while for the repositories to update. FYI: Fedora typically updates the repositories on Saturday and Tuesday, although that's not a rigid schedule.

apeto 08-12-2010 08:14 AM

Im sorry...
 
I was not aware of the date of the post.
Please accept my apologies.
My problem is still there so I'll be checking this forum for a while.
Thanks anyway.
Albert.

Quote:

Originally Posted by PTrenholme (Post 4063356)
It's not a good idea to attempt to revive a really old thread. :( The entry preceding yours is dated 18 Sept. 2008. :tisk:

However, the "metadata error" is often seen when you attempt to install from a repository that is being updated. To prevent inconsistencies, when a repository is updated, first the metadata is changed, and then the individual files.

The solution is to wait a while for the repositories to update. FYI: Fedora typically updates the repositories on Saturday and Tuesday, although that's not a rigid schedule.


apeto 08-12-2010 08:20 AM

installing kernel-devel
 
What you are suggesting is to wait until de repositories are up to date ?
I'm trying to instal kernel-devel headers to compile Asterisk.
I run 'yum install kernel-devel' ( same way I did a couple of month ago
on a Fedora 12 system ) and the response is:
"Nothing to do."
And nothing is done... so, I should wait a week and try again ?
Thanks
Albert.

Quote:

Originally Posted by PTrenholme (Post 4063356)
It's not a good idea to attempt to revive a really old thread. :( The entry preceding yours is dated 18 Sept. 2008. :tisk:

However, the "metadata error" is often seen when you attempt to install from a repository that is being updated. To prevent inconsistencies, when a repository is updated, first the metadata is changed, and then the individual files.

The solution is to wait a while for the repositories to update. FYI: Fedora typically updates the repositories on Saturday and Tuesday, although that's not a rigid schedule.


PTrenholme 08-12-2010 11:58 AM

Quote:

Originally Posted by apeto (Post 4064113)
What you are suggesting is to wait until de repositories are up to date ?
I'm trying to instal kernel-devel headers to compile Asterisk.
I run 'yum install kernel-devel' ( same way I did a couple of month ago
on a Fedora 12 system ) and the response is:
"Nothing to do."
And nothing is done... so, I should wait a week and try again ?
Thanks
Albert.

No, the "nothing to do" response is generated when the install objects are either not found or already installed. (Which of those conditions holds is displayed somewhere above the message.)

I'd suggest that you install the yumex package so you have a GUI front-end to yum, and enter "kernel" in the search box so you can see what you already have installed and what's available. You could also install the smart package manager as an alternative to yum, although the default configuration file for smart only points to the main Red Hat repositories so it can be quite slow. (I keep a copy on my system for those rare times when yum breaks of fails to resolve dependencies. smart is much better at resolving problems.)

If you have the kernel headers installed, check for the kernel-devel-`uname -r` file. You may need it in addition to the kernel-headers-`uname -r` file.

Your yum.log file should show something like this:
Code:

$ sudo grep -iE '(Jul|Aug).*kernel' /var/log/yum.log
Jul 11 08:19:18 Updated: kernel-headers-2.6.33.6-147.fc13.x86_64
Jul 11 08:20:23 Installed: kernel-devel-2.6.33.6-147.fc13.x86_64
Jul 11 08:20:44 Installed: kernel-2.6.33.6-147.fc13.x86_64
Jul 21 10:29:44 Updated: abrt-addon-kerneloops-1.1.1-2.fc13.x86_64
Aug 11 10:10:48 Installed: kernel-devel-2.6.33.6-147.2.4.fc13.x86_64
Aug 11 10:15:44 Updated: kernel-headers-2.6.33.6-147.2.4.fc13.x86_64
Aug 11 10:16:09 Installed: kernel-2.6.33.6-147.2.4.fc13.x86_64
Aug 11 10:19:05 Erased: kernel-firmware



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