Skip to content

Fix for LD_LIBRARY_PATH and libslurm#57

Closed
spenpw wants to merge 1 commit intonatefoo:mainfrom
spenpw:library_path_fix
Closed

Fix for LD_LIBRARY_PATH and libslurm#57
spenpw wants to merge 1 commit intonatefoo:mainfrom
spenpw:library_path_fix

Conversation

@spenpw
Copy link
Copy Markdown

@spenpw spenpw commented Aug 13, 2021

This is a simple fix that implements one the solutions @reid-wagner proposed in #44. I was creating a Spack package for slurm-drmaa and found that this should fix the install.

@natefoo
Copy link
Copy Markdown
Owner

natefoo commented Sep 2, 2021

I am chasing down the actual cause of this on #44 as the behavior varies by platform. That said, if we do end up committing something that explicitly sets the runtime link path, I would prefer that it be with -Wl,-rpath rather than LD_LIBRARY_PATH.

For the meantime, if you are compiling on EL against a libslurm.so that is not in the standard runtime linker path (e.g. /usr/lib64), you can configure with (where /path/to/slurm is the --prefix of the Slurm installation:

LDFLAGS=-Wl,-rpath=/path/to/slurm/lib ./configure --with-slurm-inc=/path/to/slurm/include --with-slurm-lib=/path/to/slurm/lib

@natefoo
Copy link
Copy Markdown
Owner

natefoo commented Oct 7, 2021

This is superseded by the changes in #62, but thank you for the contribution, sorry for the delay in getting it fixed and merged.

@natefoo natefoo closed this Oct 7, 2021
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

Successfully merging this pull request may close these issues.

2 participants