[ofa-general] [PATCH] mvapich-1.0.1-2533
Mike Heinz
michael.heinz at qlogic.com
Wed Jul 16 14:10:19 PDT 2008
The mpivars.sh and mpivars.csh scripts do not set the LD_LIBRARY_PATH,
which means that mvapich programs may not run unless the path is
explicitly set. In addition, mpivars.csh has a bug where it does not set
the path, either. I will be submitting a similar patch for mvapich2
shortly.
--- mvapich.spec.orig 2008-07-16 17:06:44.000000000 -0400
+++ mvapich.spec 2008-07-16 16:49:27.000000000 -0400
@@ -300,17 +300,25 @@
if ! echo \${PATH} | grep -q %{_prefix}/bin ; then
export PATH=%{_prefix}/bin:\${PATH}
fi
+if ! echo \${LD_LIBRARY_PATH} | grep -q %{_prefix}/lib ; then
+ export
LD_LIBRARY_PATH=%{_prefix}/lib:%{_prefix}/lib:/shared:\${LD_LIBRARY_PATH
}
+fi
EOF
# Script for csh
cat <<EOF > %{build_root}/%{_prefix}/bin/%{shell_scripts_basename}.csh
-if (?$path) then
- if ( "\${path}" !~ *%{_prefix}/bin* ) then
- setenv path %{_prefix}/bin:\$path
+if ("\$path" !~ *%{_prefix}/bin) then
+ set path=(%{_prefix}/bin \$path)
+endif
+
+if ("1" == "\$?LD_LIBRARY_PATH") then
+ if ("\$LD_LIBRARY_PATH" !~ *%{_prefix}/lib) then
+ setenv LD_LIBRARY_PATH
%{_prefix}/lib:%{_prefix}/lib/shared:\${LD_LIBRARY_PATH}
endif
else
- setenv path %{_prefix}/bin:
+ setenv LD_LIBRARY_PATH %{_prefix}/lib:%{_prefix}/lib/shared
endif
+
EOF
--
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/20080716/bc473cbd/attachment.html>
More information about the general
mailing list