<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5583" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=818440721-16072008>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.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=818440721-16072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=818440721-16072008>---
mvapich.spec.orig 2008-07-16 17:06:44.000000000 -0400<BR>+++
mvapich.spec 2008-07-16
16:49:27.000000000 -0400<BR>@@ -300,17 +300,25 @@<BR> if ! echo \${PATH} |
grep -q %{_prefix}/bin ;
then<BR> export
PATH=%{_prefix}/bin:\${PATH}<BR> fi<BR>+if ! echo \${LD_LIBRARY_PATH} |
grep -q %{_prefix}/lib ; then<BR>+
export
LD_LIBRARY_PATH=%{_prefix}/lib:%{_prefix}/lib:/shared:\${LD_LIBRARY_PATH}<BR>+fi<BR> EOF</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=818440721-16072008> # Script for
csh<BR> cat <<EOF >
%{build_root}/%{_prefix}/bin/%{shell_scripts_basename}.csh<BR>-if (?$path)
then<BR>- if ( "\${path}" !~ *%{_prefix}/bin* )
then<BR>- setenv path
%{_prefix}/bin:\$path<BR>+if ("\$path" !~ *%{_prefix}/bin)
then<BR>+ set path=(%{_prefix}/bin
\$path)<BR>+endif<BR>+<BR>+if ("1" == "\$?LD_LIBRARY_PATH")
then<BR>+ if ("\$LD_LIBRARY_PATH" !~ *%{_prefix}/lib)
then<BR>+ setenv LD_LIBRARY_PATH
%{_prefix}/lib:%{_prefix}/lib/shared:\${LD_LIBRARY_PATH}<BR>
endif<BR> else<BR>- setenv path
%{_prefix}/bin:<BR>+ setenv LD_LIBRARY_PATH
%{_prefix}/lib:%{_prefix}/lib/shared<BR> endif<BR>+<BR> EOF<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>--</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Michael Heinz</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Principal Engineer, Qlogic
Corporation</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>King of Prussia,
Pennsylvania</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>