簡體   English   中英

如何在Solaris上安裝64位Python?

[英]How to install 64-bit Python on Solaris?

我試圖安裝上的Python 2.6 的Solaris通過建立Solaris機器上的源。 我以這種方式安裝了一個,看來它是32位的。 為此,我下載了一些源tar球,如Linux或Unix。 一切正常,但我需要64位Python。

我查找了Python下載站點,但沒有單獨安裝64位Python。 這使我認為在運行配置和/或安裝命令以安裝Python時必須有一些選擇。 我嘗試閱讀安裝的README.txt,但找不到任何信息。 我對像“ Unix”這樣的系統上的安裝非常陌生。

如何在Solaris上安裝64位Python?

目前,Solaris 64位支持是次優的,這是一個公認的錯誤 ,但是該錯誤報告看起來包含一些您可能想要使用的標志。 另請參閱此郵件列表發布

我強烈建議您看看是否可以擺脫Python的32位版本。 如果您是Solaris上的新手,這將為您省去很多麻煩。 但是,這是有可能的,而且我確實有一個工作的64位版本的Python。 我正在使用cc:Sun C 5.8 2005/10/13進行編譯。 此外,我已經編譯了readline和ncurses的64位版本。

我的配置行如下所示:

../Python-2.6.1/configure CCSHARED="-KPIC" LDSHARED="cc -xarch=generic64 -G -KPIC" LDFLAGS="-xarch=generic64 -L/opt/tools/lib -R/opt/tools/lib -L/opt/tools/ssl/lib -ltermcap -lz -R $ORIGIN/../lib" CC="cc" CPP="cc -xarch=generic64 -E -I/opt/tools/include -I/opt/tools/include/ncurses -I/opt/tools/include/readline" BASECFLAGS="-xarch=generic64 -I/opt/tools/include -I/opt/tools/include/ncurses" OPT="-xO5" CFLAGS="-xarch=generic64 -I/opt/tools/include -I/opt/tools/include/ncurses -I/opt/tools/include/readline" CXX="CC -xarch=generic64 -I/opt/tools/include -I/opt/tools/include/ncurses"  --prefix=/opt/tools/python-2.6.1 --enable-64-bit --without-gcc --disable-ipv6 --with-ssl=openssl --with-ncurses --with-readline

此外,我在Modules / Setup.local中修改了這兩行以包含所需的位置:

readline readline.c -I/opt/tools/include/readline -L/opt/tools/lib -lreadline -ltermcap
_ssl _ssl.c -I/opt/tools/ssl/include -L/opt/tools/ssl/lib -lssl -lcrypto

現在,只需祈禱您不需要在某些Sybase綁定或某些其他64位庫中進行編譯。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM