CentOS 7 编译安装Python2.6.1
来源:互联网 发布:淘宝招聘兼职 编辑:程序博客网 时间:2024/06/08 00:18
编译安装步骤很简单,如下:
# wget https://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz# tar zxvf Python-2.6.1.tgz# cd Python-2.6.1# ./configure --prefix=/usr/local --enable-shared# make && make install
编译的过程中遇到以下报错信息:
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -DSVNVERSION=\"`LC_ALL=C svnversion .`\" -o Modules/getbuildinfo.o ./Modules/getbuildinfo.cgcc: error: directory": No such file or directorymake: *** [Modules/getbuildinfo.o] Error 1
这个是configure的一个BUG,修改生成的Makefile文件,找到以下内容:
CC= gcc -pthreadCXX= g++ -pthreadMAINCC= $(CC)LINKCC= $(PURIFY) $(MAINCC)AR= arRANLIB= ranlibSVNVERSION= svnversion $(srcdir)
将最后一行的SVNVERSION变量值改为空,然后重新make && make install
即可 SVNVERSION=""
0 0
- CentOS 7 编译安装Python2.6.1
- centos安装python2.7
- centos 安装python2.7
- centos 安装python2.7
- centos安装python2.7
- centos安装python2.7
- CentOS安装Python2.7
- centos 安装python2.7
- centos 编译安装python2.7.3 带zlib
- CentOS下编译安装Python2.7.6
- centos上安装python2.7
- centos下安装python2.7
- centos安装Python2.7记录
- 安装 Python2.7到 centos
- Centos 7 安装python2.7.11
- centos中安装Python2.7
- centos python2.7安装numpy
- Centos6编译安装python2.7
- 【动态规划】zoj Course Selection System
- 动态规划练习题-16(踩方格)
- 练习
- Camera2谷歌官方文档(1) 概述
- L3-013. 非常弹的球
- CentOS 7 编译安装Python2.6.1
- C#编写动态链接库类库dll文件
- Linux(十一) 之 负载均衡(下)
- TCP协议
- 【2017上半年自考总结】——书要看三遍之《操作系统概论》
- 导入一个AndroidStudio项目时遇到的gradle问题
- U盘恢复(工具篇)
- C语言基础之A+B问题
- Day-2作业——HTML作诗