LinuxQuestions.org
Visit Jeremy's Blog.
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-09-2010, 11:10 AM   #1
dhardisty
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
installing g++


Hello,

I am administering a linux box remotely, and I need to install gcc-g++. I am trying to follow the directions here: http://gcc.gnu.org/install/ (I've also been following this forum's advice about how to install from source: http://www.linuxquestions.org/questi...rograms-45094/ )

I downloaded the most recent release version, extracted the tar.gz, navigated into the libstdc++-v3 directory and ran ./configure. I got the following error:

configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

I don't know where to go from here. I find the gcc installation instructions extremely hard to follow, and I would really appreciate your help.

In case it's helpful, here is my system info:

Linux version 2.6.18-028stab064.7-ent (root@rh5-build-x64) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Thu Aug 20 22:25:02 MSD 2009

I have already tried yum, but it isn't installed on the system:
-bash: yum: command not found

So... should I try to install yum first, or what? Thanks in advance!
 
Old 05-09-2010, 11:24 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Is there any file named "README" or "INSTALL"?

If so, it might contain your answer.
 
Old 05-09-2010, 01:29 PM   #3
dhardisty
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your reply.

Quote:
Originally Posted by MTK358 View Post
Is there any file named "README" or "INSTALL"?

If so, it might contain your answer.
There is a README, which simply says where to find the g++ documentation, which is here: http://gcc.gnu.org/onlinedocs/libstdc++/ . I can't find anything there about my error.
 
Old 05-09-2010, 02:10 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

Ummm ... RH 4.x didn't have yum. Just use rpm or
up2date.



Cheers,
Tink
 
Old 05-09-2010, 02:38 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,634

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Quote:
Linux version 2.6.18-028stab064.7-ent (root@rh5-build-x64)
(gcc version 4.1.2 20071124 (Red Hat 4.1.2-42))
That is Redhat EL 5.

The g++ package name = gcc-c++
..
 
Old 05-09-2010, 04:08 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ooops ... why doesn't it have yum, I wonder?


Cheers,
Tink
 
Old 05-10-2010, 12:03 AM   #7
dhardisty
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Hello Tinkster and knudfl,

Thanks for your help!

Quote:
Originally Posted by Tinkster View Post
Ummm ... RH 4.x didn't have yum. Just use rpm or
up2date.
I tried up2date, but it isn't installed. Rpm is installed. From what I understand, I need to find an rpm that is compatible with my system, right? Do you know how I can figure out which version of gcc-c++ will work on my system, and how to find the right rpm for it? Sorry to have to ask these basic questions, but I'm a Linux newbie (hence why I'm posting here ). I've tried to do this, but I can't figure it out on my own.

Thanks!
 
Old 05-10-2010, 12:08 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
If you have RHEL it should be on your install media. Or you should
be able to use your RHN credentials to download it from the redhat
site directly if the media (w/ remote host and all that) poses to
much of a problem.


Cheers,
Tink
 
Old 05-10-2010, 12:17 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,634

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Well, may be not really RH EL5, with that kernel.
Some appliance ? Or another el5 based custom / commercial OS ?
The command : 'cat/etc/redhat-release' may tell.
Or : 'cat/etc/issue'

Compatible packages .........
http://ftp.scientificlinux.org/linux/scientific/54/
http://ftp.scientificlinux.org/linux...fic/54/x86_64/
http://ftp.scientificlinux.org/linux...ates/security/
http://ftp.scientificlinux.org/linux...ecurity/gcc-c+ +-4.1.2-46.el5_4.2.x86_64.rpm
> gcc-c+-4.1.2-46.el5_4.2.x86_64.rpm

Or : http://mirror.centos.org/centos/5.4/
..
 
Old 05-10-2010, 12:17 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,634

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Sorry , browser hick up.


..

Last edited by knudfl; 05-10-2010 at 09:02 AM.
 
Old 05-10-2010, 01:02 AM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
i think we all missed this bit of info:
Quote:
I am administering a linux box remotely, and I need to install
and a bit from the terminal ( ssh ???? )
" (root@rh5-build-x64)"

this "should be rhel 5 .? 5 point what ?? is anyone's guess
and being a remote setup it might NOT have any -devel packages installed

call your hosting company and ask
yum SHOULD be installed ,now the repos ? that may be a different matter .
 
Old 05-10-2010, 03:15 PM   #12
dhardisty
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
I checked with the hosting company, and yum was definitely not installed, nor could it be (or so they said). The good news is that we figured out which version of gcc-c++ would be compatible (version 3.3.2), and located an rpm and got it installed. So it works now!

Thanks again for your help!!! I very much appreciate it, and I'm super happy to have this issue resolved. It really makes me appreciate the newer distributions, that have things like yum.... would have been sooo much easier.
 
Old 05-10-2010, 03:46 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Can you tell us just WHICH distro you're running there?


Cheers,
Tink
 
Old 05-10-2010, 05:12 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
WHAT!~!!!
Quote:
we figured out which version of gcc-c++ would be compatible (version 3.3.2)
version 3.3
that thing is over a decade old it dates to the 2000's
the current version is gcc 4.5

if they want you to use gcc 3 then it is NOT RHEL 5 it is red hat 9 , and RH9 is nolonger supported.
 
Old 05-11-2010, 08:21 PM   #15
dhardisty
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
Can you tell us just WHICH distro you're running there?


Cheers,
Tink
They said the machine is running Fedora Core 1, which was released circa 2004.

Thanks again for the help!
 
  


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
Toshiba Satellite 110CS installing pdf reader, installing linux nappy501 Linux - Laptop and Netbook 3 10-11-2008 10:45 AM
Installing Vega Strike, having trouble installing SDL_mixer-devel captainxark Fedora 3 09-13-2008 06:29 PM
Installing individual OpenOffice apps without installing the entire suite? roystonlodge DamnSmallLinux 3 06-06-2008 01:14 PM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM
Installing Mandriva 2006 - Hangs installing hard drive controller nvidia mcp04 sata DanielJPayne Mandriva 7 01-19-2006 02:15 AM


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