How do I install g++ for Fedora?

2019-01-30 02:56发布

How do I install g++ for Fedora Linux? I have been searching the dnf command to install g++ but didn't find anything.

How do I install it?

I have already installed gcc

9条回答
ら.Afraid
2楼-- · 2019-01-30 03:23

try sudo dnf update and then sudo dnf install gcc-c++

查看更多
走好不送
3楼-- · 2019-01-30 03:23

In the newer distribution you can just type command as blow

su root
dnf update
dnf install gcc-c++
查看更多
放我归山
4楼-- · 2019-01-30 03:24

I had the same problem. At least I could solve it with this:

sudo yum install gcc gcc-c++

Hope it solves your problem too.

查看更多
登录 后发表回答