hi according to the wiki the installation process should be straight foreward, no env variables should be set manually. http://wiki.jruby.org/wiki/Getting_Started#Installing_JRuby The problem is, that when I - like I'm told in the wiki - run the installation command nothing happens $ <path to jruby>/bin/jruby the prompt just gets on idle (just a blank line, no '$') What I'm doing wrong here? just fyi: $ java -version java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing) Thanks in advance Ben --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 06.05.2008 13:16
on 06.05.2008 13:30
Ben, You doing it right. By default, Ruby and JRuby don't do anything, just wait for the input. You either should use jirb (for interactive console) or do jruby script.rb Thanks, --Vladimir On Tue, May 6, 2008 at 1:16 PM, Ben Aurel <ben.aurel@gmail.com> wrote: > > > Thanks in advance > Ben > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 06.05.2008 14:32
as a new user to jruby I expected, that the main goal of "installing jruby" and "get jruby running" http://wiki.jruby.org/wiki/Getting_Started is to have jruby installed so that I can call $ jruby everywhere. So I assume to have to set the env variables manually. That's not a problem per se. But what is the point this: "We no longer recommended setting an environmental variable $JRUBY_HOME to point to the location of your JRuby install. Now when you run the jruby shell script it will automatically set $JRUBY_HOME to the parent of the directory it was located in." Sorry - maybe I sound complicated but - just as feedback from a newbie - the wikisite "getting started" is a bit confusing to me. Ben On Tue, May 6, 2008 at 1:30 PM, Vladimir Sizikov <vsizikov@gmail.com> wrote: > > > > > Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing) > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 06.05.2008 14:39
Hi Ben, Yes, that paragraph is a bit too complicated and maybe not even needed for the first-time users, I agree. We should probably improve that. But the point is simple, all you need to do is to adjust your PATH so that jruby script can be found and can be executed. No need to adjust any other env variables. Thanks, --Vladimir On Tue, May 6, 2008 at 2:31 PM, Ben Aurel <ben.aurel@gmail.com> wrote: > "We no longer recommended setting an environmental variable > > > > > > http://wiki.jruby.org/wiki/Getting_Started#Installing_JRuby > > > just fyi: > > > To unsubscribe from this list, please visit: > > > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 06.05.2008 14:43
yeah - I've done that and it works. This is the common workaround when installing new software. But reading the wiki gives you the impression, that the script sets the variables. I would have been faster *without* the wiki. Just my 2c Ben On Tue, May 6, 2008 at 2:38 PM, Vladimir Sizikov <vsizikov@gmail.com> wrote: > --Vladimir > > everywhere. > > > > > You doing it right. By default, Ruby and JRuby don't do anything, just > > > > hi > > > > the prompt just gets on idle (just a blank line, no '$') > > > > Thanks in advance > > > --------------------------------------------------------------------- > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 06.05.2008 14:56
Ben, no, you don't need to set the enviroment variable manually. What do you expect to happen? As Vladimir wrote, the blank prompt indeed proofs that jruby has been found. This behaviour is identical to ruby (the original c version). Of course you are right that it is not very useful. But JRuby is meant to be called with at least one parameter e.g. the name of a ruby script. If you are looking for some kind of interactive interpreter you need to use jirb / irb. Or just type 'jruby --version' to see which version of jruby gets called or 'jruby --help' to get some further information about available parameters. HTH, Manfred On Tue, 6 May 2008 14:31:38 +0200 "Ben Aurel" <ben.aurel@gmail.com> wrote: > "We no longer recommended setting an environmental variable > > > > > > > > > > > > just fyi: > > > $ java -version > > > java version "1.5.0_13" > > > Java(TM) 2 Runtime Environment, Standard Edition (build > > > 1.5.0_13-b05-237) Java HotSpot(TM) Client VM (build > > > 1.5.0_13-119, mixed mode, sharing) > > > > > > > > > Thanks in advance > > > Ben --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 06.05.2008 15:34
Hi Ben, On Tue, May 6, 2008 at 2:42 PM, Ben Aurel <ben.aurel@gmail.com> wrote: > yeah - I've done that and it works. > > This is the common workaround when installing new software. But > reading the wiki gives you the impression, that the script sets the > variables. All JRuby-internal variables are handled automatically now, indeed. But you need to adjust the PATH variable at least (so that the command shell would know where to find the jruby script). > I would have been faster *without* the wiki. Thanks for the feedback. I've reworked the section: http://wiki.jruby.org/wiki/Getting_Started#Basics_of_Getting_JRuby_Running It should be *much* shorter and simple to follown now. Thanks, --Vladimir --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 06.05.2008 18:32
At 3:33 PM +0200 5/6/08, Vladimir Sizikov wrote: >But you need to >adjust the PATH variable at least (so that the command shell would >know where to find the jruby script). Ben, I had done a bunch of the recent editing on the Getting Started page -- I'm sorry you fond it confusing and am glad you wrote about your troubles. That page should be both as simple and as accurate as possible. As Valdimir said above executing the jruby script which starts jruby DOES set all the environmental variables EXCEPT for JAVA_HOME (which must be set before running jruby). Adding the JRuby bin/ directory to your PATH environmental variable just makes it easier to execute. If you add the jruby/bin dir to your path add it to the end of your PATH not to the beginning. The reason is so that the ruby system scripts you already have installed with the MRI Ruby installed in Leopard are found first when you type their name. If you want to run the JRuby version of rake initiate it like this: jruby -S rake > > I would have been faster *without* the wiki. > >Thanks for the feedback. I've reworked the section: >http://wiki.jruby.org/wiki/Getting_Started#Basics_of_Getting_JRuby_Running > >It should be *much* shorter and simple to follown now. Thanks Vladimir for simplifying my overly detailed prose. I added a reminder to add the JRuby bin directory to the end of the PATH. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 07.05.2008 13:58
hello somebody has edited the wiki. It's much better now. I think it be done in a more simpler way. Installing JRuby in 4 steps: 1. Download it: http://dist.codehaus.org/jruby [1] - for Windows: jruby-bin-1.1.zip - for Mac/Linux: jruby-bin-1.1.tar.gz 2. Decompress it: - Windows: doubleclick the zip file - Mac/Linux: tar xfvz jruby-bin-....tar.gz 3. Rename the folder to JRuby-1.1" to "jruby" and place it somewhere, for example: - Windows: "C:\software\jruby" - Mac/Linux: "/opt/jruby" 4. Set the environment variable to your JRuby installation path: - on Windows variable %PATH% to for example: "C:\software\jruby" - on Mac/Linux the $PATH to for example: "/opt/jruby" What do you think of that? regards Ben On Tue, May 6, 2008 at 6:31 PM, Stephen Bannasch <stephen.bannasch@deanbrook.org> wrote: > >All JRuby-internal variables are handled automatically now, indeed. > > >It should be *much* shorter and simple to follown now. > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 07.05.2008 13:58
to [1]: it wouldn't mention the source here. Those users who want to work with the sources don't need these guidance... On Tue, May 6, 2008 at 8:53 PM, Ben Aurel <ben.aurel@gmail.com> wrote: > > - on Windows variable %PATH% to for example: "C:\software\jruby" > > > >> > > Ben, > > > > I would have been faster *without* the wiki. > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email