Mint 14: update-alternatives seems not to work

Questions about applications and software
Forum rules
Before you post please read how to get help
Level 1
Level 1
Posts: 21
Joined: Fri Jun 04, 2010 11:59 am

Mint 14: update-alternatives seems not to work

Postby skipper » Tue Feb 12, 2013 4:16 pm


I need to install cuda 5 on Mint 14. Cuda 5 doesn't work with gcc-4.7 and g++-4.7, the default version of Mint 14 so I installed gcc-4.5 and g++-4.5.

Now I'd like to use "update-alternatives" to make gcc-4.5 and g++-4.5 the default version during the installation but "update-alternatives --query gcc" says that there isn't an alternative (version 4.5) installed?!?!

Infact version 4.5 is installed from the repository.

How can I make update-alternatives aware of version 4.5?


User avatar
Level 24
Level 24
Posts: 21381
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Mint 14: update-alternatives seems not to work

Postby xenopeek » Tue Feb 12, 2013 6:17 pm

Problem is indeed there is no alternatives registration for gcc or g++. Another user has figured out a while back the commands to run to make a new alternatives registration for gcc and g++. See here: Just replace version 4.3 and 4.4 with 4.5 and 4.7 and you should be set :wink: You only need to follow the steps under "Install Alternatives" and "Configure Alternatives".

Return to “Software & Applications”