How do I install g++ for Fedora?
问题 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 回答1: The package you're looking for is confusingly named gcc-c++. 回答2: instead of g++ you have to write gcc-c++ sudo dnf install gcc-c++ 回答3: You should exec: dnf install gcc-c++ 回答4: 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. 回答5: try sudo dnf