Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way of installing dolfin via brew #22

Open
sniis84 opened this issue Feb 11, 2017 · 2 comments
Open

No way of installing dolfin via brew #22

sniis84 opened this issue Feb 11, 2017 · 2 comments

Comments

@sniis84
Copy link

sniis84 commented Feb 11, 2017

I tried both:

brew install dolfin

having this issue

Already downloaded: /Users/nicholas/Library/Caches/Homebrew/dolfin-1.6.0.tar.gz ==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/dolfin/1.6.0 -DBUILD_SHARE ==> make Last 15 lines from /Users/nicholas/Library/Logs/Homebrew/dolfin/02.make: PetscOptionsSetValue("-mat_superlu_dist_colperm", "MMD_AT_PLUS_A"); ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/petscoptions.h:30:29: note: candidate function not viable: requires 3 arguments, but 2 were provided PETSC_EXTERN PetscErrorCode PetscOptionsSetValue(PetscOptions,const char[],const char[]); ^ /tmp/dolfin-20170211-14242-i0fd43/dolfin-1.6.0/dolfin/common/SubSystemsManager.cpp:195:5: error: no matching function for call to 'PetscOptionsInsert' PetscOptionsInsert(&argc, &argv, PETSC_NULL); ^~~~~~~~~~~~~~~~~~ /usr/local/include/petscoptions.h:39:29: note: candidate function not viable: requires 4 arguments, but 3 were provided PETSC_EXTERN PetscErrorCode PetscOptionsInsert(PetscOptions,int*,char ***,const char[]); ^ 4 errors generated. make[2]: *** [dolfin/CMakeFiles/dolfin.dir/common/SubSystemsManager.cpp.o] Error 1 make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2 make: *** [all] Error 2

and

brew install dolfin --HEAD

getting

`cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/dolfin/HEAD-ca54d8c -DBUIL
Last 15 lines from /Users/nicholas/Library/Logs/Homebrew/dolfin/01.cmake:
Compiling 1 forms in demo/documented/auto-adaptive-poisson/cpp...

ffc -l dolfin -s -O -r auto -e AdaptivePoisson.ufl

Traceback (most recent call last):

File "/tmp/dolfin-20170211-16814-g9tuar/cmake/scripts/generate-form-files.py", line 92, in <module>
  ret = ffc.main(args)

AttributeError: 'module' object has no attribute 'main'`

Could you please help me to understand what is missing in the compile process.
Many thanks!

@dpo
Copy link
Member

dpo commented Feb 11, 2017

Sorry FEniCS is giving you trouble. What's missing is time for me to look into this. FEniCS is a moving target and so are its dependencies. I'm currently too busy to try and fix this so any help in the form of pull requests would be greatly appreciated.

@sniis84
Copy link
Author

sniis84 commented Feb 11, 2017

@dpo is could be nice just to have a clear idea on how to install this for OS X (if it exists).
Because I've seen that there are 1000 of ways and not a clear one, not even the instructions here are not working...
https://github.com/optimizers/homebrew-fenics/blob/master/README.md

I think I'll stop wasting time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants