Error Opening Script File Rails
Contents |
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 jruby: no such file or directory -- bundle New issue JRuby error: No such file or directory -- rails (LoadError) #559
No Such File Or Directory -- Script/server (loaderror)
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) mime-types (1.21) minitest (4.6.2) multi_json (1.6.1) polyglot (0.3.3) rack (1.5.2) rack-test (0.6.2) rails (4.0.0.beta1)--------------> rails railties (4.0.0.beta1) rake (10.0.3) rdoc (3.12.2) sprockets (2.9.0) sprockets-rails (2.0.0.rc3) thor (0.17.0) thread_safe (0.1.0) tilt (1.3.4) treetop (1.4.12) tzinfo (0.3.36) JRuby Team member BanzaiMan commented Mar 6, 2013 Is JRuby loading rails from where you think? jruby -S gem which rails Also, see what jruby -Xdebug.scriptResolution=true -S rails says and examine which
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 a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Netbeans and rails error: bin/ruby: No such file or directory — script/rails (LoadError) up vote 3 down vote favorite When I'm trying to launch Rails console on netbeans 7.4 after I create project I get /home/mati/.rvm/rubies/ruby-2.1.0/bin/ruby: No such file https://github.com/jruby/jruby/issues/559 or directory -- script/rails (LoadError) , but this file exists. I was looking here Rails on Netbeans: Uncaught exception: no such file to load -- script/server or script/console but it didn't really help. Is there something else I could try? ruby-on-rails linux netbeans ruby-on-rails-4 netbeans-7 share|improve this question asked Mar 21 '14 at 23:20 mmmm 81751843 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted Create a symbolic link as below on terminal: ln -s ./bin ./script http://stackoverflow.com/questions/22571206/netbeans-and-rails-error-bin-ruby-no-such-file-or-directory-script-rails-l This is because in Rails 4 script directory has been moved to bin. share|improve this answer answered Mar 21 '14 at 23:28 Kirti Thorat♦ 34.9k75284 thanks, that changed something. Now I got 'Could not find gem 'sdoc (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound)' –mmmm Mar 21 '14 at 23:31 Do you have require: false for gem sdoc in Gemfile? –Kirti Thorat♦ Mar 21 '14 at 23:35 yep, I do have that. –mmmm Mar 21 '14 at 23:35 Remove require: false and it should run like a champ. –Kirti Thorat♦ Mar 21 '14 at 23:36 1 I haven't used mysql gem. I would recommend posting another question for installing mysql gem so some mysql expert can assist you. –Kirti Thorat♦ Mar 22 '14 at 0:00 | show 7 more comments Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged ruby-on-rails linux netbeans ruby-on-rails-4 netbeans-7 or ask your own question. asked 2 years ago viewed 4401 times active 2 years ago Linked 1 basic ROR app working in terminal but not in netbeans 5 Rails on Netbeans: Uncaught exception: no such
not start, rails project is not generated Summary: [RAILS] WEBrick does not start, rails project is not generated Status: VERIFIED DUPLICATE of bug 95128 Product: ruby Classification: Unclassified Component: Code Version: 6.x Hardware: PC Linux Priority: P1 (vote) TargetMilestone: 6.x Assigned To: Torbjorn Norbye no such QA Contact: issues@ruby URL: Whiteboard: Keywords: Depends on: Blocks: Show dependency tree /graph Reported: 2007-02-27 15:15 UTC by Tomas Danek Modified: 2007-07-03 14:47 UTC (History) CC List: 0 users See Also: Issue Type: DEFECT Exception Report : Attachments webrick exc. (12.71 KB, no such file text/plain) 2007-02-27 15:31 UTC, Tomas Danek 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 Tomas Danek 2007-02-27 15:15:03 UTC NetBeans IDE Dev (Build 200702261900) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Linux version 2.6.17-10-generic running on i386 cs_CZ (nb); UTF-8 ------------------------------------------------ - downloaded ruby umbrella module from UC, ide restarted - created rails application - WEBrick Web server output tab contains: STARTING Error opening script file: script/server (No such file or directory) RUN COMPLETED - generate rails project output is STARTING /tmp/ud/jruby-0.9.2/bin/rails:17:Warning: require_gem is obsolete. Use gem instead. /tmp/ud/jruby-0.9.2/lib/ruby/site_ruby/1.8/rubygems.rb:301:in `report_activate_error': Could not find RubyGem activesupport (= 1.3.1) (Gem::LoadError) from /tmp/ud/jruby-0.9.2/lib/ruby/site_ruby/1.8/rubygems.rb:239:in `activate' from /tmp/ud/jruby-0.9.2/lib/ruby/site_ruby/1.8/rubygems.rb:264:in `activate' from /tmp/ud/jruby-0.9.2/lib/ruby/site_ruby/1.8/rubygems.rb:76:in `each' from /tmp/ud/jruby-0.9.2/lib/ruby/site_ruby/1.8/rubygems.rb:265:in `activate' from /tmp/ud/jruby-0.9.2/lib/ruby/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_options'