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

Installing and using fenics-solid-mechanics application/library/repository and FEniCS applications in general

0 votes

Hi, I’m Ernest Yeung, and I successfully installed FEniCS, along with vtk through brew, last week on my MacBook Air, Mid 2011, OSX Yosemite 10.10.4.

What are FEniCS Applications and these libraries on the FEniCS Applications page?
http://fenicsproject.org/applications/

I downloaded the fenics-solid-mechanics repository by clicking on Download repository
https://bitbucket.org/fenics-apps/fenics-solid-mechanics/downloads
and placed it into a directory separate from FEniCS.app

-Should I have placed that fenics-solid mechanics repository into a subdirectory inside FEniCS.app and where?

I went ahead and placed it into ~/Public (user’s Public folder).
Doing ./cmake.local I obtained this error:

-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
fatal: Not a git repository (or any of the parent directories): .git
-- Performing Test HAVE_STD_CPP11
-- Performing Test HAVE_STD_CPP11 - Success
CMake Error at CMakeLists.txt:68 (find_package):
  By not providing "FindDOLFIN.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "DOLFIN", but
  CMake did not find one.

  Could not find a package configuration file provided by "DOLFIN" with any
  of the following names:

    DOLFINConfig.cmake
    dolfin-config.cmake

  Add the installation prefix of "DOLFIN" to CMAKE_PREFIX_PATH or set
  "DOLFIN_DIR" to a directory containing one of the above files.  If "DOLFIN"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/Users/patrickbateman/Public/fenics-apps-fenics-solid-mechanics-b72e0b1e27f9/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

Then I tried

source fenics-solid-mechanics.conf

and I obtained this error:

-bash: fenics-solid-mechanics.conf: No such file or directory

Could you help 1. clarify what are Applications in the FEniCS Applications subpage and in general how to install and use them, 2. clarify and explain how to install specifically the fenics-solid-mechanics application/library on a Mac OSX? Thanks, -Ernest Yeung

asked Aug 4, 2015 by ernestyalumni FEniCS Novice (220 points)

2 Answers

0 votes

I got these answers by email from Wells:

You need to install DOLFIN from the FEniCS Project, and make sure the
DOLFIN libraries are in your path so they can be discovered by the
solid mechanics library.

Run 'source' on the fenics.conf or dolfin.conf file. I don't know
where the binary installer puts it. Note also that the solid mechanics
library needs FEniCS 1.6.

EY : note, for the Mac OS X, there's only FEniCS 1.5 for the binary install.

answered Aug 6, 2015 by ernestyalumni FEniCS Novice (220 points)
0 votes

The FEniCS 1.6 binary package for OS X is now available for download. To use FEniCS, either start it from the Applications folder or run the following command to set the required paths in your terminal:

source /Applications/FEniCS.app/Contents/Resources/share/fenics/fenics.conf
answered Aug 21, 2015 by johannr FEniCS Expert (17,350 points)

Hi johannr,

I am also stuck on the same issue but with Ubuntu 14.10 . Can you guide on where to keep fenics-solid-mechanics folder. I have posed my question here. http://fenicsproject.org/qa/9777/where-place-fenics-solid-mechanics-app-before-installation

...