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. [EMAIL PROTECTED] 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
_______________________________________________ general mailing list general@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general