您的位置:首页 > 运维架构 > Linux

Linux make: g++: Command not found

2015-08-21 17:57 531 查看
Linux使用make命令时遇到“make:g++:Commandnotfound”,这个主要是没有安装gcc-c++.x86_64,如下所示

[root@localhostnethogs]#make
g++-g-Wall-Wextra-cpacket.cpp
make:g++:Commandnotfound
make:***[packet.o]Error127


root@localhostnethogs]#yumsearch"gcc-c++"
Loadedplugins:product-id,security,subscription-manager
ThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.
====================================N/SMatched:gcc-c++====================================
gcc-c++.x86_64:C++supportforGCC
Nameandsummarymatchesonly,use"searchall"foreverything.
[root@localhostnethogs]#yumlist"gcc-c++"
Loadedplugins:product-id,security,subscription-manager
ThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.
media|4.1kB00:00...
AvailablePackages
gcc-c++.x86_644.4.7-11.el6media



[code][root@localhostnethogs]#yuminstall"gcc-c++.x86_64"
Loadedplugins:product-id,security,subscription-manager
ThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.
SettingupInstallProcess
ResolvingDependencies
-->Runningtransactioncheck
--->Packagegcc-c++.x86_640:4.4.7-11.el6willbeinstalled
-->ProcessingDependency:gcc=4.4.7-11.el6forpackage:gcc-c++-4.4.7-11.el6.x86_64
-->ProcessingDependency:libstdc++-devel=4.4.7-11.el6forpackage:gcc-c++-4.4.7-11.el6.x86_64
-->ProcessingDependency:libmpfr.so.1()(64bit)forpackage:gcc-c++-4.4.7-11.el6.x86_64
-->Runningtransactioncheck
--->Packagegcc.x86_640:4.4.7-11.el6willbeinstalled
-->ProcessingDependency:cpp=4.4.7-11.el6forpackage:gcc-4.4.7-11.el6.x86_64
-->ProcessingDependency:cloog-ppl>=0.15forpackage:gcc-4.4.7-11.el6.x86_64
--->Packagelibstdc++-devel.x86_640:4.4.7-11.el6willbeinstalled
--->Packagempfr.x86_640:2.4.1-6.el6willbeinstalled
-->Runningtransactioncheck
--->Packagecloog-ppl.x86_640:0.15.7-1.2.el6willbeinstalled
-->ProcessingDependency:libppl.so.7()(64bit)forpackage:cloog-ppl-0.15.7-1.2.el6.x86_64
-->ProcessingDependency:libppl_c.so.2()(64bit)forpackage:cloog-ppl-0.15.7-1.2.el6.x86_64
--->Packagecpp.x86_640:4.4.7-11.el6willbeinstalled
-->Runningtransactioncheck
--->Packageppl.x86_640:0.10.2-11.el6willbeinstalled
-->FinishedDependencyResolution
DependenciesResolved
==============================================================================================
PackageArchVersionRepositorySize
==============================================================================================
Installing:
gcc-c++x86_644.4.7-11.el6media4.7M
Installingfordependencies:
cloog-pplx86_640.15.7-1.2.el6media93k
cppx86_644.4.7-11.el6media3.7M
gccx86_644.4.7-11.el6media10M
libstdc++-develx86_644.4.7-11.el6media1.6M
mpfrx86_642.4.1-6.el6media156k
pplx86_640.10.2-11.el6media1.3M
TransactionSummary
==============================================================================================
Install7Package(s)
Totaldownloadsize:22M
Installedsize:53M
Isthisok[y/N]:y
DownloadingPackages:
----------------------------------------------------------------------------------------------
Total163MB/s|22MB00:00
Runningrpm_check_debug
RunningTransactionTest
TransactionTestSucceeded
RunningTransaction
Installing:mpfr-2.4.1-6.el6.x86_641/7
Installing:cpp-4.4.7-11.el6.x86_642/7
Installing:ppl-0.10.2-11.el6.x86_643/7
Installing:cloog-ppl-0.15.7-1.2.el6.x86_644/7
Installing:gcc-4.4.7-11.el6.x86_645/7
Installing:libstdc++-devel-4.4.7-11.el6.x86_646/7
Installing:gcc-c++-4.4.7-11.el6.x86_647/7
Verifying:gcc-4.4.7-11.el6.x86_641/7
Verifying:gcc-c++-4.4.7-11.el6.x86_642/7
Verifying:mpfr-2.4.1-6.el6.x86_643/7
Verifying:libstdc++-devel-4.4.7-11.el6.x86_644/7
Verifying:cpp-4.4.7-11.el6.x86_645/7
Verifying:ppl-0.10.2-11.el6.x86_646/7
Verifying:cloog-ppl-0.15.7-1.2.el6.x86_647/7
Installed:
gcc-c++.x86_640:4.4.7-11.el6
DependencyInstalled:
cloog-ppl.x86_640:0.15.7-1.2.el6cpp.x86_640:4.4.7-11.el6gcc.x86_640:4.4.7-11.el6
libstdc++-devel.x86_640:4.4.7-11.el6mpfr.x86_640:2.4.1-6.el6ppl.x86_640:0.10.2-11.el6
Complete!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: