LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2007, 01:00 PM   #1
muby
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Rep: Reputation: 15
Unhappy working with two gcc ?!


greeting to everyone,

i wanted to install older gcc (gcc-3.3.3) while gcc-4.1 was already exits
i did this

Quote:
[root@localhost ~]# rpm -ivh gcc-3.3.3-1.src.rpm
1:gcc ########################################### [100%]
&
Quote:
[root@localhost ~]# export CC=gcc-3.3.3
but when i run ./configure, i get
Quote:
[root@localhost ns-2.31]# ./configure
No .configure file found in current directory
Continuing with default options...
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... gcc-3.3.3
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
im very new to linux & not sure where i did wrong
where can i find my rpm installation? & how to set path to it?

thank you very much.

Muby
 
Old 11-11-2007, 12:17 AM   #2
elfoozo
Member
 
Registered: Feb 2004
Distribution: Debian Jessie
Posts: 257

Rep: Reputation: 32
You should be able to switch between gcc versions by updating the symlink gcc points to in /usr/bin. Install the regular gcc-3.3.3 binary (not src) RPM and delete/recreate the symlink to gcc-4.1 or gcc-3.3 before you use gcc.
 
  


Reply


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 doesn't seem to be working... lukeiamyourfather Linux From Scratch 7 08-01-2007 04:25 AM
GCC installed but not working . puttyman Linux - Newbie 4 12-13-2005 02:59 AM
gcc not working bluknight43 Programming 4 02-14-2005 02:15 PM
gcc compile not working Norman Oklahoma Linux - Software 1 03-22-2004 11:20 AM
Slackware gcc not working? bulzbb Slackware 3 03-20-2004 01:09 AM


All times are GMT -5. The time now is 09:18 PM.

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