[ofa-general] [PATCH] mvapich2-trunk-3073

Jonathan Perkins perkinjo at cse.ohio-state.edu
Thu Oct 16 12:52:13 PDT 2008


Mike:
Thanks for the patch.  I'll take a look at this and include it in our
next srpm.  Please note that you can mail
mvapich-discuss at cse.ohio-state.edu for issues related to mvapich or
mvapich2.

On Thu, Oct 16, 2008 at 02:28:33PM -0500, Mike Heinz wrote:
> 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
>  

> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo



More information about the general mailing list