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

Error installing FEniCS on Mac OS X 10.11.6

+1 vote

I followed the instructions under Automatic installation from source (all platforms and versions) :

FEniCS can be built automatically from source via HashDist. To build FEniCS, run the following command:

curl -s https://fenicsproject.org/fenics-install.sh | bash

I get the following error

[cython] Building cython/e2t4ieqlgjl3, follow log with:
[cython] tail -f /Users/sophiaw/.hashdist/tmp/cython-e2t4ieqlgjl3-3/_hashdist/build.log
[cython|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
[cython|ERROR] command failed (code=1); raising

Any help fixing this would be greatly appreciated

Thanks,

Sophia.

===

I'm not sure if this helpful, but this is from build.log:

running install
Checking .pth file support in /Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages/
/Users/sophiaw/.hashdist/bld/python/pf77qttkbtzn/bin/python -E -c pass
TEST FAILED: /Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/lib/python2.7/site-packages/

and your PYTHONPATH environment variable currently contains:

'/Users/sophiaw/.hashdist/bld/cython/e2t4ieqlgjl3/Python.framework/Versions/2.7/lib/python2.7/site-packages:'

asked Aug 25, 2016 by sophia_wright FEniCS Novice (230 points)
edited Aug 28, 2016 by sophia_wright

1 Answer

–1 vote

This problem has now been fixed, and I was able to install FEniCS on OS X using hashdist, but i removed that installation. I think its a lot easier to install FEniCS on OS X via the Docker option.

answered Sep 2, 2016 by sophia_wright FEniCS Novice (230 points)

you can use sudo python XXX.py

thanks for replying, i'm a li'l confused about your answer, what does the XXX stand for?

...