LinuxQuestions.org
Register a domain and help support LQ
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 05-03-2013, 03:00 AM   #1
teju71288
LQ Newbie
 
Registered: May 2013
Location: vadodara
Posts: 3

Rep: Reputation: Disabled
Question problem to install c++ & g++ in centos


Hello Friends,

I use Cent-OS 5, and I want to use ./configure command to configure asterisk file, but during this command run, it need g++ or c++ compiler, I have already gcc compiler but it is not used.

To install g++ and c++ compiler I used command "yum install gcc-g++", but I get error message.

Loaded plugins: fastestmirror, kmod, security
Loading mirror speeds from cached hostfile
*base: mirror.nbrc.ac.in
*extras: mirror.nbrc.ac.in
*updates: mirror.nbrc.ac.in
http://people.centos.org/tru/devtool...MS/repomd.xml:[Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrive repository metadata (repomd.xml) for repository: testing devtools-5. Please verify its path and try again


After some time -
INIT: Version 2.86 reloading

If someone knew solution please help me....
 
Old 05-03-2013, 03:36 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
It's
Code:
yum install gcc-c++
Learn to use your search engine. It will save you lots of time.
http://www.lampdocs.com/blog/2008/11...-and-centos-5/
jdk

Last edited by jdkaye; 05-03-2013 at 03:38 AM.
 
Old 05-03-2013, 03:40 AM   #3
teju71288
LQ Newbie
 
Registered: May 2013
Location: vadodara
Posts: 3

Original Poster
Rep: Reputation: Disabled
Actually I want to update asterisk on cent-OS 5, but when I used
#yum install update or #yum update
there is same problem as I mentioned above post.

so I install asterisk11.3.X using wget command,
and I tried to configure it using
#./configure
I got another problem
configure: error: in "root/asterisk11.3.0/"
configure: error: C++ Prforeprocessor "/lib/cpp" fails sanity check
See 'config.log' for more details


so I think I need to install C++...
 
Old 05-03-2013, 03:56 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I really don't understand what you're trying to do or what exactly you want. Maybe somebody who's familiar with CentOS can help you. If you're not trying to install C++ maybe you should start a new thread.
jdk

Last edited by jdkaye; 05-03-2013 at 03:58 AM.
 
Old 05-03-2013, 04:18 AM   #5
teju71288
LQ Newbie
 
Registered: May 2013
Location: vadodara
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by jdkaye View Post
I really don't understand what you're trying to do or what exactly you want. Maybe somebody who's familiar with CentOS can help you. If you're not trying to install C++ maybe you should start a new thread.
jdk
lets make it clear, I want to install c++ in centos 5, and I already used command
Code:
#yum install g++
Code:
#yum install gcc-g++
Code:
#yum install c++
Code:
#yum install gcc-c++
but I got error which I show you in my first post.
 
Old 05-03-2013, 05:10 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Is it a problem with your repositories then?
Quote:
Error: Cannot retrive repository metadata (repomd.xml) for repository: testing devtools-5. Please verify its path and try again
jdk
 
Old 05-03-2013, 06:26 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
This repo
http://people.centos.org/tru/devtools/5/i386/RPMS/
... does not exist ( any more.) (Is available for x86_64 only.)

You will have to remove the file devtools.repo from /etc/yum.repos.d/,
or mark it enable=0


-

Last edited by knudfl; 05-03-2013 at 06:29 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to install and configure Xen in Debian & CentOs linuxguru87 Linux - Newbie 2 09-22-2012 04:05 AM
how to install emesene in CentOS 6.2 & compiz BaGs Bunny Linux - Newbie 14 03-01-2012 03:28 AM
Please help me install latest JDK & JRE on my CentOS server xNuManx Linux - General 5 10-04-2008 05:49 AM
Trying to install a GUI & VNC on a CentOS 5.1 server cdn415 Linux - Software 2 08-17-2008 10:16 PM
PromiseTX2300 RAID & CentOS New Install cvs Linux - Hardware 1 09-22-2006 11:39 AM


All times are GMT -5. The time now is 07:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration