Metis-5.1.0 compilation error

Discussions related to downloading and compiling MPAS-Atmosphere.
Post Reply
ntmanhvn181
Posts: 26
Joined: Thu Jul 04, 2019 4:07 am

Metis-5.1.0 compilation error

Post by ntmanhvn181 » Mon Jul 15, 2019 8:26 am

Dear all,
I have a error when I try to compile metis-5.1.0 by this following command
Please help me to solve this problem.

Code: Select all

make config share=1 cc=gcc
rm -rf build/Linux-x86_64
mkdir -p build/Linux-x86_64
cd build/Linux-x86_64 && cmake /work/users/cloud/user/manh/MPAS/MPAS-Model-6.3/metis-5.1.0 -DCMAKE_VERBOSE_MAKEFILE=1 -DGKLIB_PATH=/work/users/cloud/user/manh/MPAS/MPAS-Model-6.3/metis-5.1.0/GKlib -DCMAKE_C_COMPILER=gcc
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is Intel 16.0.0.20160811
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /share/apps/intel/compilers_and_libraries_2016.4.258/linux/bin/intel64/icpc
-- Check for working CXX compiler: /share/apps/intel/compilers_and_libraries_2016.4.258/linux/bin/intel64/icpc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for getline
-- Looking for getline - found
-- checking for thread-local storage - found
-- Configuring done
-- Generating done
-- Build files have been written to: /export/home/cloud/work/user/manh/MPAS/MPAS-Model-6.3/metis-5.1.0/build/Linux-x86_64
make install > make.log
CMake Error at /export/home/cloud/work/user/manh/MPAS/MPAS-Model-6.3/metis-5.1.0/build/Linux-x86_64/include/cmake_install.cmake:36 (FILE):
  file INSTALL cannot copy file
  "/export/home/cloud/work/user/manh/MPAS/MPAS-Model-6.3/metis-5.1.0/include/metis.h"
  to "/usr/local/include/metis.h".
Call Stack (most recent call first):
  cmake_install.cmake:37 (INCLUDE)


make[1]: *** [install] Error 1
make: *** [install] Error 2
Attachments
make.log
(88.97 KiB) Downloaded 21 times

mgduda
Posts: 374
Joined: Mon Feb 26, 2018 7:35 pm

Re: Metis-5.1.0 compilation error

Post by mgduda » Mon Jul 15, 2019 9:41 pm

The error seems to be in copying /export/home/cloud/work/user/manh/MPAS/MPAS-Model-6.3/metis-5.1.0/include/metis.h to /usr/local/include/metis.h . Do you have write permissions for /usr/local? It's actually not necessary to install Metis in /usr/local/, and you can use the "prefix=[PATH]" option described in Metis's BUILD.txt file to specify an alternate installation path for which you do have write permission.
NCAR/MMM

ntmanhvn181
Posts: 26
Joined: Thu Jul 04, 2019 4:07 am

Re: Metis-5.1.0 compilation error

Post by ntmanhvn181 » Tue Jul 16, 2019 4:05 am

Dear Mr.mgduda,
I recompile with make config prefix and I have successfully compiled metis on my HPC.
Thank you for your very useful help.

mgduda
Posts: 374
Joined: Mon Feb 26, 2018 7:35 pm

Re: Metis-5.1.0 compilation error

Post by mgduda » Tue Jul 16, 2019 5:19 pm

It's good to hear that you've got Metis compiled and installed successfully!
NCAR/MMM

Post Reply

Return to “Compilation / installation”