Невозможно собрать и установить NumPy на AIX6.1 - PullRequest
0 голосов
/ 21 ноября 2018

Я пытаюсь установить пакеты Data Science на AIX6.1 (один из Unix OS).Я пытался использовать PIP, но он не был правильно собран и установлен, некоторые файлы .so не были скомпилированы должным образом, после чего я попытался выполнить установку из источника, в котором я не могу его правильно собрать.У меня GCC версии 6.3, установлен компилятор Fortran.команда дана:

    # python setup.py build

команда выполнена с ошибками.Ниже вы найдете журнал ошибок.

    gcc: /tmp/tmpn4o642va/source.c
    /tmp/tmpn4o642va/source.c:1:19: fatal error: cblas.h: No such file or directory
     #include <cblas.h>
               ^
    compilation terminated.
    /tmp/tmpn4o642va/source.c:1:19: fatal error: cblas.h: No such file or directory
     #include <cblas.h>
               ^
    compilation terminated.

некоторая ошибка в средней части всего журнала:

    openblas_clapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
      libraries openblas,lapack not found in ['/usr/bin/../../opt/freeware/lib', '/opt/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      NOT AVAILABLE
    .
    .
    .
    /opt/freeware/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building py_modules sources
    building library "npymath" sources
    get_default_fcompiler: matching types: '['ibm', 'gnu', 'gnu95']'
    customize IBMFCompiler
    Could not locate executable xlf90
    Could not locate executable xlf
    customize GnuFCompiler
    Could not locate executable g77
    Could not locate executable f77
    customize Gnu95FCompiler
    Found executable /usr/bin/gfortran
    customize Gnu95FCompiler
    customize Gnu95FCompiler using config

В самом конце всего журнала ошибка:

    compiling C sources
    C compiler: /opt/freeware/bin/gcc -maix64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -Wl,-brtl -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -Wl,-brtl

    compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_LARGE_FILES -Inumpy/core/include -Ibuild/src.aix-6.1-3.6/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/freeware/include/python3.6m -Ibuild/src.aix-6.1-3.6/numpy/core/src/private -Ibuild/src.aix-6.1-3.6/numpy/core/src/npymath -Ibuild/src.aix-6.1-3.6/numpy/core/src/private -Ibuild/src.aix-6.1-3.6/numpy/core/src/npymath -Ibuild/src.aix-6.1-3.6/numpy/core/src/private -Ibuild/src.aix-6.1-3.6/numpy/core/src/npymath -c'
    /opt/freeware/lib/python3.6/config-3.6m/ld_so_aix /opt/freeware/bin/gcc -maix64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pthread -bI:/opt/freeware/lib/python3.6/config-3.6m/python.exp -L. -L/usr/lib/threads -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib64 -L/usr/lib -L. -L/usr/lib/threads -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib64 -L/usr/lib build/temp.aix-6.1-3.6/numpy/core/src/dummymodule.o -L/opt/freeware/lib64 -Lbuild/temp.aix-6.1-3.6 -lm -o build/lib.aix-6.1-3.6/numpy/core/_dummy.so
    ld: 0711-738 ERROR: Input file build/temp.aix-6.1-3.6/numpy/core/src/dummymodule.o:
            XCOFF32 object files are not allowed in 64-bit mode.
    collect2: error: ld returned 8 exit status
    ld: 0711-738 ERROR: Input file build/temp.aix-6.1-3.6/numpy/core/src/dummymodule.o:
            XCOFF32 object files are not allowed in 64-bit mode.
    collect2: error: ld returned 8 exit status
    error: Command "/opt/freeware/lib/python3.6/config-3.6m/ld_so_aix /opt/freeware/bin/gcc -maix64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pthread -bI:/opt/freeware/lib/python3.6/config-3.6m/python.exp -L. -L/usr/lib/threads -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib64 -L/usr/lib -L. -L/usr/lib/threads -L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib64 -L/usr/lib build/temp.aix-6.1-3.6/numpy/core/src/dummymodule.o -L/opt/freeware/lib64 -Lbuild/temp.aix-6.1-3.6 -lm -o build/lib.aix-6.1-3.6/numpy/core/_dummy.so" failed with exit status 1

Большое спасибо !!!

...