Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Steps to compile and install python2.7.5 on loongnix

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "steps to compile and install python 2.7.5 on loongnix". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn the "steps to compile and install python 2.7.5 on loongnix" together!

Python 2.7.5 compiled and installed on loongnix

1. Download python 2.7.5 and save to/data/qtongmon/software

http://www.python.org/ftp/python/

2. extract the files

tar xvf Python-2.7.5.tar.bz2

3. create the installation directory

mkdir /usr/local/python27

4. install Python

./ configure --build=mips64el --prefix=/usr/local/python27

make

make install

Note: The entire process looks identical to the x86 architecture build install py2.7, but added--build=mips 64el in configuration, the build platform is specified as mips 64l, which is why the build error is reported on loonginx.

5. Modify ln pointer of old version (note: after modification here, it may affect the use of yum)

mv /usr/bin/python /usr/bin/python2.4.3

ln -s /usr/local/python27/bin/python /usr/bin/python

6. yum cannot be used after python installation is completed. Fix yum here.

Edit/usr/bin/yum

vim /usr/bin/yum

#!/ /bin/python changed to #!/ usr/bin/python2.6.6

Thank you for reading, the above is the content of "steps to compile and install python 2.7.5 on loongnix", after learning this article, I believe that everyone has a deeper understanding of the steps to compile and install python 2.7.5 on loongnix, and the specific use needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report