0

尝试在 Solaris Sparc 11.4.29 上构建 python 3.8.3

wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
tar xzf Python-3.8.3.tgz
cd Python-3.8.3
./configure --prefix=$HOME/Python-3.8.3
make install

构建成功,但很少有模块没有构建:

building '_ctypes' extension
gcc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -D_REENTRANT -std=c99 - 
Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I./Include/internal -I/usr/lib/libffi-3.2.1/include -I./Include -I. -I/usr/local/include -I/scratch/epmapp/Python-3.8.3/Include -I/scratch/epmapp/Python-3.8.3 -c /scratch/epmapp/Python-3.8.3/Modules/_ctypes/_ctypes.c -o build/temp.solaris-2.11-sun4v.64bit-3.8/scratch/epmapp/Python-3.8.3/Modules/_ctypes/_ctypes.o

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_ssl                  ossaudiodev                              
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           


Failed to build these modules:
_ctypes               _curses               _hashlib           
_tkinter              zlib                                     


Following modules built successfully but were removed because they could not be imported:
_curses_panel         _gdbm                 binascii           


Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl- 
portable/portable/issues/381

我需要_ctypes。请您帮我解决在 Solaris 上安装所需的依赖项和安装方法。

Oracle Enteprise Linux 中的 _ctypes 依赖是通过安装以下库和重建 python 来满足的。

yum install libffi.i686
yum install libffi.x86_64
yum install libffi-devel.i686
yum install libffi-devel.x86_64

试图找到并安装 libffi

root@ofss2311444:~# /opt/csw/bin/pkgutil -y -i libffi_dev
Solving needed dependencies ...
Solving dependency order ...
5 CURRENT packages:
        CSWcas-texinfo-1.50,REV=2015.01.17
        CSWcommon-1.5,REV=2010.12.11
        CSWlibffi-dev-3.2.1,REV=2015.03.21
        CSWlibffi6-3.2.1,REV=2015.03.21
        CSWlibgcc-s1-5.5.0,REV=2017.10.23

Nothing to do.
root@ofss2311444:~# /usr/sbin/pkgchk -L CSWlibffi-dev
/opt/csw/lib/libffi-3.2.1 d none 0755 root bin CSWlibffi-dev
/opt/csw/lib/libffi-3.2.1/include d none 0755 root bin CSWlibffi-dev
/opt/csw/lib/libffi-3.2.1/include/ffi.h f none 0644 root bin 13336 2104 1426973435 CSWlibffi-dev
/opt/csw/lib/libffi-3.2.1/include/ffitarget.h f none 0644 root bin 2247 35988 1426973435 CSWlibffi-dev
/opt/csw/lib/libffi.so=libffi.so.6.0.4 s none CSWlibffi-dev
/opt/csw/lib/pkgconfig d none 0755 root bin CSWlibffi-dev
/opt/csw/lib/pkgconfig/libffi.pc f none 0644 root bin 272 24846 1426973438 CSWlibffi-dev
/opt/csw/lib/sparcv9/libffi-3.2.1 d none 0755 root bin CSWlibffi-dev
/opt/csw/lib/sparcv9/libffi-3.2.1/include d none 0755 root bin CSWlibffi-dev
/opt/csw/lib/sparcv9/libffi-3.2.1/include/ffi.h f none 0644 root bin 13336 2104 1426973627 CSWlibffi-dev
/opt/csw/lib/sparcv9/libffi-3.2.1/include/ffitarget.h f none 0644 root bin 2247 35988 1426973627 CSWlibffi-dev
/opt/csw/lib/sparcv9/libffi.so=libffi.so.6.0.4 s none CSWlibffi-dev
/opt/csw/lib/sparcv9/pkgconfig d none 0755 root bin CSWlibffi-dev
/opt/csw/lib/sparcv9/pkgconfig/libffi.pc f none 0644 root bin 278 25152 1426973630 CSWlibffi-dev
/opt/csw/share/doc/libffi_dev d none 0755 root bin CSWlibffi-dev
/opt/csw/share/doc/libffi_dev/license f none 0644 root bin 1132 26952 1426973636 CSWlibffi-dev
/opt/csw/share/info/libffi.info f cswtexinfo 0644 root bin 26833 46359 1426973437 CSWlibffi-dev
/opt/csw/share/man/man3 d none 0755 root bin CSWlibffi-dev
/opt/csw/share/man/man3/ffi.3 f none 0644 root bin 850 4682 1426973436 CSWlibffi-dev
/opt/csw/share/man/man3/ffi_call.3 f none 0644 root bin 2333 62695 1426973436 CSWlibffi-dev
/opt/csw/share/man/man3/ffi_prep_cif.3 f none 0644 root bin 1158 31945 1426973436 CSWlibffi-dev
/opt/csw/share/man/man3/ffi_prep_cif_var.3 f none 0644 root bin 1321 47558 1426973436 CSWlibffi-dev
root@ofss2311444:~# /opt/csw/bin/pkgutil -y -i libffi-devel
Solving needed dependencies ...
Package libffi-devel not in catalog. Exiting.
root@ofss2311444:~# /opt/csw/bin/pkgutil -y -i libffi
Solving needed dependencies ...
Package libffi not in catalog. Exiting.
root@ofss2311444:~# /opt/csw/bin/pkgutil -y -i CSWlibffi
Solving needed dependencies ...
Package CSWlibffi not in catalog. Exiting.
root@ofss2311444:~#

我是 Solaris 新手。

4

0 回答 0