hi guys i got a little problem when i’m trying to install monkeybars
when i want to create the base directory i got this error:
C:\Program Files\NetBeans 6.9.1\ruby\jruby-1.5.1\bin>jruby -S monkeybars
Test
Creating directory Test
“jruby.bat.exe” wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
Error installing Monkeybars project:
No such file or directory - Test/build_configuration.rb
C:/Program Files/NetBeans
6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/monkeyba
rs-1.0.5/bin/monkeybars:53:in initialize' C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/monkeyba rs-1.0.5/bin/monkeybars:53 C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/monkeyba rs-1.0.5/bin/monkeybars:19:inload’
monkeybars:19
i am creating the monkeybars base dir because they say i need it on
there website.
and i create into my /lib because jruby is there and a monkeybar batch
file
i am working with windows so that is the only place where i get a
responce when i use cmd
i installed monkeybars trugh netbeans with the ruby gem installer.
It looks like monkeybars is invoking rawr to generate directories and
code (for reasons I confess I do not understand). It shells out to do
this, and ends up calling plain-old-ruby (i.e. C Ruby), not jruby.
Even if you have rawr installed with C Ruby it fails unless it is also
Ruby 1.8.7 or better, since rawr is using RUBY_DESCRIPTION to get some
info.
If any of that fails (as it did for me just now) no files get created
and later code in the monkeybars project generator fails as well.
So, you have to make sure you have rawr installed under JRuby, and I
have to update monkeybars to invoke the jruby rawr, not the whatever
other version rawr.
In the meantime, if you edit
jruby/1.8/gems/monkeybars-1.0.5/bin/monkeybars (you may have to hunt
around to see where Netbeans likes to put things) and change line 51
You might also want to check how your PATH environment value is set up
so that Windows finds the assorted jruby commands without having to be
in the bin directory.
C:\Users<name> cd C:\Users<name>\Documents\NetBeansProjects
C:\Users<name>\Documents\NetBeansProjects>monkeybars test
monkeybars wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
C:\Users<name>\Documents\NetBeansProjects>jruby -S monkeybars test
jruby: No such file, directory, or command – monkeybars
C:\Users<name>\Documents\NetBeansProjects>Jruby -S monkeybars test
jruby: No such file, directory, or command – monkeybars
1/ First after you installed jruby-1.5.5 for windows (link I sent
ealier on), reboot your machine: make sure you ticked update the path
for me before the end of jruby setup.
2/ after your reboot, start a cmd.exe window and inside it, type jruby
-v: it should look like this
jruby 1.5.5 (ruby 1.8.7 patchlevel 249) (2010-11-10 4bd4200) (Java
HotSpot™ Client VM 1.6.0_22) [x86-java]
If step 2 fails, restart step 1 and reboot: you did it the wrong
way… I suggest you install jruby in c:\jruby by the way.
3/ after your successful step 2, install monkeybars in the same
cmd.exe window by typing (it takes a while): gem install monkeybars
The screen should look like this on a fresh jruby installation:
Successfully installed xml-simple-1.0.12
Successfully installed json_pure-1.4.6
Successfully installed rubyforge-2.0.4
Successfully installed hoe-2.7.0
Successfully installed s4t-utils-1.0.4
Successfully installed user-choices-1.1.6.1
Successfully installed rubyzip-0.9.4
Successfully installed rawr-1.4.3
Successfully installed monkeybars-1.0.5
9 gems installed
(…)
4/ type now: monkeybars
Usage:
monkeybars -h/–help
monkeybars -v/–version
monkeybars project_name
Creates a new directory (project_name) containing a project
skeleton with all files needed to run a monkeybars application.
5/ be more polite in your future emails: the email exchange 4 days ago
was not the best way to get people interested in helping you out…