openGauss单机版安装
机器:
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
编译安装Python3
[root@cenots7 ~]# mkdir -p /usr/local/python3 [root@cenots7 ~]# cd Python-3.6.5 [root@cenots7 Python-3.6.5]# ./configure --prefix=/usr/local/python3 --enable-shared CFLAGS=-fPIC [root@cenots7 Python-3.6.5]# make -j 8 [root@cenots7 Python-3.6.5]# make install [root@cenots7 Python-3.6.5]# ln -s /usr/local/python3/bin/python3 /usr/bin/python3 [root@cenots7 Python-3.6.5]# ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 [root@cenots7 Python-3.6.5]# touch /etc/ld.so.conf.d/python3.conf [root@cenots7 Python-3.6.5]# echo "/usr/local/python3/lib" >> /etc/ld.so.conf.d/python3.conf [root@cenots7 Python-3.6.5]# ldconfig [root@cenots7 Python-3.6.5]# python3 Python 3.6.5 (default, Sep 7 2023, 09:46:41) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information. >>>