In linux, gcc and g ++ are installed on the linux server today. The C/C ++ compiler gcc and g ++ are installed, and the following two commands are run: www.2cto. com1yuminstallgcc2yuminstallg ++ then finds that gcc can be correctly installed, but it is mentioned when installing g ++... in linux, the gcc and g ++ compilers gcc and g ++ are installed on the linux server today. The following two commands are run: www.2cto.com 1 yum install gcc 2 yum install g ++ and then find that gcc can be correctly installed, but the prompt is displayed when installing g ++: cannot find a package matching g ++ and then search for it online. in linux, the C ++ compiler is not named g ++, but gcc-c ++, in this case, I took it for granted. Then run 1 yum install gcc-c ++ libstdc ++-devel. After the installation is complete, enter which g ++ in linux and you will see that g ++ has been installed (usually in the/usr/bin directory)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.