mberd
Feb 12 2006, 01:10 AM
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
Feb 12 2006, 02:01 AM
try
/usr/bin/gcc -v
mberd
Feb 12 2006, 04:36 PM
No luck either:
/usr/bin/gcc -v
-bash: /usr/bin/gcc: No such file or directory
scooterh
Feb 12 2006, 04:42 PM
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
Feb 12 2006, 04:53 PM
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
Feb 12 2006, 05:01 PM
Also ls -l /usr/bin/gcc* if its a cpanel server, and you have compilers turned off sometimes make them non executable.
mberd
Feb 12 2006, 05:03 PM
Scooter -
I missed --force before, and now it worked !
Thanks!
scooterh
Feb 12 2006, 05:23 PM
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.