LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Unable to configure gcc on opensuse11.3 (https://www.linuxquestions.org/questions/suse-opensuse-60/unable-to-configure-gcc-on-opensuse11-3-a-888947/)

kumartnj 06-29-2011 05:33 AM

Unable to configure gcc on opensuse11.3
 
Hi,

I have installed apache on opensuse11.3, with that i need to install gcc to setup mod_proxy html.

I installed gcc, g++, make packages and also i have a file called "gcc-4.6.0.tar.gz" and i extracted this file in /home location.

when I try to run the ./configure file on this folder,I'm getting the below error.

/home/gcc/gcc-4.6.0 # ./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 a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/gcc/gcc-4.6.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Please let me know what could be the issue.

Thanks in advance !

- Kumar

knudfl 06-29-2011 07:56 AM

Quote:

I installed gcc, g++, make ..
How did you do that ? With Yast ? Or # zypper in gcc-c++ make ?
Then you should definitely have a working gcc.

Quote:

/home/gcc/gcc-4.6.0 # ./configure
GCC cannot be configured in that way. And do not run 'configure' as root.
Gcc-4.6.0 may not be very useful : Is for future software mostly.
May not be able to compile very much current or last years software.
The compilers already available for Suse 11.3 will do fine.

A gcc build example :
http://www.linuxquestions.org/questi...-1-a-842567/#2
I.e gcc requires a build directory outside the gcc source directory.

..

kumartnj 07-05-2011 01:43 AM

Quote:

Originally Posted by knudfl (Post 4399057)
How did you do that ? With Yast ? Or # zypper in gcc-c++ make ?
Then you should definitely have a working gcc.


GCC cannot be configured in that way. And do not run 'configure' as root.
Gcc-4.6.0 may not be very useful : Is for future software mostly.
May not be able to compile very much current or last years software.
The compilers already available for Suse 11.3 will do fine.

A gcc build example :
http://www.linuxquestions.org/questi...-1-a-842567/#2
I.e gcc requires a build directory outside the gcc source directory.

..

Installed gcc with yast

I've successfully installed gcc through yast. Thanks


All times are GMT -5. The time now is 08:31 AM.