Error Opening Script File Rubygems
Sign in Pricing Blog Support Search GitHub This repository Watch 174 Star 2,653 Fork 699 jruby/jruby Code Issues 774 Pull requests 28 Projects 2 Wiki Pulse Graphs New issue JRuby error: No such file or directory -- rails (LoadError) #559 Closed vbernabe opened this Issue Mar 5, 2013 · 4 comments Projects None yet Labels None yet Milestone Pre-1.7.5 (Unknow... Assignees No one assigned 2 participants vbernabe commented Mar 5, 2013 I tried to install jruby on my windows machine but keeps on getting an error when I run the command jruby -S rails -v. I've searched around and tried to install different versions of JRuby but still getting the same error. jruby -S rails -v jruby: No such file or directory -- rails (LoadError) Here are some info on my setup: Windows Xp jruby -v jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) Client VM 1.6.0_3-b05 [Windows XP-x86] set GEM_PATH=C:/jruby-1.7.3/lib/ruby set GEM_HOME=C:/jruby-1.7.3/lib/ruby jruby -S gem env RubyGems Environment: RUBYGEMS VERSION: 1.8.24 RUBY VERSION: 1.9.3 (2013-02-21 patchlevel 385) [java] INSTALLATION DIRECTORY: C:/jruby-1.7.3/lib/ruby RUBY EXECUTABLE: C:/jruby-1.7.3/bin/jruby.exe EXECUTABLE DIRECTORY: C:/jruby-1.7.3/lib/ruby/bin RUBYGEMS PLATFORMS: ruby universal-java-1.6 GEM PATHS: C:/jruby-1.7.3/lib/ruby 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: http://rubygems.org/ jruby -S gem install rails --pre --no-rdoc --no-ri .. .. 32 gems installed jruby -S gem list --local *** LOCAL GEMS *** actionmailer (4.0.0.beta1) actionpack (4.0.0.beta1) activemodel (4.0.0.beta1) activerecord (4.0.0.beta1) activerecord-deprecated_finders (0.0.3) activesupport (4.0.0.beta1) arel (4.0.0.beta1) atomic (1.0.1 java) builder (3.1.4) bundler (1.3.1) erubis (2.7.0) hike (1.2.1) i18n (0.6.4) json (1.7.7 java) mail (2.5.3)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is https://github.com/jruby/jruby/issues/559 a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error while installing jruby using rvm up vote 1 down vote favorite 2 I can install jruby on cygwin using rvm, but the jruby gems do not get installed and any attempt http://stackoverflow.com/questions/9495893/error-while-installing-jruby-using-rvm to install gem fails. This is the error I get during installation of jruby, when rvm tries to install default gemset: Building Nailgun jruby-1.6.7 - #installing to /home/salil.wadnerkar/.rvm/rubies/jruby-1.6.7 jruby-1.6.7 - #importing default gemsets (/home/salil.wadnerkar/.rvm/gemsets/) Copying across included gems cygpath: can't convert empty path Error opening script file: C:/cygwin/home/salil.wadnerkar/.rvm/src/jruby-1.6.7/tool/nailgun/home/salil.wadnerkar/.rvm/rubies/jruby-1.6.7/bin/gem (The system cannot find the path specified) Any further attempt to install any gem meets with a similar error: $ which gem /home/salil.wadnerkar/.rvm/rubies/jruby-1.6.7/bin/gem $ gem install rake cygpath: can't convert empty path Fetching: rake-0.9.2.2.gem (100%) ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - C:/home/salil.wadnerkar/.rvm/gems/jruby-1.6.7/cache/rake-0.9.2.2.gem Update: Here is my gem env $ gem env cygpath: can't convert empty path RubyGems Environment: - RUBYGEMS VERSION: 1.8.15 - RUBY VERSION: 1.9.2 (2012-02-22 patchlevel 312) [java] - INSTALLATION DIRECTORY: /home/salil.wadnerkar/.rvm/gems/jruby-1.6.7 - RUBY EXECUTABLE: C:/cygwin/home/salil.wadnerkar/.rvm/rubies/jruby-1.6.7/bin/ jruby.exe - EXECUTABLE DIRECTORY: /home/salil.wadnerkar/.rvm/gems/jruby-1.6.7/bin - RUBYGEMS PLATFORMS: - ruby - universal-java-1.7 - GEM PATHS: - /home/salil.wadnerkar/.rvm/gems/jruby-1.6.7 - /home/salil.wadnerkar/.rvm/gems/jruby-1.6.7:/home/salil.wadnerkar/.rvm/ge ms/jruby-1.6.7@global - GEM CONFIGURATION:
not work on JRuby IRB Summary: 'require' does not work on https://netbeans.org/bugzilla/show_bug.cgi?id=118851 JRuby IRB Status: RESOLVED WONTFIX Product: ruby Classification: Unclassified Component: Testing Version: 6.x Hardware: All All Priority: P2 (vote) TargetMilestone: TBD Assigned To: Torbjorn Norbye QA Contact: http://guides.rubygems.org/faqs/ issues@ruby URL: Whiteboard: Keywords: Duplicates: 118921 (view as bug list) Depends on: Blocks: Show dependency tree /graph Reported: 2007-10-15 06:09 UTC by jim_matt Modified: 2007-10-17 error opening 23:40 UTC (History) CC List: 2 users (show) gsporar pjiricka See Also: Issue Type: DEFECT Exception Report : Attachments Screen shot of installed JRuby Gems (332.04 KB, image/jpeg) 2007-10-15 21:51 UTC, jim_matt Details messages.log NetBeans started with -J-Dorg.netbeans.modules.ruby.rubyproject.execution.ExecutionService.level=300 (20.21 KB, text/plain) 2007-10-16 02:37 UTC, jim_matt Details log file after running 'Hello World' program with error opening script require 'watir' (22.42 KB, text/plain) 2007-10-16 04:04 UTC, jim_matt Details View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description jim_matt 2007-10-15 06:09:00 UTC Product Version: NetBeans IDE Dev (Build 200710120000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Jim\.netbeans\dev 'require' does not work on JRuby IRB For example if you open the IRB window and do a require 'rspec', you get the following error: Welcome to the JRuby IRB Console irb(main):001:0> require 'rspec' LoadError: no such file to load -- rspec from (irb):1:in `binding' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:150:in `eval_input' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:70:in `signal_status' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:147:in `eval_input' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:70:in `each_top_level_statement' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:146:in `loop' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:146:in `catch' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:146:in `eval_input' from C:/Program Files/NetBeans 6.0 200710120000/ruby1/jruby-1.0.1/lib/ruby/1.8/irb.rb:70:in `s
Command Reference RubyGems API RubyGems.org API Run your own gem server Resources Contributing to RubyGems Frequently Asked Questions Plugins Credits More of the “why” and “wtf” than “how”. The RubyGems development team has gotten a lot of support requests over the years, and this is a list of the questions users both new and old that frequently pop up. I installed gems with --user-install and their commands are not available How can I trust Gem code that’s automatically downloaded? Why does require 'some-gem' fail? Why does require return false when loading a file from a gem? We also answer questions on the RubyGems Support site and on IRC in #rubygems. Some of the information you can find on the support site includes: Installing gems with no network Why do I get HTTP Response 302 or 301 when installing a gem? RubyGems Upgrade Issues I installed gems with --user-install and their commands are not available When you use the --user-install option, RubyGems will install the gems to a directory inside your home directory, something like ~/.gem/ruby/1.9.1. The commands provided by the gems you installed will end up in ~/.gem/ruby/1.9.1/bin. For the programs installed there to be available for you, you need to add ~/.gem/ruby/1.9.1/bin to your PATH environment variable. For example, if you use bash you can add that directory to your PATH by adding code like this to your ~/.bashrc file: if which ruby >/dev/null && which gem >/dev/null; then PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH" fi After adding this code to your ~/.bashrc, you need to restart your shell for the changes to take effect. You can do this by opening a new terminal window or by running exec $SHELL in the window you already have open. How can I trust Gem code that’s automatically downloaded? The same way you can trust any other code you install from the net: ultimately, you can’t. You are responsible for knowing the source of the gems that you are using. In a setting where security is critical, you should only use known-good gems, and possibly perform your own security audit on the gem code. The Ruby community is discussing ways to make gem code more secure in the future, using some public-key infrastructure. To see the progress of this discussion, visit the rubygems-trust organization on GitHub. Why does require 'some-gem' fail? Not every library has a strict mapping between the name of the gem and the name of the file you need to require. First you should check to see if the files matc