Share your knowledge at the LQ Wiki.
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-06-2007, 02:46 AM   #1
LQ Newbie
Registered: Oct 2006
Posts: 12

Rep: Reputation: 0
Error trying to configure/add another gcc

I am trying to add another gcc in /usr/local for backward compatibility
current version is: gcc version 3.4.6 /usr/bin/gcc
i want to keep that but install another one in the user local area.
Have downloaded the relevant source and am getting and config.h error per:
~/gcc-2.2.2/configure prefix=/usr/local/gcc/2.2.2
../gcc-2.2.2/configure: cannot create a link `config.h',
since the file `config/xm-prefix=/usr/local/gcc/2.2.2.h' does not exist
any known workarounds or fixes to get past this error will be great.

Last edited by powen; 07-06-2007 at 02:48 AM.
Old 07-06-2007, 05:07 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Moved: This thread is more suitable in Linux Software and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 07-18-2007, 08:37 PM   #3
LQ Newbie
Registered: Oct 2006
Posts: 12

Original Poster
Rep: Reputation: 0

Have found that it appears to be the gcc source - all except 2.95 will actually configure.
Prior to this each one either requires more arguments in the configure statement or the config.h cannot find a missing prefix file in the source.
I found a good web site white paper on what to do:
this has a source link as well for older versions of gcc that can be built and installed to run alongside the current gcc
so it is possible to do and not for all prior versions, unless you know how to overcome the errors. For me it is not that critical.


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 configure error bourbonstreet Linux From Scratch 2 11-03-2006 10:50 PM
gcc ./configure error!! HELP nectron101 Linux - Newbie 1 04-09-2006 10:24 PM
Error ./Configure GCC 3.4.4 D1G1T477 Linux - General 1 06-21-2005 10:29 AM
mplayer ./configure gcc error U-Toast Linux - Software 21 08-28-2004 05:06 PM
gcc configure error rl5 Linux From Scratch 2 03-31-2004 09:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:48 AM.

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