installing gcc on vps?

how can i install gcc in vps servers, as there aren’t any compilers installed I guess I should find a precompiled one. I looked at Installing GCC: Binaries - GNU Project but couldnt find one for redhat, anyone has any idea?

after some research in google, i installed this rpms and now I have gcc running like a charm, now I can install proftpd 8)

cpp-2.96-113.i386.rpm
gcc-2.96-113.i386.rpm
glibc-2.2.5-44.i386.rpm
glibc-common-2.2.5-44.i386.rpm
glibc-devel-2.3.2-95.33.i386.rpm
glibc-headers-2.3.2-95.33.i386.rpm
glibc-kernheaders-2.4-7.16.i386.rpm

if anyone needs help, I can help with pleasure as long as I can :smiley:

do i rpm -Uvh the files u stated ?

yes :wink:

getting some errors while installing those packages , is that ok ?

what kind of errors?
the installations have some dependcies over each other, I’m not sure of the correct order, but if you try to install the wrong one first it will tell you which one you should install first.
sorry for my english, hope that you can understand what i mean.

]# rpm -Uvh gcc-2.96-113.i386.rpm
warning: gcc-2.96-113.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
binutils >= 2.11.93.0.2-6 is needed by gcc-2.96-113
glibc-devel is needed by gcc-2.96-113

you should install first
glibc-devel-2.3.2-95.33.i386.rpm
then try installing gcc-2.96-113.i386.rpm again.

probably it will again tell something is missing, you can find that file in the list i gave above and try installing it first

I did that i get :

rpm -Uvh gcc-2.96-113.i386.rpm
warning: gcc-2.96-113.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
binutils >= 2.11.93.0.2-6 is needed by gcc-2.96-113

try installing this first
ftp://fr.rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/binutils-2.11.93.0.2-11.i386.rpm

i did that i get :

rpm -Uvh binutils-2.11.93.0.2-11.i386.rpm
warning: binutils-2.11.93.0.2-11.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
binutils < 2.13.90.0.16-5 conflicts with glibc-devel-2.3.2-95.33

sorry seems like the previous binutils i gave is an incompatible version, try this:
ftp://itp.tugraz.at/pub/redhat/9/RedHat/RPMS/binutils-2.13.90.0.18-9.i386.rpm

Thanks a lot , u were very helful . Works fine now :slight_smile: .