LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc ./configure error!! HELP (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-configure-error-help-433525/)

nectron101 04-09-2006 09:58 PM

gcc ./configure error!! HELP
 
Hello,

I was just trying to install gcc on my SuSE 9.2 laptop.. But I always get this error message:

Nectron@linux:~/Documents/Programs/gcc-4.0.1> ./configure
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
checking whether ln works... yes
checking whether ln -s works... yes
configure: error: Building in the source directory is not supported in this release.

If you know the solution to this, please tell me what command and options to write, since I'm really confused by now..

ceros 04-09-2006 10:24 PM

The documentation included with gcc will tell you what the solution is. As of gcc 4, you must build gcc in a seperate directory. Basically all you have to do is make a seperate directory next to the gcc-4.0.1 directory, "cd" into the new directory, then "./../gcc-4.0.1/configure" and then whatever configure options you want. Then it's basically the same aftewards, "make bootstrap" "make" "sudo make install."


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