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

Installation on gentoo using dorsal

0 votes

Hello

I am trying to install on gentoo using dorsal. On my gentoo the default python is 3.2.3 so I set the variable

PYTHON_EXECUTABLE=python2.7

So dorsal starts off and is trying to install Trilinos but fails with this error

Processing enabled package: PyTrilinos (Libs)
-- Found PythonInterp: python2.7 (Required is at least version "2.2") 
-- Python version 2.7.5
-- Found PythonLibs: /usr/lib64/libpython3.3.so (found suitable version "2.7.5", minimum required is "2.2") 
-- Found PythonLibs: /usr/lib64/libpython3.3.so (found version "2.7.5") 
CMake Error at packages/PyTrilinos/cmake/FindNumPy.cmake:103 (MESSAGE):
  Required NumPy python module not found
Call Stack (most recent call first):
  packages/PyTrilinos/CMakeLists.txt:157 (FIND_PACKAGE)


CMake Error at packages/PyTrilinos/cmake/FindSWIG.cmake:96 (MESSAGE):
  SWIG was not found.  Please specify Swig executable location
Call Stack (most recent call first):
  packages/PyTrilinos/CMakeLists.txt:160 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/praveen/opt/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/CMakeOutput.log".
See also "/home/praveen/opt/FEniCS/src/trilinos-11.4.1-Source/dorsal_build_dir/CMakeFiles/CMakeError.log".
Failure with exit status: 1
Exit message: There was a problem configuring trilinos-11.4.1-Source.

It looks like there is confusion with python versions since it seems to have found libpython3.3.so instead of libpython2.7.so. Any idea how to make this work ?

Thanks

asked May 7, 2014 by praveen FEniCS User (2,760 points)

1 Answer

+1 vote
 
Best answer

You must also set PYTHON_INCLUDE_DIR and PYTHON_LIBRARY (see FEniCS/packages/trilinos.package).

If you have further questions regarding installation, please send them to the fenics-support mailing list.

answered May 7, 2014 by johannr FEniCS Expert (17,350 points)
selected May 7, 2014 by praveen
...