Windows XP Setup Issues

14 views
Skip to first unread message

zach

unread,
Sep 17, 2009, 1:39:13 AM9/17/09
to trisano-user
I thought I had this licked but now I get this error and I don't
really know what it is trying to do. It fails because it is trying to
use the link() function which is no good for windows. Anyway it fails
consistently every time trying to load the db.

The only thing "special" that I needed to do was update the rake gem
to 0.8.7. I was getting a nil error from rake over the PATH env and
updating got me pass this. You can read more about that bug here:
http://jira.codehaus.org/browse/JRUBY-3598

Now I get this 'function unimplemented on this machine error'. any
suggestions

C:/Software/jruby-1.2.0/bin/../bin/jruby.bat -S rake db:schema:load
(in C:/workspace/trisano/trisano/webapp)
no such file to load -- cucumber/rake/task
-- create_table("addresses", {:force=>true})
rake aborted!
link() function is unimplemented on this machine

(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [C:/Software/jruby-1.2.0/bin/../bin/
jruby.b...]
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
995:in `sh'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1010:in `call'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1010:in `sh'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1098:in `sh'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1029:in `ruby'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1098:in `ruby'
C:/workspace/trisano/trisano/webapp/lib/tasks/dev.rake:58:in
`core_db_rebuild_tasks'
C:/workspace/trisano/trisano/webapp/lib/tasks/dev.rake:64
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
636:in `call'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
636:in `execute'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
631:in `each'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
631:in `execute'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
597:in `invoke_with_call_chain'
C:/Software/jruby-1.2.0/bin/../lib/ruby/1.8/monitor.rb:191:in
`mon_synchronize'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
590:in `invoke_with_call_chain'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
583:in `invoke'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2051:in `invoke_task'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2029:in `top_level'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2029:in `each'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2029:in `top_level'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2068:in `standard_exception_handling'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2023:in `top_level'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2001:in `run'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2068:in `standard_exception_handling'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1998:in `run'
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Software/jruby-1.2.0/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:
19:in `load'
C:\Software\jruby-1.2.0\bin\..\bin\rake:19




zach

unread,
Sep 18, 2009, 12:57:00 PM9/18/09
to trisano-user
I think the best solution here is to have a dual boot system and not
try this on windows. It will save you much pain. The error gets thrown
from RubyFile which uses JNA to talk with the underlying operating
system. But this particular function is causing problems, not sure
why. I was able to run the full rebuild script the first time through,
but wanted to start fresh to double check and since have not been able
to get past this. Something very strange going on. Dual boot is your
solution if you need to keep using windows.

-zach

mherrick66

unread,
Sep 19, 2009, 9:30:41 AM9/19/09
to trisano-user
Thanks for looking into this Zach. It does seem like for development
of TriSano OS X, Linux, or Solaris is simplest. There might be another
approach that would make it work (whatever people do for Ruby on Rails
development on Windows). In general Windows based Ruby on Rails
development is not all that popular. It should be interesting to see
if TriSano will run on Iron Ruby (Windows Ruby) when its ready.

I suspect actually operating TriSano on windows under Java would be an
easier proposition. I mean once you have the deployment artifacts etc.
(e.g., the trisano .war file that Tomcat runs).

Mike
Reply all
Reply to author
Forward
0 new messages