Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-14-2005, 06:00 PM   #1
LQ Newbie
Registered: Jul 2005
Location: Northern Virginia
Distribution: SuSE 9.1 Personal
Posts: 21

Rep: Reputation: 0
Problems compiling gcc.

Hello All,

I have just installed SuSE 9.1 Personal and am unable to successfully compile gcc. The only requirement listed on the gcc website is binutils and I am running binutils 2.15.90 which meets the minimum requirement for GCC 3.4.4. I am attempting to install it to /usr/local and I do not have a compiler in my root path. I am a little more familiar with SCO Unix and do not know where the equivalent of the .profile for my user account would be located, there seems to be scattered files in both /root and /etc build the environment. More importantly, I do not know where the appropriate path to compiler is. Once I know that I know how to export the CC environment variable and could make due with that. (Of course this is predicated on binutils providing the appropriate tools to compile the software, which I assume it does).

The following is a snippet of what I am getting.

linux:/usr/local # /usr/local/bin/gcc/gcc-3.4.4/configure --target=i686-pc-linux-gnu
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/usr/local/bin/gcc/gcc-3.4.4/configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
linux:/usr/local #

I have been googling around but I cannot find that one piece.

Help....does anyone know the path or do I need a different compiler?

Old 07-14-2005, 06:29 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Well, install gcc (ironically enough) requires a c compiler, usually installed as a binary. Can you not just install gcc as a binary from Yast?
Old 07-14-2005, 06:33 PM   #3
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48

export CC=compilerCommand

Usually gcc resides in /usr/bin and this is normally already in your path the configuration files for a user sit in ~/.bashrc and ~/.bash_profile. The ones in etc are system wide.
Old 07-17-2005, 06:28 PM   #4
LQ Newbie
Registered: Jul 2005
Location: Northern Virginia
Distribution: SuSE 9.1 Personal
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks for getting back to me. Yast shows that the gcc preprocessor and the libgcc package has been installed but I still get the error when trying to compile the latest version. The whole reason for initiating this was to compile the latest version of cups because of a printer problem and I was getting an error that no acceptable compiler was found in the $PATH.

I tried setting the CC environmet variable to compilerCommand and it still gave me the same error.

Is there some other package or dependency that I need to install? When I search yast for gcc it only references the two previously mentioned packages. Is it possible that I need to add /lib to the /etc/profile as that is where the binary is located? Or is there a different environment variable that has to added to the /etc/profile?

I am sorry, I only have sporadic access to my email and am sometimes not able to follow up on these things. Thanks for the quick responses. I really appreciate your input.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compiling problems Jonas Brannstrom Programming 3 08-02-2005 04:12 PM
compiling problems with gcc 3.4 1337 Twinkie Linux - Software 1 05-13-2005 04:51 PM
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 06:49 PM
GCC 3.2.2 - problems compiling MeinVerstand Linux - General 0 05-25-2004 02:24 PM
problems compiling Palm Emulator w/ gcc billder3 Linux - Newbie 1 06-28-2001 12:34 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration