This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Permission error building on Debian Wheezy (Trillinos cmake)

+1 vote

Apparently the trillinos package is trying to do a sysem install.
Is it possible to tell to install locally (to ${PROJECT}/libs for example)?

make: Entering directory `/home/juanpi/Resources/FEniCS/src/trilinos-11.0.3-Source/dorsal_build_dir'
Install the project...
-- Install configuration: "RELEASE"
-- Installing: /usr/local/include/Trilinos_version.h
CMake Error at cmake_install.cmake:36 (FILE):
file INSTALL cannot copy file
"/home/juanpi/Resources/FEniCS/src/trilinos-11.0.3-Source/dorsal_build_dir/././Trilinos_version.h"
 to "/usr/local/include/Trilinos_version.h".
 make: *** [install] Error 1
 make: Leaving directory `/home/juanpi/Resources/FEniCS/src/trilinos-11.0.3-Source/dorsal_build_dir'
 Failure with exit status: 2
 Exit message: There was a problem building trilinos-11.0.3-Source.
asked Jul 15, 2013 by kakila FEniCS Novice (160 points)

2 Answers

+1 vote
 
Best answer

I don't know why, but this seems to happen from time to time. The solution is usually to remove the CMake cache in the Trilinos directory and do a full rebuild of Trilinos. This can be done by removing the dorsal_build_dir directory, which in your case is /home/juanpi/Resources/FEniCS/src/trilinos-11.0.3-Source/dorsal_build_dir.

answered Jul 22, 2013 by johannr FEniCS Expert (17,350 points)
selected Jul 22, 2013 by kakila

Thank yo very much for the very specific indications. Indeed thi solved the problem. I had difficulties finding the build folder.

Thx!

0 votes

This looks like a Trilinos question, but the install directory can be easily changed by adding the CMAKE_INSTALL_PREFIX variable, for example

mkdir build
cd build    
cmake -DCMAKE_INSTALL_PREFIX=${PROJECT}/libs ..
make install
answered Jul 15, 2013 by logg FEniCS Expert (11,790 points)

This problem appears when following the installation of FEniCS using the dorsal script.
So, where shall I apply the changes you suggest? I am not running the trillinos installer by myself. It is all in the hands of dorsal.

Thank you.

In that case, you should adjust the installation path in the file dorsal.cfg.

That's already done. That is why I am reporting the error. The dorsal.cfg is not affecting the cmake of trillinos.

...