[ofa-general] [PATCH] mvapich2-trunk-3073
Mike Heinz
michael.heinz at qlogic.com
Thu Oct 16 12:28:33 PDT 2008
The mpivars.sh and mpivars.csh scripts (created by the RPM spec file) do
not set the LD_LIBRARY_PATH, which means that mvapich2 programs may not
run or link unless the path is explicitly set. A similar problem was
found with mvapich earlier this year.
[mheinz at homer SRPMS]> diff -ud mvapich2.spec.orig mvapich2.spec
--- mvapich2.spec.orig 2008-10-16 15:19:36.000000000 -0400
+++ mvapich2.spec 2008-10-16 15:22:40.000000000 -0400
@@ -126,6 +126,14 @@
set path = ( %{_prefix}/bin )
endif
+if ("1" == "\$?LD_LIBRARY_PATH") then
+ if ("\$LD_LIBRARY_PATH" !~ *%{_prefix}/lib) then
+ setenv LD_LIBRARY_PATH %{_prefix}/lib:\${LD_LIBRARY_PATH}
+ endif
+else
+ setenv LD_LIBRARY_PATH %{_prefix}/lib
+endif
+
if (\$?MANPATH) then
if ( "\${MANPATH}" !~ *%{_prefix}/man* ) then
setenv MANPATH %{_prefix}/man:\$MANPATH
@@ -140,6 +148,10 @@
PATH=%{_prefix}/bin:\${PATH}
fi
+if ! echo \${LD_LIBRARY_PATH} | grep -q %{_prefix}/lib ; then
+ export LD_LIBRARY_PATH=%{_prefix}/lib:\${LD_LIBRARY_PATH}
+fi
+
if ! echo \${MANPATH} | grep -q %{_prefix}/man ; then
MANPATH=%{_prefix}/man:\${MANPATH}
fi
--
Michael Heinz
Principal Engineer, Qlogic Corporation
King of Prussia, Pennsylvania
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20081016/59cce71f/attachment.html>
More information about the general
mailing list