LinuxQuestions.org
Register a domain and help support LQ
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 06-21-2005, 08:16 AM   #1
kulmis
Member
 
Registered: Aug 2003
Posts: 33

Rep: Reputation: 15
installing another version of gcc


Hi,

How can I install another version of gcc without deleting the current version on my computer? What I want to do is to compile a kernel module which should be done with the same gcc version with which the kernel was compiled. I have updated the system after installing so now the gcc is newer than the version used to compile the kernel.
I wouldn't want to downgrade my current gcc nor update my kernel.

I'm running Fedora Core 3.

Last edited by kulmis; 06-21-2005 at 08:19 AM.
 
Old 06-21-2005, 08:40 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
First, check to see what you have installed:
Code:
$ gcc<tab>tab>
on my systems shows
Code:
gcc              gcc32            gccmakedep-i386
gcc3             gccmakedep
$ gcc --version
gcc (GCC) 4.0.0 20050606 (Red Hat 4.0.0-11)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc3 --version
gcc3 (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47.fc4)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc32 --version
gcc32 (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47.fc4)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Often installing a new compiler version leaves the old one available.
 
Old 06-21-2005, 09:32 AM   #3
kulmis
Member
 
Registered: Aug 2003
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by PTrenholme

Often installing a new compiler version leaves the old one available.
I have only one version installed.
 
Old 06-21-2005, 01:24 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
it depends a bit on what version you are looking to add
basically you put them in the /opt directory
since it's a bit hard to explain in detain without knowing exactly what you are doing
the best thing is to get a copy of the lateset
Beyond Linux from Scratch book from cvs and in there are instructions for compiling
GCC-3.4.1
GCC-2.95.3
GCC-3.3.4
(these are kind of the standard ones)
complete with patches configure and details so they will work right
 
  


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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
how to know version of gcc phanee Linux - Software 2 08-05-2005 11:45 AM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM


All times are GMT -5. The time now is 10:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration