Title: Re: [Oscar-users] Oscar-4.0 installer fails.]
Hi Lynn:
 
You are right, there should be another elsif statement.  I will file a bug on your behalf.
 
What kind of hardware is your server running just out of curiosity?
 
Cheers,
 
Bernard


From: Lynn Wilkins [mailto:[EMAIL PROTECTED]
Sent: Sun 26/12/2004 11:11 PM
To: Bernard Li
Subject: Re: [Oscar-users] Oscar-4.0 installer fails.]

Bernard Li wrote:

>Hi Lynn:
>
>The code:
>
>my $uname_data=(uname)[4];
>
>is actually using the POSIX library to find out the name of the current OS, it is not simply calling the system command 'uname'.
>
>Can you write a simple perl code like this and tell me your output?
>
>#!/usr/bin/perl
>
>use POSIX;
>
>print (uname);
>
>Are you running a stock installation of Fedora Core 2 (without any updates)?
>
>While your fix works, you may have problems at other stages of the installation.
>
>Cheers,
>
>Bernard
>
>________________________________
>
>From: [EMAIL PROTECTED] on behalf of Lynn Wilkins
>Sent: Sun 26/12/2004 9:26 PM
>To: [email protected]
>Subject: Re: [Oscar-users] Oscar-4.0 installer fails.]
>
>
>
>I discovered the problem.
>In the oscar script "set_global_oscar_values" line 60:
>my $uname_data = (uname)[4];
>ouch! on my machine running Fedora Core uname returns just:
>Linux
>I modified the script such that:
>my $uname_data = (`uname -i`);
>chomp $uname_data;   # Pesky newline would prevent equality test
>
>That fixed the problem.
>-law
>
>
>
>
>
>

>
I missed the "use POSIX." !
As you suggested. The code:
#! /usr/bin/perl
use POSIX;
my $uname_data = (uname)[4];
print "\(uname\)[4] returned - $uname_data \n";
$uname_data =  (`uname -i`);
chomp $uname_data;
print "-- law --> uname -i returned - $uname_data -\n";

Produced this output:
(uname)[4] returned - i586
-- law --> uname -i returned - i386 -

Does this mean there should be another elseif like this:
elsif ( $uname_data eq "i586" ) {
    $oscar_server_architecture = "ia32";
}
-law




Reply via email to