Rvm jruby issue

i have installed manually RVM 1.26.3,and downloaded jruby binary 1.7.11
and added to path.

when i execute rvm list command,its showing no rubies found.

Please let me know how to fix this.

thank you

Chandra,

On 12/8/14 4:45 PM, Chandra S. wrote:

i have installed manually RVM 1.26.3,and downloaded jruby binary 1.7.11
and added to path.

when i execute rvm list command,its showing no rubies found.

Please let me know how to fix this.

RVM doesn’t find rubies using the path. You need to run “rvm install” on
them. See RVM: Ruby Version Manager - JRuby and
RVM: Ruby Version Manager - './install' - Installing RVM.

  • George


Chandra -

Using rvm, you should:

rvm install jruby

At that point, if you do this:

rvm jruby

…then Ruby commands such as ruby and irb should “just work”. You can
try “ruby -v” to show the Ruby version.

If they don’t, you may have an issue with rvm, probably relating to your
shell. What operating system are you using?

I suggest trying to install another Ruby, (e.g. 1.9.3) and see if that
works. This will help identify the problem.

  • Keith

Keith R. Bennett

On Mon, Dec 8, 2014 at 4:53 PM, Chandra S. [email protected]
wrote:

i am trying to install RVM and Jruby in a firewall protected environment
in linux.

Continuing with compilation. Please read ‘rvm help mount’ …

Have you done that?


Hassan S. ------------------------ [email protected]

twitter: @hassan

Your problem is that RVM can’t get to the Internet. You mentioned that
you’re firewalled. See the “offline” installation instructions for RVM.

http://rvm.io/rvm/offline

  • Ryan

thanks for the response Keith B.

i am trying to install RVM and Jruby in a firewall protected environment
in linux.

i am getting connectivity problems while excecuting the

rvm install jruby-1.7.11
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/5/x86_64/jruby-1.7.11.
Continuing with compilation. Please read ‘rvm help mount’ to get more
information on binary rubies.
Checking requirements for redhat.

Cloning from git://github.com/jruby/jruby.git, this may take a while
depending on your connection.
Error running 'command git clone git://github.com/jruby/jruby.git

i have configured proxy as well.

Please let me know how to fix this

Hassan S. wrote in post #1164284:

On Mon, Dec 8, 2014 at 4:53 PM, Chandra S. [email protected]
wrote:

i am trying to install RVM and Jruby in a firewall protected environment
in linux.

Continuing with compilation. Please read ‘rvm help mount’ …

Have you done that?


Hassan S. ------------------------ [email protected]
Hassan Schroeder | about.me
twitter: @hassan

i have not done…please let me know how to do this.thanks

Thanks Ryan

I have downloaded jruby-src-1.7.11.tar.gz, and i a m not able to install
this.

Please let me know how can i install this using RVM.

RVM: Ruby Version Manager - Offline RVM steps are not that much clear.

i am new to ruby.

appreciate your response
i have downloaded jrby src tar.gz and trying as below.

~]$ rvm mount jruby-src-1.7.11.tar.gz
The given paths ‘jruby-src-1.7.11.tar.gz’ do not point to a ruby
installation.

please do let me know am doing correct??

On Tue, Dec 9, 2014 at 8:26 AM, Chandra S. [email protected]
wrote:

Continuing with compilation. Please read ‘rvm help mount’ …

Have you done that?

i have not done…please let me know how to do this.thanks

  1. enter the quoted phrase in your terminal
  2. read the output

Good luck.

Hassan S. ------------------------ [email protected]

twitter: @hassan

Chandra -

You may need to untar the tarball. At a terminal do:

tar xzf jruby-src-1.7.11.tar.gz

and then point rvm mount to the uncompressed directory tree.

Please note that this is no longer a JRuby question, but is really an
rvm
question. You might get better support with an rvm group.

  • Keith

On Tue, Dec 9, 2014 at 11:47 AM, Chandra S. [email protected]

On Tue, Dec 9, 2014 at 8:47 AM, Chandra S. [email protected]
wrote:

appreciate your response
i have downloaded jrby src tar.gz and trying as below.

~]$ rvm mount jruby-src-1.7.11.tar.gz
The given paths ‘jruby-src-1.7.11.tar.gz’ do not point to a ruby
installation.

please do let me know am doing correct??

Aside: I would try using rvm again to install this, since your
connectivity is apparently good enough to download all this
stuff :slight_smile:

However – forget that source package. Assuming the binary
package you previously downloaded was a tar.gz file,

  1. pick someplace to unpack it
  2. cd to the bin directory
  3. ln -s jruby ruby

Now you can use the rvm mount command.

HTH,

Hassan S. ------------------------ [email protected]

twitter: @hassan

“rvm mount” is used on an already-installed Ruby. It allows RVM to use
that installation as one of its options.

To echo Mr. Bennett, this is really an RVM issue, not a JRuby issue.
You will get better information and support from their site, team, and
lists.

Good luck!

  • Ryan

Hassan S. wrote in post #1164311:

On Tue, Dec 9, 2014 at 8:47 AM, Chandra S. [email protected]
wrote:

appreciate your response
i have downloaded jrby src tar.gz and trying as below.

~]$ rvm mount jruby-src-1.7.11.tar.gz
The given paths ‘jruby-src-1.7.11.tar.gz’ do not point to a ruby
installation.

please do let me know am doing correct??

Aside: I would try using rvm again to install this, since your
connectivity is apparently good enough to download all this
stuff :slight_smile:

However – forget that source package. Assuming the binary
package you previously downloaded was a tar.gz file,

  1. pick someplace to unpack it
  2. cd to the bin directory
  3. ln -s jruby ruby

Now you can use the rvm mount command.

still facing the same

jruby-1.7.11/bin/
[ bin]$ ln -s jruby ruby
ln: creating symbolic link ruby' to jruby’: File exists
[ bin]$ rvm mount jruby
The given paths ‘jruby’ do not point to a ruby installation.
[ bin]$ rvm mount …/…/jruby-1.7.11/
The given paths ‘…/…/jruby-1.7.11/’ do not point to a ruby
installation.

HTH,

Hassan S. ------------------------ [email protected]
Hassan Schroeder | about.me
twitter: @hassan

Hassan -

I guess you’d really need to do that with all the JRuby binaries, right?
For example alias irb to jirb and gem to jgem?

  • Keith

On Tue, Dec 9, 2014 at 4:56 PM, Hassan S.
<[email protected]

While I agree this is really an rvm question, I have to correct my
own error:

  1. ln -s jruby ruby

My bad, that’s reversed.

[ bin]$ ln -s jruby ruby
ln: creating symbolic link ruby' to jruby’: File exists

Correct that so there’s a ‘ruby’ symlinked to the ‘jruby’ executable.


Hassan S. ------------------------ [email protected]

twitter: @hassan

On Tue, Dec 9, 2014 at 2:57 PM, Keith B. [email protected]
wrote:

I guess you’d really need to do that with all the JRuby binaries, right?
For example alias irb to jirb and gem to jgem?

Well, actually, the /bin directory of the couple of examples I looked
at includes both ‘irb’ and ‘jirb’, ‘gem’ and ‘jgem’, just not a ruby
as
well as jruby.

But the reason for the ruby → jruby symlink was that the rvm mount
command apparently only believes it’s a ruby installation if there’s a
bin/ruby command available (go figure).

Once that’s there, rvm is happy, the ‘mount’ succeeds, and rvm list
now includes e.g. ext-jruby-1.7.11.


Hassan S. ------------------------ [email protected]

twitter: @hassan