Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-20-2006, 02:26 PM   #1
Registered: Sep 2003
Posts: 40

Rep: Reputation: 15
GCC, symlink, and everything in between

First of all, thank you for opening this thread

I currently have gcc version 2.95 (i dont know why)

I need gcc 3.3.6

I read in some previous topics that after installing gcc with the commands that are avaliable on some sites that I might need to update the symlink (?) so that the system (suse) will recognize the newly installed gcc as the active gcc.

what is symlink? How do I update it?


Is there an alternative for making the system recognize the new gcc?

Thank you very much,

Your local linux newbie
Old 02-20-2006, 02:44 PM   #2
Registered: May 2004
Distribution: Slackware
Posts: 108

Rep: Reputation: 15
Firstly, are you sure the GCC version is really 2.95? That sounds strange since no newer distro uses it. Open up a console (it is sometimes called konsole) and type gcc -v. Which version does it report?

Secondly, A symlink is way to make a program or the system aware of a file that is in an unusual place, or if it has a name that is incorrect. For example, Firefox can't find the java plugin because it is located in /usr/java/plugin and Firefox only checks for its plugins in /usr/lib/firefox/plugins. In order to make Firefox aware of the java plugin you can create a symlink in /usr/lib/firefox/plugins that points to the java plugin like this.
ln -s /usr/java/plugins/ /usr/lib/firefox/plugins
Now Firefox will locate and use the java plugin even though it is in an unusual place.
Old 02-20-2006, 02:48 PM   #3
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15

ln -s src dst

the syntax?

yes, I have 2.95 because I thought i needed it for a program, but i need a slightly newer version

thanks again!
Old 02-20-2006, 02:49 PM   #4
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
Which version of SusE you have?. Anyway you can use YaST -> Software -> Software Management to install and update programs.

In your case you need to update the gcc program (GNU Family of compilers), type gcc in the search box and YaST will list all the progrmas related with gcc installed, look for gcc and you'll find also the version of gcc installed. If this line is blue it means that you can update it, so you just click the thick besides gcc click Accept and YaST will install it for you. If you have this line in black it means that you have the latest version installed. Chances are that your only installation source is the DVD or set of CDs of the installation. if you want to access more packages and the latest versions you need to add an installation source from the internet.

A symlink is an abbreviation of "Symbolic link", it's an special file without any content that just points to another directory, in this case to the directory where gcc has been installed. If you use YaST, it will take care of updating the program and configure it (change the symbolic link among other things).


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
Symlink Fredde87 Linux - General 14 09-30-2005 08:06 PM
where is symlink? guitarfella Slackware 3 12-04-2004 07:34 AM
symlink mikedelo Linux - Software 2 03-28-2004 12:32 PM
symlink evannextel Linux - Newbie 1 09-17-2003 03:54 PM
Symlink Mestax Linux - Newbie 3 09-04-2003 12:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 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
Open Source Consulting | Domain Registration