Step 2: Download and unpack the Python source code. ![]() sudo yum -y install wget yum-utils gcc openssl-devel bzip2-devel libffi-devel To install them, use the yum command again. ![]() I chose the minimal amount of packages those are included in CentOS as well. To install them, use the yum libraries and developer tools to allow you to build and compile software from source code. You also need some necessary libraries and developer tools to allow you to build and compile software from source code. Let’s update your CentOS with the yum command. It is a good idea to have an up-to-date operating system before you start doing anything else. Step 1: Prepare CentOS for Python compilation. You will need a functional Linux CentOS 7, 8, or 9 machine, access to the root account, and of course an internet connection.Īll of the steps can be completed as a non-root user, but with the help of the sudo command. If you get /usr/local/bin/python3.7: error while loading shared libraries: libpython3.7m.so.1.Copy and paste this cheatsheet to install the most recent Python 3.11, 3.10, 3.9, 3.8, or 3.7 on Linux, CentOS 7, 8, and 9.-enable-shared is required if you will compile any library with C Extension.configure -enable-optimizations -enable-shared Install build tools sudo yum install gcc openssl-devel bzip2-devel libffi-devel.The how-to is on the internet but I'm writing this as I did compilation serveral times as some options weren't set properaly. so the only way was to compile the source code from website. I always use Ubuntu and It is pretty easy using deadlysnakes PPA. This was my first time to install a recent version of Python on a CentOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |