gcc not installed at server

neorder

Verified User
Joined
Oct 1, 2003
Messages
392
i downloaded the gcc.tar.gz from directadmin website, untar it and there are

cpp-3.2.3-20.i386.rpm
gcc-3.2.3-20.i386.rpm
gcc-c++-3.2.3-20.i386.rpm
glibc-devel-2.3.2-95.3.i386.rpm
glibc-headers-2.3.2-95.3.i386.rpm
glibc-kernheaders-2.4-8.34.i386.rpm
libstdc++-3.2.3-20.i386.rpm
libstdc++-devel-3.2.3-20.i386.rpm

i'm sorry, but which rpm should i install first? i'm confused. whenever i start one of them, it will ask me to install another rpm.

thanks.
 
okay, i run

# rpm -i *.rpm
warning: cpp-3.2.3-20.i386.rpm: V3 DSA signature: NOKEY, key ID 73307de6
package libstdc++-3.2.3-42 (which is newer than libstdc++-3.2.3-20) is already installed
file /usr/lib/libstdc++.so.5.0.3 from install of libstdc++-3.2.3-20 conflicts with file from package libstdc++-3.2.3-42

what's going on? :confused:
 
okay, i try myself first, followed by this sequence and got gcc but not gcc-c++ installed.

1. rpm -ivh cpp-2.96-98.i386.rpm

2. rpm -ivh glibc-kernheaders-2.4-8.34.i386.rpm

3. rpm -ivh glibc-headers-2.3.2-95.3.i386.rpm

4. rpm -ivh glibc-devel-2.3.2-95.3.i386.rpm

5. rpm -ivh gcc-3.2.3-20.i386.rpm

it's fine until i rpm install gcc-c++, first i got this message:
rpm -ivh gcc-c++-3.2.3-20.i386.rpm
warning: gcc-c++-3.2.3-20.i386.rpm: V3 DSA signature: NOKEY, key ID 73307de6
error: Failed dependencies:
libstdc++-devel = 3.2.3 is needed by gcc-c++-3.2.3-20
Suggested resolutions:
libstdc++-devel-3.2.3-42.i386.rpm

okay, i do this
rpm -ivh libstdc++-3.2.3-20.i386.rpm
warning: libstdc++-3.2.3-20.i386.rpm: V3 DSA signature: NOKEY, key ID 73307de6
Preparing... ########################################### [100%]
package libstdc++-3.2.3-42 (which is newer than libstdc++-3.2.3-20) is already installed
file /usr/lib/libstdc++.so.5.0.3 from install of libstdc++-3.2.3-20 conflicts with file from package libstdc++-3.2.3-42

it says i have newer version of libstdc++-3.2.3-20.i386.rpm, okay i run
rpm -ivh libstdc++-devel-3.2.3-20.i386.rpm
warning: libstdc++-devel-3.2.3-20.i386.rpm: V3 DSA signature: NOKEY, key ID 73307de6
error: Failed dependencies:
libstdc++ = 3.2.3-20 is needed by libstdc++-devel-3.2.3-20

so until now i still can't get gcc-c++ installed.

-----------------------------------

should i just get the gcc original file and manually compile it? i heard it would like quite a long time?

thanks.
 
You need to run them all at once:

rpm -ivh cpp-3.2.3-20.i386.rpm \
gcc-3.2.3-20.i386.rpm \
gcc-c++-3.2.3-20.i386.rpm \
glibc-devel-2.3.2-95.3.i386.rpm \
glibc-headers-2.3.2-95.3.i386.rpm \
glibc-kernheaders-2.4-8.34.i386.rpm \
libstdc++-3.2.3-20.i386.rpm \
libstdc++-devel-3.2.3-20.i386.rpm

If you're in the same directory where these RPMs are all located and you cut and paste in all eight lines, it should work (the backslashes, followed by returns are exactly what's needed.

You wrote:
should i just get the gcc original file and manually compile it? i heard it would like quite a long time?
Yes, it would probably take a very long time.

As in forever. And still not get done...

If gcc isn't installed, how do you expect to use it to compile itself? :confused:

Jeff
 
thanks a lot, but it looks i still can't get it installed

# rpm -ivh cpp-3.2.3-20.i386.rpm \
> gcc-3.2.3-20.i386.rpm \
> gcc-c++-3.2.3-20.i386.rpm \
> glibc-devel-2.3.2-95.3.i386.rpm \
> glibc-headers-2.3.2-95.3.i386.rpm \
> glibc-kernheaders-2.4-8.34.i386.rpm \
> libstdc++-3.2.3-20.i386.rpm \
> libstdc++-devel-3.2.3-20.i386.rpm
warning: cpp-3.2.3-20.i386.rpm: V3 DSA signature: NOKEY, key ID 73307de6
Preparing... ########################################### [100%]
package libstdc++-3.2.3-42 (which is newer than libstdc++-3.2.3-20) is already installed
package glibc-kernheaders-2.4-8.34 is already installed
package glibc-headers-2.3.2-95.3 is already installed
package glibc-devel-2.3.2-95.3 is already installed
package cpp-3.2.3-20 is already installed
package gcc-3.2.3-20 is already installed
file /usr/lib/libstdc++.so.5.0.3 from install of libstdc++-3.2.3-20 conflicts with file from package libstdc++-3.2.3-42

it look like i've libstdc installed already, anyway i now found
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)

is everything correct? btw, how am i going to confirm if gcc-c++ installed? what command to use? i go to /usr/bin and found gcc is there but not gcc-c++.

thanks.
 
mine is centos 3.3, i did download right gcc.tar.gz from right directory from DA's file download link.
 
neorder said:
is everything correct?
Try it. If it works, it's correct.
btw, how am i going to confirm if gcc-c++ installed? what command to use? i go to /usr/bin and found gcc is there but not gcc-c++.
Grep the RPM output to see:

[jeff@da1 jeff]$ rpm -qa | grep gcc
gcc-2.96-113
gcc-c++-2.96-113
gcc-g77-2.96-113
[jeff@da1 jeff]$

Jeff
 
Back
Top