astrojuanlu / fenics-recipes

This repository contains conda recipes for the FEniCS libraries
The Unlicense
13 stars 15 forks source link

Fenics conda installation not working (SLEPC_DIR and few other failures) #62

Open ghost opened 6 years ago

ghost commented 6 years ago

I just installed fenics using a conda environment on a linux machine using the instructions given here. I didn't get meshr with the fenics install, so I installed it separately using conda. Following that I tried to run few examples (ft01_ and ft08_ given on the tutorial page here), but it throws the following error:

File "/home/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/instant/output.py", line 96, in instant_error
    raise RuntimeError(text)

RuntimeError: In instant.recompile: The module did not compile with command 'cmake -DDEBUG=TRUE .', see '/home/anaconda2/envs/fenicsproject/.cache/instant/error/dolfin_862cbbcb7280b46eb6d5f767c5d77bc8b462fc68/compile.log

I checked the log file named in the above error and it is reproduced below. It seems to indicate that it it can't find SLEPC_DIR and few other failure messages.

-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: anaconda2/envs/fenicsproject/bin/cc
-- Check for working C compiler: anaconda2/envs/fenicsproject/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: anaconda2/envs/fenicsproject/bin/c++
-- Check for working CXX compiler: anaconda2/envs/fenicsproject/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: anaconda2/envs/fenicsproject/bin/python (found version "2.7.13") 
-- Found PkgConfig: anaconda2/envs/fenicsproject/bin/pkg-config (found version "0.29.1") 
-- Checking for one of the modules 'craypetsc_real;PETSc'
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of PetscInt
-- Check size of PetscInt - failed
-- Checking for one of the modules 'crayslepc_real;SLEPc'
CMake Error at anaconda2/envs/fenicsproject/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  SLEPc could not be found.  Be sure to set SLEPC_DIR.  (missing:
  SLEPC_FOUND)
Call Stack (most recent call first):
  anaconda2/envs/fenicsproject/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  anaconda2/envs/fenicsproject/share/dolfin/cmake/FindSLEPc.cmake:194 (find_package_handle_standard_args)
  anaconda2/envs/fenicsproject/share/dolfin/cmake/UseDOLFIN.cmake:58 (find_package)
  CMakeLists.txt:14 (INCLUDE)

-- Configuring incomplete, errors occurred!
See also "/tmp/tmpQFFY3g2017-10-2-10-15_instant_bd76ebc7ea7377078efcaf8dea20fac8243e59d0/dolfin_862cbbcb7280b46eb6d5f767c5d77bc8b462fc68/CMakeFiles/CMakeOutput.log".
See also "/tmp/tmpQFFY3g2017-10-2-10-15_instant_bd76ebc7ea7377078efcaf8dea20fac8243e59d0/dolfin_862cbbcb7280b46eb6d5f767c5d77bc8b462fc68/CMakeFiles/CMakeError.log".```