LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   GCC not found? (http://www.linuxquestions.org/questions/linux-software-2/gcc-not-found-337470/)

newuser455 06-26-2005 10:24 PM

GCC not found?
 
I just installed FC3 linux on one of my machines. Anyway.. I went and tried to install proftpd and this is what I got:

Code:

[root@host proftpd]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

I am positive that GCC is installed, but for some reason the configure script is not detecting it... Can someone please help? :(

Thanks.

bigrigdriver 06-26-2005 11:11 PM

As the error message states, the compiler was not found in your $PATH (the path variable used by bash when looking for executables). If you were installing as user, it probably wouldn't be. But, if you were installing as root, it should be in your path.

To fix this, edit /etc/ld.so.conf and add the paths to the compilers mentioned in the error message. Then run the command 'source /etc/ld.so.conf' to get bash to reload the $PATH, then try again.

Just remember that you may have to su to root to finish the process. User has limited privileges, and can only take the process so far, then root privilege is required to finish.

teckk 06-26-2005 11:17 PM

I guess that you could
Code:

whereis gcc
And put the dir in you path if gcc is there.
It's at ~/.profile or ~/.bash_profile or something like that. Look in your home dir for a hidden file with that name.

If you can't find it you may want to re-install gcc and related files.
Good luck.

newuser455 06-27-2005 01:47 AM

Ok, when I execute that command, I get:

Code:

[root@host ~]# whereis gcc
gcc: /usr/libexec/gcc

Where would I add the path to the ".bash_profile" file? This is what mine looks like. (I am running as root):

Code:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

Thanks.

newuser455 06-27-2005 03:55 AM

Got it! Maybe gcc was not installed... I just used this command:

Code:

yum install gcc


All times are GMT -5. The time now is 03:07 AM.