Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-16-2006, 01:34 AM   #1
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
has anybody any experience on installing a second gcc version?

I have an old version of LEDA. LEDA is a library of the data types and algorithms of combinatorial computing. It's in C++ and used to be free and open-source for educational use. Nowdays it's not. I used to use this in one of my undergraduate courses. This old LEDA won't compile with a gcc newer that 2.95.
SO, I'm about to install a second gcc version in /opt. Has anybody done this?
If I remember correct 2 years ago, when I had installed FC2 it had 2 different gcc versions. So, this is feasible.
Any suggestions before I proceed?
Old 02-16-2006, 02:03 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,578

Rep: Reputation: 220Reputation: 220Reputation: 220
I've done it; it's no big deal. The command gcc is really a link to gcc-<version>. If you want to compile with a different gcc version, you have to explicitly give the full name of the gcc version you want to use.
Old 02-16-2006, 03:42 AM   #3
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Original Poster
Rep: Reputation: 52
Actualy I found a this page in tldp

I remember reading somewhere that many kernel developers still use the 2.95 compiler because it compiles a lot faster than the newer ones, and is very stable. Yeah it was really simple.
Thanks for the reply.
LEDA worked.


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 03:54 PM
installing another version of gcc kulmis Linux - Newbie 3 06-21-2005 02:24 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 09:17 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 02:40 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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

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