Shiqing and I talked off-list and fixed the problem. I committed to both trunk and the v3.0 branch.

On Apr 30, 2009, at 4:10 AM, Shiqing Fan wrote:

Hi Jeff,

Yes, I just found out that "-o" option doesn't exist on OS X. But
problem is we don't have client or whatami on Cygwin, are they Linux
shell commands?

Anyway, I figured out another way to get the system type with Perl, just "my $sys_type=$^O" will give us the same result as using "uname -o". I'm not a Perl expert, so I don't know how it works, but here is a link from
Perl dev-reference:
http://perl.devquickref.com/perl-get-current-operating-system.html

Could this be a solution?


Regards,
Shiqing


Jeff Squyres wrote:
> Shiqing --
>
> It looks like the "uname -o" that was added into OMPI.pm is
> problematic on OS X.
>
> What does client/whatami/whatami return on the platforms that you care
> about?  I.e., can we re-write this chunk of code in
> MPI/Install/OMPI.pm to use whatami output:
>
>     my $sys_type=`uname -o`;
>     if(($sys_type =~ /cygwin/i || $sys_type =~ /msys/i) &&
>         $config->{compiler_name} eq "microsoft") {
>     $install = MTT::Common::Cmake::Install($gnu);
>     } else {
>         $install = MTT::Common::GNU_Install::Install($gnu);
>     }
>


--
--------------------------------------------------------------
Shiqing Fan                          http://www.hlrs.de/people/fan
High Performance Computing           Tel.: +49 711 685 87234
  Center Stuttgart (HLRS)            Fax.: +49 711 685 65832
Address:Allmandring 30               email: f...@hlrs.de
70569 Stuttgart



--
Jeff Squyres
Cisco Systems

Reply via email to