Skip to content

Commit 836fbf6

Browse files
Tim Lanetilne
authored andcommitted
Ensure runtime linker can find PMIx shared lib
Ensure that the runtime loader can find the PMIx shared libraries on OSes where /usr/lib is not part of the default search path. Signed-off-by: Tim Lane <[email protected]>
1 parent 83f2839 commit 836fbf6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/lib

recipes/pmix_install.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,15 @@
4949
make install
5050
PMIX
5151
end
52+
53+
# Ensure directory containing PMIx shared library is part of the runtime
54+
# loader's search path.
55+
cookbook_file '/etc/ld.so.conf.d/pmix.conf' do
56+
source 'pmix/ld.so.conf.d/pmix.conf'
57+
owner 'root'
58+
group 'root'
59+
mode '0644'
60+
end
61+
execute 'ldconfig' do
62+
user 'root'
63+
end

0 commit comments

Comments
 (0)