sixin-zh / mpiT

MPI for Torch
Apache License 2.0
61 stars 21 forks source link

fail to "luarocks make mpit-mvapich-1.rockspec" #19

Open n080509 opened 8 years ago

n080509 commented 8 years ago

i fllow the "https://github.com/sixin-zh/mpiT" way to install mpiT

when i "luarocks make mpit-mvapich-1.rockspec", it failed the log is here,how can I resolve this problem ,thnks

root@117:~/mpiT-master# 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/slave117/torch/install/bin/.." -DCMAKE_INSTke

-- Found Torch7 in /home/slave117/torch/install MPI ROOT is LMPI is /lib/klibc-P2s_k-gf23VtrGgO2_4pGkQgwMY.so LMCA is -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= /bin/mpicc CMAKE_CXX_COMPILER= /bin/mpicxx

-- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error in : The CMAKE_C_COMPILER:

/bin/mpicc

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

CMake Error in : The CMAKE_CXX_COMPILER:

/bin/mpicxx

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred! See also "/home/slave117/mpiT-master/build/CMakeFiles/CMakeOutput.log". See also "/home/slave117/mpiT-master/build/CMakeFiles/CMakeError.log".

Error: Build error: Failed building.

sixin-zh commented 8 years ago

did you set the MPI_PREFIX in your bash env?