Note that there are some explanatory texts on larger screens.

plurals
  1. POcannot load such file -- script/../config/boot (LoadError) after OSX Mavericks
    text
    copied!<p>I was doing development on a ruby on a rails application (v2.3) yesterday and decided to update my iMac to OSX Mavericks. Now, every time I try to run my application locally, I get the following error. Does anyone know whats causing this? </p> <p><strong>Run like this:</strong></p> <pre><code>script/server -e development </code></pre> <p><strong>Error:</strong></p> <pre><code> /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- script/../config/boot (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from script/server:2:in `&lt;main&gt;' </code></pre> <p><strong>script/server (file)</strong></p> <pre><code>#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server' </code></pre> <p><strong>It was working fine before installing OSX Mavericks.</strong></p> <p><strong>Things I Noticed:</strong></p> <ul> <li>the version of ruby installed in now 2.0 (it was v1.8.7 before)</li> </ul> <p>FYI: I'm still fairly new to rails. <br /><br /></p> <p><strong><h1>After Installing RVM:</h1></strong><br /> Ok so I setup RVM and made sure the version of ruby (1.8.7) and rails (2.3.11) are installed and configured as the default. </p> <p>Installed RVM:</p> <pre><code>curl -L https://get.rvm.io | bash -s stable --rails </code></pre> <p>Install Ruby 1.8.7:</p> <pre><code>rvm install ruby-1.8.7-p374 </code></pre> <p>Set v1.8.7 as the default version:</p> <pre><code>rvm --default use 1.8.7 </code></pre> <p>Install Rails v2.3.11:</p> <pre><code>gem install rails -v 2.3.11 </code></pre> <p>Install all the gems from system</p> <pre><code>rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system </code></pre> <p>Now when I run my app, I get the following error: (what am I missing?)</p> <pre><code>=&gt; Booting WEBrick... /Users/imaginationplus/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:53:in `gem_original_require': no such file to load -- haml (MissingSourceFile) from /Users/imaginationplus/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:53:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/plugins/haml/init.rb:5:in `evaluate_init_rb' from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:95:in `evaluate_init_rb' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:91:in `evaluate_init_rb' from ./script/../config/../vendor/rails/railties/lib/rails/plugin.rb:44:in `load' from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in `load_plugins' from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `each' from ./script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:292:in `load_plugins' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:142:in `process' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:97:in `send' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:97:in `run' from /Users/imaginationplus/gitlocal/dfc_workshop/config/environment.rb:14 from /Users/imaginationplus/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:53:in `gem_original_require' from /Users/imaginationplus/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:53:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/railties/lib/commands/servers/webrick.rb:59 from /Users/imaginationplus/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:53:in `gem_original_require' from /Users/imaginationplus/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:53:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require' from /Users/imaginationplus/gitlocal/dfc_workshop/vendor/rails/railties/lib/commands/server.rb:39 from script/server:3:in `require' from script/server:3 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload