Installing Python 3.8 on Ubuntu 18
You must install Python 3.8 on all hosts after installing Cloudera Manager and before adding the services to your cluster.
Install the necessary developer tools such as
make on your system.
sudo apt install -y build-essential zlib1g-dev libssl-dev libffi-dev libbz2-dev
- SSH into the host system as a root user.
Download Python 3.8 and decompress the package by running the following
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
Change directory to where you decompressed the Python 3.8 package:
Install Python 3.8 as follows:
./configure --enable-shared --prefix=[***CUSTOM-INSTALL-PATH***]The
--enabled-sharedoption is used to build a shared library instead of a static library.
Build Python 3.8 as follows:
If you see an error such as
makecommand to compile the files:
Run the following command to put the compiled files in the default
location or in the custom location that you specified using the
Copy the shared compiled library files (libpython3.8.so) to the
cp --no-clobber ./libpython3.8.so* /lib64/The
--no-clobberoption is used to prevent overwriting files.
Change the permissions of the libpython3.8.so files as follows:
chmod 755 /lib64/libpython3.8.so*
error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory, then run the following command:
- Run the