You are here

ROsetta installation on windows

6 posts / 0 new
Last post
ROsetta installation on windows
#1

Hi all,

I am new to rosetta and I tried installing rosetta on windows 7 ... First I installed scons using scons-2.0.1.win32.exe file downloaded from scons website... after that I tried using the command -> scons bin mode=release
in cygwin but its saying that the command not found ... I already added the location of scons to environment variables

Pls help

BHARAT

Post Situation: 
Tue, 2011-01-18 20:40
bharat_46010

So cygwin is unable to see scons? Maybe you have to install scons into cygwin, somehow, instead of installing it into Windows? (The developers never install Rosetta on Windows boxes so none of us are experts...)

Wed, 2011-01-19 06:55
smlewis

Hi,

I have installed Scons in cygwin but I don't know how to install rosetta ... I have downloaded the rosetta_bundle zipped file ... after issuing the command scons bin mode=release under the directory containing the bundle file its giving the following error :-

scons:- ***** No SConstruct File found

Wed, 2011-01-19 17:44
bharat_46010

er - did you unzip Rosetta...? SCons doens't unzip it for you. The directory in which you run scons should files and directories like so:

-rw-r--r-- 1 smlewis smlewis 536 2009-06-11 14:02 accept_utracers.sh
drwxr-xr-x 2 smlewis smlewis 4.0K 2010-12-20 11:55 bin
drwxr-xr-x 3 smlewis smlewis 4.0K 2010-04-23 18:14 build
-rw-r--r-- 1 smlewis smlewis 51K 2009-09-24 14:54 Doxyfile
drwxr-xr-x 9 smlewis smlewis 4.0K 2009-09-29 13:20 external
drwxr-xr-x 3 smlewis smlewis 4.0K 2009-09-29 13:20 ide
drwxr-xr-x 2 smlewis smlewis 4.0K 2009-09-29 13:20 lib
-rwxr-xr-x 1 smlewis smlewis 675 2009-06-11 14:02 make_ctags.sh
-rwxr-xr-x 1 smlewis smlewis 2.0K 2009-06-11 14:02 performance-benchmark.py
-rw-r--r-- 1 smlewis smlewis 921 2009-09-15 14:58 projects.settings
-rw-r--r-- 1 smlewis smlewis 460 2009-09-23 17:33 README.Copyrights
-rw-r--r-- 1 smlewis smlewis 3.9K 2009-09-15 15:32 readme.txt
-rw-r--r-- 1 smlewis smlewis 12 2009-09-29 17:51 README.version
-rw-r--r-- 1 smlewis smlewis 2.0K 2009-02-04 14:53 SConscript
lrwxrwxrwx 1 smlewis smlewis 29 2009-10-05 11:52 scons.py -> external/scons-local/scons.py
-rw-r--r-- 1 smlewis smlewis 5.2K 2008-01-24 11:41 SConstruct
drwxr-xr-x 13 smlewis smlewis 4.0K 2010-04-23 18:14 src
drwxr-xr-x 2 smlewis smlewis 4.0K 2009-09-29 13:20 stubs
-rw-r--r-- 1 smlewis smlewis 2.9K 2009-06-11 14:02 svn_version.py
drwxr-xr-x 14 smlewis smlewis 4.0K 2009-09-29 13:19 test
drwxr-xr-x 3 smlewis smlewis 4.0K 2010-04-23 18:13 tools
-rwxr-xr-x 1 smlewis smlewis 486 2009-06-11 14:02 update_options.sh

Thu, 2011-01-20 06:59
smlewis

Hi,

I unzipped the bundles and after executing the command scons bin mode=release under rosetta3.1_source directory .. its giving the following error :-

Master@BHARAT-PC /cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source
$ scons bin mode=release
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead
.
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/tools/build/setup.p
y", line 45, in setup_build_options

scons: warning: The EnumOption() function is deprecated; use the EnumVariable()
function instead.
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/tools/build/setup.p
y", line 53, in setup_build_options

scons: warning: The ListOption() function is deprecated; use the ListVariable()
function instead.
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/tools/build/setup.p
y", line 61, in setup_build_options
Traceback (most recent call last):
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/SConstruct", line
137, in main
build = SConscript("tools/build/setup.py")
File "/usr/lib/scons-2.0.1/SCons/Script/SConscript.py", line 614, in __call__
return method(*args, **kw)
File "/usr/lib/scons-2.0.1/SCons/Script/SConscript.py", line 551, in SConscrip
t
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons-2.0.1/SCons/Script/SConscript.py", line 260, in _SConscri
pt
exec _file_ in call_stack[-1].globals
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/tools/build/setup
.py", line 410, in
build = setup()
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/tools/build/setup
.py", line 401, in setup
build.options_requested, build.options = setup_build_options()
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/tools/build/setup
.py", line 112, in setup_build_options
actual.os = setup_platforms.select_os(supported, requested.os)
File "/cygdrive/c/packages/rosetta3.1_Bundles/rosetta_source/tools/build/setup
_platforms.py", line 125, in select_os
raise KeyError, "Operating system '%s' is unsupported." % (actual)
KeyError: "Operating system 'cygwin_nt-6.1' is unsupported."
scons: done reading SConscript files.
scons: Building targets ...
scons: `bin' is up to date.
scons: done building targets.

-----------

Its showing that the operating system is not supported ..
so what shall i do in this case

Fri, 2011-01-21 22:52
bharat_46010

Hi bharat_46010,

In tools/build/setup_platforms.py find the lines:


actual = {
"darwin": "macos",
"cygwin_nt-5.1": "cygwin",
}.get(expected, expected)

and modify them to:


actual = {
"darwin": "macos",
"cygwin_nt-5.1": "cygwin",
"cygwin_nt-6.1": "cygwin",
}.get(expected, expected)

This will indicate to scons that your version of cygwin should use the standard cygwin configuration setup. Also, if you haven't done so already you will probably have to install the zlib library. You can download the latest source distribution from www.zlib.net.

Then when you are ready, please try running the local version of scons rather than the system version of scons.


./scons.py bin mode=release

Using this verison of scons will hopefully remove the 'deprecated' warnings.

Best,
Matt

Sat, 2011-01-22 11:30
momeara