分别在hadoop01、hadoop02、hadoop03服务器上批量安装开发工具分别在hadoop01、hadoop02、hadoop03服务器上批量安装开发工具
yum -y groupinstall "Development tools"
检查oppenssl与系统版本是否一致
rpm -qa|grep openssl
检查有无缺少zlib解压缩库类,缺少的话使用yum -y install zlib*命令下载
rpm -qa|grep zlib //检查发现缺少:
缺少截图
yum -y install zlib*
解压Python-3.7.0.tar.xz到软件安装目录(省略rz上传Python-3.7.0.tar.xz文件步骤)
初始设置(预设要将python软件安装到/export/servers/python3.7目录中)
[root@hadoop01 python]# ./configure --prefix=/export/servers/pythons3.7
编译安装python
make && make install
//出现报错:ModuleNotFoundError: No module named '_ctypes'
解决方案:yum install libffi-devel -y
解决后截图:
将编译好的python3.7目录分发至其他虚拟机上去
scp -r /export/servers/python3.7 root@hadoop02:/export/servers/
scp -r /export/servers/python3.7 root@hadoop03:/export/servers/
并在三台虚拟机创建软链接,
ln -s /export/servers/python3.7/bin/python3.7 /usr/bin/python3
测试:
python3 -V