简体   繁体   中英

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

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

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM