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

question about installation from source code

0 votes

hi guys,

i am trying to compile and install from source code on Macbook.
I first downloaded ffc,fiat.ufl and instant and then do "sudo python setup.py install" for each of them.
In a second step I download dolfin and try "cmake ." then I get the following message:
"---------------
fatal: Not a git repository (or any of the parent directories): .git
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- system
-- thread
-- iostreams
-- timer
CMake Error at CMakeLists.txt:330 (message):
Could not find a configuration file for package UFC that is compatible with
requested version 1.6.0.

Set UFC_DIR to the directory containing a CMake configuration file for UFC.

-- Configuring incomplete, errors occurred!

"-----------------------

I did a little search that UFC is now part of ffc, which means when I do "sudo python setup.py install" in ffc folder, ufc is also installed, right? then why ufc is not found? do i need to set the path of ufc,if I do, how?

Thank you very much.
regards

asked Dec 11, 2015 by nobita FEniCS Novice (120 points)

1 Answer

0 votes

I think you need to set the path manually. In Linux, you have to do

export UFC_DIR=/path/to/ufc/cmake
answered Dec 17, 2015 by Massimiliano Leoni FEniCS User (1,760 points)
...