LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-02-2004, 01:34 PM   #1
jmg1894
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Rep: Reputation: 0
Help Installing g++


I am new to linux and I'm needing to install/upgrade the g++. I am running RedHat 9.0. From the command prompt I run the following command and this is all that shows up.

[root@ivr source]# rpm -qa | grep gcc
libgcc-3.2.2-5

What other rpm's am I missing? any help would be great!
Thanks
 
Old 07-02-2004, 03:53 PM   #2
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
[root@localhost /]# rpm -qa | grep -i gcc
compat-gcc-7.3-2.96.118
gcc-g77-3.2.2-5
gcc-java-3.2.2-5
libgcc-3.2.2-5
compat-gcc-c++-7.3-2.96.118
gcc-3.2.2-5
gcc-c++-3.2.2-5
gcc-gnat-3.2.2-5
[root@localhost /]# cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
 
Old 07-06-2004, 09:19 AM   #3
jmg1894
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Are these the rpms I need to install?
 
Old 07-06-2004, 11:39 AM   #4
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
Don't think you need to install of these ... but I would suspect you might need ...

gcc-c++-3.2.2-5

... if you want g++ .

bash-2.05b$ rpm -q --filesbypkg gcc-c++-3.2.2-5
gcc-c++ /usr/bin/c++
gcc-c++ /usr/bin/c++filt
gcc-c++ /usr/bin/g++
gcc-c++ /usr/bin/i386-redhat-linux-c++
gcc-c++ /usr/bin/i386-redhat-linux-g++
gcc-c++ /usr/lib/gcc-lib
gcc-c++ /usr/lib/gcc-lib/i386-redhat-linux
gcc-c++ /usr/lib/gcc-lib/i386-redhat-linux/3.2.2
gcc-c++ /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/cc1plus
gcc-c++ /usr/share/doc/gcc-c++-3.2.2
gcc-c++ /usr/share/doc/gcc-c++-3.2.2/ChangeLog
gcc-c++ /usr/share/doc/gcc-c++-3.2.2/ChangeLog.1
gcc-c++ /usr/share/doc/gcc-c++-3.2.2/ChangeLog.2
gcc-c++ /usr/share/doc/gcc-c++-3.2.2/ChangeLog.egcs
gcc-c++ /usr/share/man/man1/g++.1.gz
 
Old 07-06-2004, 01:09 PM   #5
jmg1894
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
If I run this command:

[root@jonesivr source]# rpm -ivh gcc-3.2.2-5.i386.rpm
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]


Then I check to see if it installed I get this message:

[root@jonesivr source]# rpm -q gcc-3.2.2-5.i386.rpm
package gcc-3.2.2-5.i386.rpm is not installed


Is the package then installed? If I try to run the package again it will
tell me that its already installed.
 
Old 07-07-2004, 06:01 PM   #6
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
You should check to see if the package is installed like so ...

[root@jonesivr source]# rpm -q gcc-3.2.2-5
gcc-3.2.2-5

You had the i386.rpm from the RPM file in there
Reading the man page for rpm couldn't hurt.
 
Old 07-08-2004, 08:45 AM   #7
jmg1894
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
I ran that and it show exactly like the above shows. Does it matter what directory I run the make command from in order to install the software I need? I have the directory with the new software in the /tmp directory. Could this be the problem? The following is the error I get:

[root@jonesivr ctserver-2.2]# make
cd src; make;
make[1]: Entering directory `/tmp/Voicetronix/ctserver-2.2/src'
g++ -g -D_DEBUG -DLINUX -W -Wall -DCOMPILED_ON=\"`date +"%H:%M:%S-%d/%m/%y\0"`\
" server.cpp -o server.o -c
/bin/sh: line 1: g++: command not found
make[1]: *** [server.o] Error 127
make[1]: Leaving directory `/tmp/Voicetronix/ctserver-2.2/src'
make: *** [ctserver] Error 2

Last edited by jmg1894; 07-08-2004 at 08:47 AM.
 
Old 08-16-2004, 04:25 AM   #8
dirko66
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Hi,
you most likely have gcc installed, check if there's a file /usr/bin/gcc which is actually
a symbolic link to gcc-3.*
Some scripts use the g++ command, actually gcc is meant, so all you need to do is
creating a symbolic link: /usr/bin# ln -s gcc-3.4 g++

dirk
 
  


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
Installing Mono-got stuck while installing gtk-sharp chutsu Linux - Software 11 01-18-2005 08:25 PM
installing from iso9660 - restarts installation without installing anything scuzzman Slackware 1 10-24-2004 07:46 PM
installing windows without re-installing FC ur-unholyness Linux - Software 1 10-17-2004 06:48 PM
Installing Windows XP after installing Red Hat 9 BluePyre Linux - General 7 03-09-2004 03:37 PM
Installing RAID Drivers before Installing RH 9 kwright Linux - Newbie 3 08-25-2003 09:57 AM


All times are GMT -5. The time now is 01:13 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