LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-23-2002, 12:32 AM   #1
kato678
LQ Newbie
 
Registered: Feb 2002
Location: New Hampshire
Distribution: redhat 7.2
Posts: 24

Rep: Reputation: 15
Can I install both gcc2.96 and gcc3?..


Hi.Kinda new to Linux.I installed Redhat 7.2 and chose to Install gcc3 (at installation time) as by default I found out the default install doesnt install ANY compiler. Well I'm using Linux to learn to program C and such and want to learn more about the compiler too. Problem is, when I chose to install gcc3 at installation it didnt install any man pages for it. During installation I had the option of installing gcc 2.96 instead of gcc3.
(actually 3.02). My question is can I also install gcc 2.96? because I believe it installs man pages too. So I would have to versions of the compiler on my system.Another quick question. If I have both installed and go to 'make' a program which version would it use? Would I be able to select which version I want to use to compile a program?


thnks alot.
Brian
 
Old 02-24-2002, 06:07 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Hi,
In your situation I'd install only 2.96. If you'd like to have also version 3, install it but not to default path, but to /usr/local. Why? The use libraries of he same names. If you install the in the same path there will be libraries conflict. If 2.96 is installed in standard path (normal installation) and 3 is installed in /usr/local, libraries will be in deifferent directories and you can choose which version to use.
Which vesion of compiler to use you can specify in Makefile. Or you can create a symlink to ver 3 and use gcc and gcc3.

Mara
 
Old 02-24-2002, 06:20 AM   #3
kato678
LQ Newbie
 
Registered: Feb 2002
Location: New Hampshire
Distribution: redhat 7.2
Posts: 24

Original Poster
Rep: Reputation: 15
thnks Mara....

thnks for responding. I went back and reinstalled Redhat 7.2 and chose only gcc 2.96 (along with C++ support) . Im new and learning, so that 'symlink' stuff im not up on yet, but Im learning, there's ALOT to learn in Linux/Unix such as Emacs, reading Info documentation also coupled with trying to learn C programming at the moment also. I find all this exciting tho coming from point click world. I dual boot with Windows 98 and use it for a few things but I just "LOVE" Linux. I've always liked to learn "why" things do what they do and how.


thnks again.
Brian
 
Old 02-24-2002, 06:30 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Hi,
Symlink is like a shortcut from Windows, but much better. If you have Midnight Commander (start: mc) you can create symlinks to files using: File -> Symbolic Link. Thery are really useful.

Mara
 
Old 02-26-2002, 06:07 PM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
To supplement what Mara posted, RedHat is a little grumpy with its RPMs, so you would either have to install one or the other from RPM. I agree with Mara too, 2.96, but that's just because its very proven, it works, its nice. RedHat has a tendancy to ship a lot of beta-ware per version, so we end up with things like 7.0 where the compiler it shipped with would not even compile the kernel.

Cheers,

Finegan
 
  


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
has any one upgraded from gcc3.3.4 to gcc3.4.3? mojarron Slackware 2 03-20-2005 10:44 AM
help! how to install gcc3.3 on redhat 8.0 esigetel Red Hat 1 11-22-2004 07:37 AM
how to down-grade from gcc3.2.2 to gcc2.95? karfei00 Linux - Newbie 2 06-21-2004 12:48 AM
help to install gcc3.0.3 in redhat 8 alrawab Linux - Software 5 12-31-2002 12:04 PM
gcc3 and gcc2 sakeeb Linux - Software 5 06-09-2002 04:41 PM


All times are GMT -5. The time now is 02:31 AM.

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