標籤:blog java os io for re
今天需要編譯一個項目的時候在裝g++都裝不上,
[[email protected] hadoop]# yum install g++Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comSetting up Install ProcessNo package g++ available.
一直提示這個錯誤,後面參考網上資料用: yum install gcc-c++就可以,如
[[email protected] hadoop]# yum install gcc-c++Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be installed--> Processing Dependency: libstdc++-devel = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64--> Running transaction check---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved
至於是什麼原因就不清楚