Installing jruby on mac leopard

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

$ /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™ 2 Runtime Environment, Standard Edition (build
1.5.0_13-b05-237)
Java HotSpot™ 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

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 A. [email protected] 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

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 A. [email protected] 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

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 S. [email protected]
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

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 S. [email protected]
wrote:

Java HotSpot™ 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

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 A.” [email protected] wrote:

"We no longer recommended setting an environmental variable

just fyi:
$ java -version
java version “1.5.0_13”
Java™ 2 Runtime Environment, Standard Edition (build
1.5.0_13-b05-237) Java HotSpot™ 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

Hi Ben,

On Tue, May 6, 2008 at 2:42 PM, Ben A. [email protected] 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

At 3:33 PM +0200 5/6/08, Vladimir S. 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

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 A. removed_email[email protected] 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

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
  1. Decompress it:
  • Windows: doubleclick the zip file
  • Mac/Linux: tar xfvz jruby-bin-…tar.gz
  1. Rename the folder to JRuby-1.1" to “jruby” and place it somewhere,
    for example:
  • Windows: “C:\software\jruby”
  • Mac/Linux: “/opt/jruby”
  1. 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 B.
[email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs