机器:
hostnamectl set-hostname node1
编译安装python3
yum install -y libaio-devel gcc gcc-c++ zlib-devel expect bzip2 [root@node1 ~]# mkdir -p /opt/software/txdb [root@node1 ~]# chmod 755 -R /opt/software [root@node1 ~]# wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz [root@node1 ~]# mkdir -p /usr/local/python3 [root@node1 ~]# tar -zxvf Python-3.6.5.tgz [root@node1~]# cd Python-3.6.5 [root@node1 Python-3.6.5]#./configure --prefix=/usr/local/python3 --e nable-shared CFLAGS=-fPIC && make && make install [root@node1 Python-3.6.5]# ln -s /usr/local/python3/bin/python3 /usr/ bin/python3 [root@node1 Python-3.6.5]# ln -s /usr/local/python3/bin/pip3 /usr/bin /pip3 [root@node1 Python-3.6 .5 ]# cat <<END >> /etc/ld.so.conf.d/python3.conf /usr/local/python3/lib END [root@node1 Python-3.6.5]# ldconfig 标签:单机版,Python,root,3.6,usr,node1,openGauss,安装,python3 From: https://www.cnblogs.com/lxqtest/p/17684009.html