在Solaris 8 sparc上编译Python 3.5.1失败

在Solaris 8 sparc上编译Python 3.5.1失败,python,compilation,solaris,Python,Compilation,Solaris,当我试图在Solaris 8上从源代码编译python时。我发现以下错误 Modules/_localemodule.o:在函数PyIntl_gettext'中: Modules/_localemodule.o(.text+0xb60):对的未定义引用 libintl_gettext'Modules/_localemodule.o:In函数 PyIntl_dgettext':Modules/_localemodule.o(.text+0xba8):未定义 函数中对libintl_dgettext

当我试图在Solaris 8上从源代码编译python时。我发现以下错误

Modules/_localemodule.o:在函数PyIntl_gettext'中: Modules/_localemodule.o(.text+0xb60):对的未定义引用 libintl_gettext'Modules/_localemodule.o:In函数 PyIntl_dgettext':Modules/_localemodule.o(.text+0xba8):未定义 函数中对libintl_dgettext“Modules/_localemodule.o:的引用 PyIntl_dcgettext':Modules/_localemodule.o(.text+0xbf8):未定义 函数中对libintl\u dcgettext'Modules/\u localemodule.o:的引用 PyIntl_textdomain':Modules/_localemodule.o(.text+0xc38):未定义 函数中对libintl_textdomain'Modules/_localemodule.o:的引用 PyIntl_bindtextdomain':Modules/_localemodule.o(.text+0xcec): 对libintl_bindtextdomain'的未定义引用 Modules/_localemodule.o:在函数PyIntl_bind_textdomain_code set'中: Modules/_localemodule.o(.text+0xde0):对的未定义引用 libintl\u bind\u textdomain\u代码集“collect2:ld返回1个退出状态 make:**[Programs/\u freeze\u importlib]错误1

我遵循的步骤是:

 CPPFLAGS="-I/usr/local/include"
 export CPPFLAGS
 LD_OPTIONS='-L/usr/local/lib -R/usr/local/lib'
 export LD_OPTIONS
 LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
 export LDFLAGS
 CC=/usr/local/bin/gcc OPT="-O2" ./configure  --prefix=/opt/soe/local/Python-3.5.1 

你能试着用
--禁用nls
编译吗?#CC=/usr/local/bin/gcc OPT=“-O2”。/configure--configure--prefix=/OPT/soe/local/Python-3.5.1--禁用nls configure:警告:无法识别的选项:-禁用nlsDo对于d in/usr/local/lib/usr/lib,你有
libintl.so
可用吗;do ls-l$d/libintl.*;完成-rw-r--r--1根其他584940个9月3日10:46/usr/local/lib/libintl.a-rw-r--r--1根其他913个9月3日10:46/usr/local/lib/libintl.la-rwxr-xr-x 1根其他2484个2月19日11:19/usr/local/libintl.so-rwxr-x 1根其他2484个2月18日06:21/usr/local/libintl.so.1/usr/libintl.*否这样的文件或目录/lib/libintl.*:没有这样的文件或目录directory@pydev您能告诉我您是如何在solaris 8上编译python-2.5的吗?我现在试着编译它两天了。你能试着用
--禁用nls
来编译吗?#CC=/usr/local/bin/gcc OPT=“-O2”。/configure--prefix=/OPT/soe/local/Python-3.5.1--禁用nls配置:警告:无法识别的选项:--禁用nlsDo你有
libintl.so
可用?用于d in/usr/local/lib/usr/lib;do ls-l$d/libintl.*;完成-rw-r--r--1根其他584940个9月3日10:46/usr/local/lib/libintl.a-rw-r--r--1根其他913个9月3日10:46/usr/local/lib/libintl.la-rwxr-xr-x 1根其他2484个2月19日11:19/usr/local/libintl.so-rwxr-x 1根其他2484个2月18日06:21/usr/local/libintl.so.1/usr/libintl.*否这样的文件或目录/lib/libintl.*:没有这样的文件或目录directory@pydev您能告诉我您是如何在solaris 8上编译python-2.5的吗?我现在正试着编译两天。