Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A problem during creation of environment with SSCLI20: solved!

19 views
Skip to first unread message

moth_cosacco

unread,
Nov 1, 2006, 8:18:02 PM11/1/06
to
Hi to All,

My name is Thomas, I'm a student in Computer Science at Univesity of
Pisa (Italy, that's much important as you will see)
and I was trying to install "rotor sources" on my pc with Windows XP
Well, I installed IIS, Visual Studio, Perl...
Then I download sscli20,
I unzipped all files into the C:\sscli20\ directory as requested,
I open a cmd shell,
I tried to start environment process with C:\sscli20\env.bat command
and that's the answer...

Error: Could not get platform OS version

*** Error while running env.bat.

At this point I check on the documentation and on the internet for this
kind of error but i was not able to find anything.
Then I started with a check of the System requirements but all was as required
and/or suggested.
At this point I decide to find the old SSCLI version (not a simple task);
I found it and I repeat similar operations below: it seems things may works
well.
But, I'm obviously not satisfied.
I deleted directories created by old SSCLI and I back to fight with SSCLI20
(which was still not working).
I opened the env.bat file and I saw it's a simple call to win.env.bat file
in the same directory c:\sscli20
Then I decide to modify win.env.bat file and I start to place a statement
similar to:
echo I AM HERE
between commands.
In this way I found where was the statement that create the error:

Error: Could not get platform OS version

when I launch c:\sscli20\env.bat

Well, the command
perl .\env.core.pl %_COMPILER_FLAG% --output=%_OUTFILE% %1 %2 %3 %4 %5 %6 %7
%8 %9

is the responsible.
Then I opened the env.core.pl file in the c:\sscli20\ directory
and finally I found the row of script that generates the error message:
Error: Could not get platform OS version

The responsible is the perl command:
if (! $platform_os_version ) {
CorFail ("Could not get platform OS version");
}

The variable $platform_os_version is defined some previous rows in the same
script,
his definition is:

$platform_os_version = `ver`;
# we keep the first two fields of the version number
if (! ($platform_os_version =~ s/\nMicrosoft.*\[Version
+([0-9]+\.[0-9]+)\..*\]/$1/g)) {
$platform_os_version = "";
}

That's means the variable $platform_os_version is obtained by
the command:

C:\ver

And now become important the thing i said at begin of this post:
I'm in Italy and version of Windows XP on my computer is in italian!
That's means that if I type:

C:\>ver

Microsoft Windows XP [Versione 5.1.2600]

I obtain this sentence with the word "Versione" instead of "Version"
as in the perl script!
Then I modified the C:\sscli20\env.core.pl script with the word "Versione"
instead of "Version":

$platform_os_version = `ver`;
# we keep the first two fields of the version number
if (! ($platform_os_version =~ s/\nMicrosoft.*\[Versione
+([0-9]+\.[0-9]+)\..*\]/$1/g)) {
$platform_os_version = "";
}

I saved it.
I tried with:

C:\sscli20\env.bat

and now, finally, the process have been completed without errors.
I think this post may solve lot of problems for users of italian version of
windows xp and sscli20 package.
I put a file with the modified script in a downloadable archive:

http://microfono.googlepages.com/env.core.plmodifiedforWindowsXPitalianversion.rar

If you have comments/suggestions please email me at address:
microfo...@gmail.com
or:
moth_cosa...@hotmail.com

(removing NOSPAM from the addresses)

Sorry for my poor english!

Bye
Thomas Cocco

Alex

unread,
Apr 15, 2009, 10:25:02 AM4/15/09
to
Hi Thomas,

My name is Alex, and I have encountered the same problem as you.

I changed the "Version" to 版本 in Chinese and it can be compiled without
errors.

$platform_os_version = `ver`;
# we keep the first two fields of the version number

if (! ($platform_os_version =~ s/\nMicrosoft.*\[版本

+([0-9]+\.[0-9]+)\..*\]/$1/g)) {
$platform_os_version = "";
}

Thank you !

0 new messages