我正在尝试弄清楚如何在 Hortonworks HDP 上安装 g++
[root@sandbox-hdp Lesson-5.2_pipes]# uname -a
Linux sandbox-hdp.hortonworks.com 4.19.5-1.el7.elrepo.x86_64 #1 SMP Tue Nov 27 12:40:57 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
无论如何,百胜不起作用
yum install g++
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: centos.uni-sofia.bg
* epel: ftp.arnes.si
* extras: centos.uni-sofia.bg
* ius: lon.mirror.rackspace.com
* updates: centos.uni-sofia.bg
No package g++ available.
为什么?
答案1
解决了
yum install gcc-c++
Installing:
gcc-c++ x86_64 4.8.5-36.el7_6.2 updates 7.2 M
Installing for dependencies:
libstdc++-devel x86_64 4.8.5-36.el7_6.2 updates 1.5 M
Updating for dependencies:
libstdc++ x86_64 4.8.5-36.el7_6.2 updates 305 k