Page 1 of 1

Mint 14: update-alternatives seems not to work

Posted: Tue Feb 12, 2013 4:16 pm
by skipper
Hello,

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?

skipper

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

Posted: Tue Feb 12, 2013 6:17 pm
by xenopeek
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: http://askubuntu.com/a/26518. 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".