Has anyone been able to install and use JRuby on Cygwin via RVM? If so, how? I'm able to install RVM and JRuby on Cygwin, but am unable to install any gems. The issue seems to be with path settings.
PATH
/home/Ari/.rvm/gems/jruby-1.7.4/bin:/home/Ari/.rvm/gems/jruby-1.7.4@global/bin:/home/Ari/.rvm/rubies/jruby-1.7.4/bin:/home/Ari/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/home/Ari/bin
Gem Env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2013-05-16 patchlevel 392) [java]
- INSTALLATION DIRECTORY: /home/Ari/.rvm/gems/jruby-1.7.4
RUBY EXECUTABLE: C:/Cygwin/home/Ari/.rvm/rubies/jruby-1.7.4/bin/jruby.exe
EXECUTABLE DIRECTORY: /home/Ari/.rvm/gems/jruby-1.7.4/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-java-1.7
GEM PATHS:
- /home/Ari/.rvm/gems/jruby-1.7.4
- /home/Ari/.rvm/gems/jruby-1.7.4:/home/Ari/.rvm/gems/jruby-1.7.4@global
GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--no-rdoc --no-ri --env-shebang"
- "update" => "--no-rdoc --no-ri --env-shebang"
- REMOTE SOURCES:
Gem Installation Command & Error Message
jruby -S gem install jruby-lint
Fetching: tins-0.8.2.gem (100%)
ERROR: While executing gem ... (Errno::ENOENT)No such file or directory - C:/home/Ari/.rvm/gems/jruby-1.7.4/cache/tins-0.8.2.gem
echo $PATH; gem env
– mpapisC:/home/Ari/.rvm/gems/jruby-1.7.4/cache
exist? – mpapisC:/home/Ari/...
does not exist and therein lies the problem.$HOME
is set to/home/Ari
, where the root is/cygdrive/c/Cygwin
orC:/Cygwin
. But RVM prependsC:/
rather than one of the two aforementioned root paths. – Arirvm use jruby
results in:Using /home/Ari/.rvm/gems/jruby-1.7.4
. And sowhich jruby
yields:/home/Ari/.rvm/rubies/jruby-1.7.4/bin/jruby
– Ari