作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在阅读这里的说明:https://github.com/sixin-zh/mpiT
用于安装 EASGD 包。
当我执行 luarocks make mpit-mvapich-1.rockspec 我收到错误:
Scanning dependencies of target mpiT
[100%] Building C object CMakeFiles/mpiT.dir/mpiT.c.o
In file included from /raid/ubuntu/mpiT/mpiT.c:18:0:
/raid/ubuntu/mpiT/lua-mpi.h: In function ‘_MPI_Op’:
/raid/ubuntu/mpiT/lua-mpi.h:51:1: warning: passing argument 2 of ‘luampi_push_MPI_Op’ from incompatible pointer type [enabled by default]
MPI_STRUCT_TYPE(Op, MPI_DATATYPE_NULL)
^
/raid/ubuntu/mpiT/lua-mpi.h:8:15: note: expected ‘MPI_Op’ but argument is of type ‘struct ompi_datatype_t *’
static void luampi_push_MPI_##s(lua_State *L, MPI_##s init, int N) \
^
/raid/ubuntu/mpiT/lua-mpi.h:51:1: note: in expansion of macro ‘MPI_STRUCT_TYPE’
MPI_STRUCT_TYPE(Op, MPI_DATATYPE_NULL)
^
Linking C shared module libmpiT.so
/usr/bin/ld: cannot find -lpreloadable_libintl
collect2: error: ld returned 1 exit status
make[2]: *** [libmpiT.so] Error 1
make[1]: *** [CMakeFiles/mpiT.dir/all] Error 2
make: *** [all] Error 2
luarocks make mpit-mvapich-1.rockspec
cmake -E make_directory build && cd build && cmake .. \
-DCMAKE_C_COMPILER=${MPI_PREFIX}/bin/mpicc -DCMAKE_CXX_COMPILER=${MPI_PREFIX}/bin/mpicxx \
-DMPI_ROOT=${MPI_PREFIX} \
-DOPENMPI=0 \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/ubuntu/dltools/distro/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/ubuntu/dltools/distro/install/lib/luarocks/rocks/mpit/mvapich-1" && make
-- Found Torch7 in /home/ubuntu/dltools/distro/install
MPI ROOT is /usr
LMPI is /usr/lib/libchromeXvMC.so;/usr/lib/libblas.so;/usr/lib/libmpi_f90.so;/usr/lib/libibverbs.so;/usr/lib/libopenblas.so;/usr/lib/libf77blas.so;/usr/lib/libTHC.so;/usr/lib/libijs-0.35.so;/usr/lib/libmpi++.so;/usr/lib/libvdpau_ubuntu.so;/usr/lib/libcr.so;/usr/lib/liblapack.so;/usr/lib/libgettextlib-0.18.3.so;/usr/lib/libGraphicsMagickWand.so;/usr/lib/libopen-pal.so;/usr/lib/preloadable_libintl.so;/usr/lib/libmpi.so;/usr/lib/libsnappy.so;/usr/lib/libmca_common_sm.so;/usr/lib/libgettextsrc-0.18.3.so;/usr/lib/libfreeimage-3.15.4.so;/usr/lib/libopen-rte.so;/usr/lib/libcblas.so;/usr/lib/libluaT.so;/usr/lib/libqtlua.so;/usr/lib/libguilereadline-v-18.so;/usr/lib/libompitrace.so;/usr/lib/libchromeXvMCPro.so;/usr/lib/libopcodes-2.24-system.so;/usr/lib/libatlas.so;/usr/lib/libdsdp-5.8gf.so;/usr/lib/libTH.so;/usr/lib/libpulsecore-4.0.so;/usr/lib/libv8.so;/usr/lib/libGraphicsMagick.so;/usr/lib/libmpi_f77.so;/usr/lib/libmpif90.so;/usr/lib/libfreeimageplus-3.15.4.so;/usr/lib/liblapack_atlas.so;/usr/lib/libbfd-2.24-system.so;/usr/lib/libmpi_cxx.so;/usr/lib/libthreadsmain.so;/usr/lib/libcr_omit.so;/usr/lib/libcr_run.so;/usr/lib/libcompizconfig_gsettings_backend.so;/usr/lib/libqlua.so;/usr/lib/libluajit.so;/usr/lib/libmpif77.so
LMCA is
-- Configuring done
CMake Warning at /home/ubuntu/dltools/distro/install/share/cmake/torch/TorchPackage.cmake:17 (ADD_LIBRARY):
Cannot generate a safe linker search path for target mpiT because files in
some directories may conflict with libraries in implicit directories:
link library [libTHC.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
link library [libluaT.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
link library [libqtlua.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
link library [libTH.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
link library [libthreadsmain.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
link library [libqlua.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
link library [libluajit.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
Some of these libraries may not be found correctly.
Call Stack (most recent call first):
CMakeLists.txt:24 (ADD_TORCH_PACKAGE)
CMake Warning at /home/ubuntu/dltools/distro/install/share/cmake/torch/TorchPackage.cmake:17 (ADD_LIBRARY):
Cannot generate a safe runtime search path for target mpiT because files in
some directories may conflict with libraries in implicit directories:
runtime library [libTHC.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
runtime library [libluaT.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
runtime library [libqtlua.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
runtime library [libTH.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
runtime library [libthreadsmain.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
runtime library [libqlua.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
runtime library [libluajit.so] in /usr/lib may be hidden by files in:
/home/ubuntu/dltools/distro/install/lib
Some of these libraries may not be found correctly.
Call Stack (most recent call first):
CMakeLists.txt:24 (ADD_TORCH_PACKAGE)
-- Generating done
-- Build files have been written to: /raid/ubuntu/mpiT/build
Linking C shared module libmpiT.so
/usr/bin/ld: cannot find -lpreloadable_libintl
collect2: error: ld returned 1 exit status
make[2]: *** [libmpiT.so] Error 1
make[1]: *** [CMakeFiles/mpiT.dir/all] Error 2
make: *** [all] Error 2
Error: Build error: Failed building.
最佳答案
实际错误是找不到preloadable_libintl.so
,这是一个库,是 GNU 的 libc 的一部分。尝试安装缺少的依赖项
sudo apt-get install libc6
sudo apt-get install libc6-dev
关于ubuntu - 安装EASGD Torch luarocks 模块找不到libmpiT.so?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38927574/
我是一名优秀的程序员,十分优秀!