El_Loco
El_Loco

Reputation: 1866

How to get Cuda to use gcc 4.6

I am trying to install Cuda on my machine and as usual it causes problem with gcc 4.7 when trying to run the installer.

I have now installed gcc 4-6 which should work and I am now thinking about the best way to install CUDA.

I have thought about creating a symlink to gcc-4.6 so that the installer uses version 4.6 instead of 4.7.

Do you have any suggestions to do that or is there a better solution? It feels a bit stupid erase 4.7 from the machine in order to use cuda.

Thanks in advance! / Erik

Upvotes: 0

Views: 1262

Answers (2)

Brad
Brad

Reputation: 26

Create alternatives so that you can switch between versions at any time check out this helpful page:

How to change the default GCC compiler in Ubuntu?

Upvotes: 1

user2479582
user2479582

Reputation:

Another solution to your problem is to download CUDA 5.5, which works with gcc 4.7. It is currently only available to CUDA registered developers: link to forum announcement

Upvotes: 2

Related Questions