简体   繁体   English

python2.6.6安装问题

[英]python2.6.6 installation problem

installing python2.6 after running 运行后安装python2.6

./configure
it runs with no errors but after running 它运行没有错误,但运行后
python2.6 setup.py install
i get this error 我得到这个错误
 * WARNING: renaming "_curses" since importing it failed: ld.so.1: python: fatal: relocation error: file build/lib.solaris-2.10-i86pc-2.6/_curses.so: symbol newscr: referenced symbol not found *警告:由于导入“ _curses”失败,因此重命名失败:ld.so.1:python:致命:重定位错误:文件build / lib.solaris-2.10-i86pc-2.6 / _curses.so:符号newscr:未找到引用符号 \n building '_curses_panel' extension 建立'_curses_panel'扩展名 \n gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I。 -I/export/home/joseph/Python-2.6.6/./Include -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 -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 \n 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 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 \n * WARNING: renaming "_curses_panel" since importing it failed: No module named _curses *警告:由于导入“ _curses_panel”失败,因此重命名:没有名为_curses的模块 

\n\n

Failed to find the necessary bits to build these modules: 无法找到构建这些模块所需的位:\n_bsddb _sqlite3 _tkinter _bsddb _sqlite3 _tkinter
\nbsddb185 gdbm linuxaudiodev bsddb185 gdbm linuxaudiodev
\nossaudiodev readline ossaudiodev阅读热线
\nTo find the necessary bits, look in setup.py in detect_modules() for the module's name. 要查找必要的位,请在detect_modules()中的setup.py中查找模块的名称。

\n\n

Failed to build these modules: 无法构建以下模块:\n_curses _curses_panel _curses _curses_panel

and when i try installing a python module reportlab with 当我尝试使用安装Python模块reportlab时
 python2.6 setup.py install python2.6 setup.py安装 
returns an error 返回错误
 copying src/reportlab/lib/hyphen.mashed -> build/lib.solaris-2.10-i86pc-2.6/reportlab/lib 复制src / reportlab / lib / hyphen.mashed-> build / lib.solaris-2.10-i86pc-2.6 / reportlab / lib\nrunning build_ext 运行build_ext\nbuilding '_renderPM' extension 建立'_renderPM'扩展名\ngcc -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 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\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c: In function 'parse_utf8': /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数'parse_utf8'中:\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:81:9: error: expected identifier or '*' before numeric constant /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:81:9:错误:预期标识符或数字常量前的'*'\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:96:9: error: expected identifier or '*' before numeric constant /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:96:9:错误:预期标识符或数字常量前的'*'\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:100:1: warning: statement with no effect /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:100:1:警告:声明无效\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:100:4: error: expected ';' /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:100:4:错误:预期为';' before ':' token 在':'标记之前\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:101:5: error: 'else' without a previous 'if' /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:101:5:错误:“ else”,而没有以前的“ if”\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c: In function '_get_ft_face': /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“ _get_ft_face”中:\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:162:2: warning: pointer targets in passing argument 2 of 'FT_New_Memory_Face' differ in signedness /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:162:2:警告:“ FT_New_Memory_Face”的传递参数2中的指针目标的签名不同\n/usr/local/include/freetype2/freetype/freetype.h:1904:3: note: expected 'const FT_Byte *' but argument is of type 'char *' /usr/local/include/freetype2/freetype/freetype.h:1904:3:注意:预期为'const FT_Byte *',但参数的类型为'char *'\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c: In function '_get_gstatePath': /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数'_get_gstatePath'中:\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:936:3: warning: enumeration value 'ART_END' not handled in switch /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:936:3:警告:开关中未处理枚举值'ART_END'\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c: In function '_get_gstateVPath': /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数'_get_gstateVPath'中:\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:968:3: warning: enumeration value 'ART_CURVETO' not handled in switch /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:968:3:警告:开关中未处理枚举值'ART_CURVETO'\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:968:3: warning: enumeration value 'ART_END' not handled in switch /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:968:3:警告:开关中未处理枚举值'ART_END'\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c: In function 'gstate_setFont': /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在函数“ gstate_setFont”中:\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:1108:5: warning: suggest explicit braces to avoid ambiguous 'else' /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:1108:5:警告:建议使用大括号以避免歧义的“其他”\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c: In function 'gstateFree': /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在“ gstateFree”函数中:\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:1492:4: warning: suggest explicit braces to avoid ambiguous 'else' /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:1492:4:警告:建议使用大括号以避免歧义的“其他”\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c: At top level: /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:在顶层:\n/export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:332:12: warning: 'notdefPathLen' defined but not used /export/home/joseph/reportlab-2.5/src/rl_addons/renderPM/_renderPM.c:332:12:警告:已定义但未使用'notdefPathLen'\nerror: command 'gcc' failed with exit status 1 错误:命令“ gcc”失败,退出状态为1\n

First and foremost, make sure you have the newest version of gmake/make. 首先,请确保您具有最新版本的gmake / make。 I had a nasty problem using an older version. 使用旧版本时遇到麻烦的问题。 It was similar to this, which is why I am suggesting it. 与此类似,这就是为什么我建议这样做。

If you don't have it, install gmake and redo the python installation (./configure, make, make install). 如果没有,请安装gmake并重新执行python安装(./configure、make、make install)。 Hope that helps! 希望有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM