mpi4py 설치 에러 해결하기
2021. 3. 28. 22:48ㆍ꿀팁 분석 환경 설정/Linux 관련 팁
OS : ubuntu16.04
RROR: Command errored out with exit status 1:
command: /opt/conda/envs/rl/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ijlqd3lf
cwd: /tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/
Complete output (126 lines):
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/run.py -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.linux-x86_64-3.7/mpi4py
creating build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/libmpi.pxd -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.pxd -> build/lib.linux-x86_64-3.7/mpi4py
creating build/lib.linux-x86_64-3.7/mpi4py/include
creating build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
checking for library 'lmpe' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -llmpe -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -llmpe
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/src/lib-pmpi
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/mpe.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/mpe.o
creating build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/mpe.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libmpe.so
checking for library 'vt-mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt-mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt-mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt.mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/vt.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/vt.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/vt.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libvt.so
checking for library 'vt-mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt-mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt-mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt.mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/vt-mpi.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-mpi.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-mpi.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libvt-mpi.so
checking for library 'vt-hyb' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt-hyb -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt-hyb
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.ompi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt.ompi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt.ompi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/vt-hyb.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-hyb.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-hyb.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libvt-hyb.so
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
checking for dlopen() availability ...
checking for header 'dlfcn.h' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
checking for library 'dl' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -Lbuild/temp.linux-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
checking for function 'dlopen' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -Lbuild/temp.linux-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building 'mpi4py.dl' extension
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/opt/conda/envs/rl/include/python3.7m -c src/dynload.c -o build/temp.linux-x86_64-3.7/src/dynload.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/dynload.o -Lbuild/temp.linux-x86_64-3.7 -ldl -o build/lib.linux-x86_64-3.7/mpi4py/dl.cpython-37m-x86_64-linux-gnu.so
checking for MPI compile and link ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
_configtest.c:2:10: fatal error: mpi.h: No such file or directory
#include <mpi.h>
^~~~~~~
compilation terminated.
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!
----------------------------------------
ERROR: Failed building wheel for mpi4py
Running setup.py clean for mpi4py
Failed to build mpi4py
Installing collected packages: mpi4py
Running setup.py install for mpi4py ... error
ERROR: Command errored out with exit status 1:
command: /opt/conda/envs/rl/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rdn4loj_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/bakingsoda/.local/include/python3.7m/mpi4py
cwd: /tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/
Complete output (126 lines):
running install
running build
running build_src
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/run.py -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.linux-x86_64-3.7/mpi4py
creating build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.linux-x86_64-3.7/mpi4py/futures
copying src/mpi4py/libmpi.pxd -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.linux-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.pxd -> build/lib.linux-x86_64-3.7/mpi4py
creating build/lib.linux-x86_64-3.7/mpi4py/include
creating build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.linux-x86_64-3.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
checking for library 'lmpe' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -llmpe -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -llmpe
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/src/lib-pmpi
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/mpe.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/mpe.o
creating build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/mpe.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libmpe.so
checking for library 'vt-mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt-mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt-mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt.mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/vt.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/vt.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/vt.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libvt.so
checking for library 'vt-mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt-mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt-mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt.mpi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/vt-mpi.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-mpi.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-mpi.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libvt-mpi.so
checking for library 'vt-hyb' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt-hyb -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt-hyb
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.ompi' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -lvt.ompi -o _configtest
/opt/conda/envs/rl/compiler_compat/ld: cannot find -lvt.ompi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c src/lib-pmpi/vt-hyb.c -o build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-hyb.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ -Wl,--no-as-needed build/temp.linux-x86_64-3.7/src/lib-pmpi/vt-hyb.o -o build/lib.linux-x86_64-3.7/mpi4py/lib-pmpi/libvt-hyb.so
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
checking for dlopen() availability ...
checking for header 'dlfcn.h' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
checking for library 'dl' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -Lbuild/temp.linux-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
checking for function 'dlopen' ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ _configtest.o -Lbuild/temp.linux-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building 'mpi4py.dl' extension
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/opt/conda/envs/rl/include/python3.7m -c src/dynload.c -o build/temp.linux-x86_64-3.7/src/dynload.o
gcc -pthread -shared -B /opt/conda/envs/rl/compiler_compat -L/opt/conda/envs/rl/lib -Wl,-rpath=/opt/conda/envs/rl/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/dynload.o -Lbuild/temp.linux-x86_64-3.7 -ldl -o build/lib.linux-x86_64-3.7/mpi4py/dl.cpython-37m-x86_64-linux-gnu.so
checking for MPI compile and link ...
gcc -pthread -B /opt/conda/envs/rl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/rl/include/python3.7m -c _configtest.c -o _configtest.o
_configtest.c:2:10: fatal error: mpi.h: No such file or directory
#include <mpi.h>
^~~~~~~
compilation terminated.
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/envs/rl/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4q1x2alw/mpi4py_d44b5798f89d40429ac785557052b8ca/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rdn4loj_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/bakingsoda/.local/include/python3.7m/mpi4py Check the logs for full command output.
에러 해결 방법
sudo apt install mpich
pip install mpi4py
parallel-processing.tistory.com/9
728x90
'꿀팁 분석 환경 설정 > Linux 관련 팁' 카테고리의 다른 글
Linux) sudo password 없이 사용하기 (2) | 2021.07.19 |
---|---|
How to: Linux / UNIX create soft link with ln command (3) | 2021.07.18 |
Library "GLU" not found 해결 방법 (0) | 2021.03.28 |
[Ubuntu] Jupyter notebook 부팅시 자동 실행 예시 (0) | 2020.12.27 |
[Ubuntu] Pycharm 설치 및 아이콘 만들기 (0) | 2020.12.27 |