国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

Linux make: g++: Command not found

2024-06-28 13:19:04
字體:
來源:轉載
供稿:網友
linux make: g++: Command not found 2015-08-21 17:57 by 瀟湘隱者, ... 閱讀, ... 評論, 收藏, 編輯

Linux使用make命令時遇到“make: g++: Command not found”,這個主要是沒有安裝gcc-c++.x86_64,如下所示

[root@localhost nethogs]# make
g++ -g -Wall -Wextra -c packet.cpp
make: g++: Command not found
make: *** [packet.o] Error 127

root@localhost nethogs]# yum search "gcc-c++"
Loaded plugins: PRoduct-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
==================================== N/S Matched: gcc-c++ ====================================
gcc-c++.x86_64 : C++ support for GCC
 Name and summary matches only, use "search all"for everything.
[root@localhost nethogs]# yum list "gcc-c++"
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
media | 4.1 kB 00:00 ... 
Available Packages
gcc-c++.x86_64 4.4.7-11.el6 media

[root@localhost nethogs]# yum install "gcc-c++.x86_64"
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.4.7-11.el6 will be installed
--> Processing Dependency: gcc = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
--> Processing Dependency: libstdc++-devel = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
--> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-11.el6.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-11.el6 will be installed
--> Processing Dependency: cpp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-11.el6.x86_64
---> Package libstdc++-devel.x86_64 0:4.4.7-11.el6 will be installed
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-11.el6 will be installed
--> Running transaction check
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================
 Package Arch Version Repository Size
==============================================================================================
Installing:
 gcc-c++ x86_64 4.4.7-11.el6 media 4.7 M
Installing for dependencies:
 cloog-ppl x86_64 0.15.7-1.2.el6 media 93 k
 cpp x86_64 4.4.7-11.el6 media 3.7 M
 gcc x86_64 4.4.7-11.el6 media 10 M
 libstdc++-devel x86_64 4.4.7-11.el6 media 1.6 M
 mpfr x86_64 2.4.1-6.el6 media 156 k
 ppl x86_64 0.10.2-11.el6 media 1.3 M
Transaction Summary
==============================================================================================
Install 7 Package(s)
Total download size: 22 M
Installed size: 53 M
Is this ok [y/N]: y 
Downloading Packages:
----------------------------------------------------------------------------------------------
Total 163 MB/s | 22 MB 00:00 
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 板桥市| 长海县| 兴化市| 西盟| 沙湾县| 上虞市| 仁怀市| 石阡县| 醴陵市| 泾川县| 额敏县| 新巴尔虎右旗| 汉寿县| 洞口县| 潜山县| 满洲里市| 黎平县| 登封市| 旬邑县| 长沙市| 集安市| 白朗县| 濮阳市| 屯留县| 射阳县| 龙山县| 马尔康县| 海宁市| 万盛区| 绵竹市| 米易县| 钦州市| 阳东县| 开阳县| 武宁县| 泾阳县| 抚顺县| 怀柔区| 兴山县| 麻城市| 恩施市|