How to install g++-4.9 on Fedora 23 [closed]

asked 2016-04-25 16:30:18 -0500

sidor gravatar image


I am working on a project that requires cuda 7.5 and c++11. I am a big fun of Fedora and I really don't want to install ubuntu just for this purpose ;)

The problem is that gcc 5.3 uses some c++11 features not supported by nvcc, which means I will not be able to compile any cuda projects using 5.3.

I would like to therefore install gcc 4.9 somewhere on the side. What is the easiest way of doing so?

I tried manually extracting subsets of gcc-4.9.2 rpms from fc21, but it seems like a futile process, I got stuck at the point where gcc-4.9 links against wrong version of libstdc++ and if I try to swap that so file then basic programs like cmake suddenly stop working. Hopefully there's an easier way, though!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by davidva
close date 2016-04-26 01:18:20.101270


You can always run a docker image of Ubuntu or fc21 to compile as you need or a virtual machine

aeperezt gravatar imageaeperezt ( 2016-04-25 17:32:00 -0500 )edit

already answered HERE

davidva gravatar imagedavidva ( 2016-04-26 01:17:56 -0500 )edit