Help - Search - Members - Calendar
Full Version: gcc and up2date help needed
The Planet Forums > System Administration > General Support Questions
mberd
I am trying to figure out how to make gcc work, and i am totally new to Linux world.

Here is the situation:

step 1:
# up2date -i gcc

Fetching Obsoletes list for channel: rhel-i386-es-3...
########################################

Fetching Obsoletes list for channel: rhel-i386-es-3-extras...
########################################

Fetching Obsoletes list for channel: rhel-i386-es-3-devsuite...
########################################

Fetching rpm headers...
########################################

Name Version Rel
----------------------------------------------------------


The following packages you requested are already updated:
gcc
--------
so it looks like gcc is istalled

step 2:
# gcc -v
-bash: gcc: command not found
-----------------------------------------------------------

What should i do next?

Thanks!
dalem
try

/usr/bin/gcc -v
mberd
No luck either:

/usr/bin/gcc -v
-bash: /usr/bin/gcc: No such file or directory
scooterh
try rpm -q gcc as to make sure its there, which it should be since its not updating

Also ls -l /usr/bin/gcc* if its a cpanel server, and you have compilers turned off sometimes make them non executable.

LAST RESORT:
Could also do up2date -d --get gcc and it will download it to /var/spoo/up2date and you could -Uvh --forice it if its the same version as what shows up in the rpm -q to make sure
mberd
Scooter -

]# rpm -Uvh gcc-3.2.3-53.i386.rpm
Preparing... ########################################### [100%]
package gcc-3.2.3-53 is already installed

then:

# /usr/bin/gcc -v
-bash: /usr/bin/gcc: No such file or directory

:confused:
scooterh
Also ls -l /usr/bin/gcc* if its a cpanel server, and you have compilers turned off sometimes make them non executable.
mberd
Scooter -

I missed --force before, and now it worked !

Thanks!
scooterh
good deal.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.