yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel zlib glibc.i686 MariaDB-shared.x86_64 perl-Crypt-MySQL.x86_64 mariadb-devel.x86_64 -y
sqlite3 설치
cd /opt
curl -O https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
tar -zxvf Python-3.8.12.tgz
rm -rf Python-3.8.12.tgz
cd Python-3.8.12
cd /opt/Python-3.8.12
# ./configure --enable-shared --prefix=[PYTHON_BINARY가_위치할_디렉토리]
./configure --enable-shared --prefix=/usr/
make
make install
ln -s -f /usr/bin/python3.8 /usr/bin/python3
cp -rf /usr/bin/pip3 /usr/bin/pip3.6
ln -s -f /usr/bin/pip3.8 /usr/bin/pip3
cp --no-clobber ./libpython3.8.so* /lib64/
chmod 755 /lib64/libpython3.8.so*
echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/:/lib/python3.8/ >> /etc/profile
chmod -R 755 /lib/python3.8
echo export PATH=$PATH:/usr/bin
(For Hue) If you have installed Python 3.8 at a custom location, then you must append the custom path in Cloudera Manager > Clusters > Hue > Configuration > Hue Service Environment Advanced Configuration Snippet (Safety Valve) separated by colon ( as follows after and restart the Hue service:
Key: PATH
Value: [***CUSTOM-INSTALL-PATH***]:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin