python2.6.6安装问题
Posted
技术标签:
【中文标题】python2.6.6安装问题【英文标题】:python2.6.6 installation problem 【发布时间】:2011-08-24 13:28:29 【问题描述】:运行后安装python2.6
。 so.1:python:致命:重定位错误:文件 build/lib.solaris-2.10-i86pc-2.6/_curses.so:符号 newscr:未找到引用的符号 构建“_curses_panel”扩展 gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I。 -I/export/home/joseph/Python-2.6.6/./包括-I。 -IInclude -I./Include -I/usr/local/include -I/export/home/joseph/Python-2.6.6/Include -I/export/home/joseph/Python-2.6.6 -c /export/ home/joseph/Python-2.6.6/Modules/_curses_panel.c -o build/temp.solaris-2.10-i86pc-2.6/export/home/joseph/Python-2.6.6/Modules/_curses_panel.o gcc -shared build/temp.solaris-2.10-i86pc-2.6/export/home/joseph/Python-2.6.6/Modules/_curses_panel.o -L/usr/local/lib -lpanel -lcurses -ltermcap -o build/ lib.solaris-2.10-i86pc-2.6/_curses_panel.so * 警告:重命名“_curses_panel”,因为导入失败:没有名为 _curses 的模块当我尝试使用未能找到构建这些模块所需的位: _bsddb _sqlite3 _tkinter bsddb185 gdbm linuxaudiodev ossaudiodev readline 要查找必要的位,请在 setup.py 中的 detect_modules() 中查找模块名称。
未能构建这些模块: _curses _curses_panel
python2.6 setup.py install安装 python 模块 reportlab 返回错误
copying src/reportlab/lib/hyphen.mashed -> build/lib.solaris-2.10- i86pc-2.6/reportlab/lib 运行 build_ext 构建“_renderPM”扩展 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DRENDERPM_FT -DLIBART_COMPILATION -DLIBART_VERSION="2.3.12" -I/export/home/joseph/reportlab- 2.5/src/rl_addons/renderPM -I/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/libart_lgpl -I/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/gt1 -I/ usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/python2.6 -c /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c - o build/temp.solaris-2.10-i86pc-2.6/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.o /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“parse_utf8”中: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:81:9:错误:预期标识符或数字常量前的“*” /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:96:9:错误:预期标识符或数字常量前的“*” /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:100:1:警告:声明无效 /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:100:4:错误:预期的';'在 ':' 标记之前 /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:101:5: 错误:没有前一个“if”的“else” /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“_get_ft_face”中: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:162:2:警告:“FT_New_Memory_Face”的传递参数 2 中的指针目标在符号上不同 /usr/local/include/freetype2/freetype/freetype.h:1904:3:注意:预期为“const FT_Byte *”,但参数为“char *”类型 /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“_get_gstatePath”中: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:936:3:警告:枚举值“ART_END”未在开关中处理 /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“_get_gstateVPath”中: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:968:3:警告:枚举值'ART_CURVETO'未在开关中处理 /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:968:3:警告:枚举值'ART_END'未在开关中处理 /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“gstate_setFont”中: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:1108:5:警告:建议显式大括号以避免模棱两可的“其他” /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“gstateFree”中: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:1492:4:警告:建议显式大括号以避免模棱两可的“其他” /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在顶层: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:332:12:警告:“notdefPathLen”已定义但未使用 错误:命令“gcc”失败,退出状态为 1
【问题讨论】:
【参考方案1】:首先,确保您拥有最新版本的 gmake/make。我在使用旧版本时遇到了一个令人讨厌的问题。它与此类似,这就是我建议它的原因。
如果没有,请安装 gmake 并重做 python 安装(./configure、make、make install)。希望有帮助!
【讨论】:
thanx man 但它似乎对我不起作用 正在运行的版本是 GNU Make 3.80 但仍然出现相同的错误以上是关于python2.6.6安装问题的主要内容,如果未能解决你的问题,请参考以下文章
Centos6.5 python2.6.6升级2.7.13,安装setuptools和pip
在Linux CentOS 6.6上安装Python 2.7.9