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

Add support for petsc installs with external packages #92

Open
cekees opened this issue Jun 27, 2013 · 1 comment
Open

Add support for petsc installs with external packages #92

cekees opened this issue Jun 27, 2013 · 1 comment

Comments

@cekees
Copy link
Contributor

cekees commented Jun 27, 2013

On mac os x, when I build petsc with a set of external packages (like parmetis), I can't use the petsc library without setting DYLD_LIBRARY_PATH to include the petsc build artifact explicitly:

Library not loaded: /Users/cekees/proteus/hashstack/bld/petsc-n-4tj7/src/arch-darwin-c-debug/lib/libparmetis.dylib
Referenced from: /Users/cekees/proteus/hashstack/opt/petsc/4tj7/lib/libpetsc.dylib
Reason: image not found

I think the reason is because petsc links itself to it's external packages in the source directory, which gets removed later.

In the long term it seems like we may want to explicitly include petsc's external pacakges (I believe @certik mentioned that somewhere), but I've also heard the petsc team say that some of those packages need to be built with the petsc build system. Another option would be to try to get the petsc build system to use hashdist.

@certik
Copy link
Member

certik commented Jul 1, 2013

Probably just rpath needs to be set? It looks like the libpetsc.dylib should contain rpath to parmetis.

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