Note that there are some explanatory texts on larger screens.

plurals
  1. POPassenger on Bluehost doesn't see the correct Ruby version
    primarykey
    data
    text
    <p>I followed number of instruction how to install latest ruby versions on Bluehost, and managed to get Ruby-2.0.0-p195 with Rails-4.0.0-rc1. Pretty much I get full functionality with ability to run irb and download gem files.</p> <pre><code>bash [~/rails/sample/config]# ruby -v ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux] bash [~/rails/sample/config]# rails -v Rails 4.0.0.rc1 bash [~/rails/sample/config]# which ruby /home6/username/ruby/bin/ruby bash [~/rails/sample/config]# which rails /home6/username/ruby/gems/bin/rails </code></pre> <p>I was able to create an empty application just to test if it runs. My .htaccess file loos like this:</p> <pre><code>bash [~/rails/sample/config]# more ~/www/sample/.htaccess Options -MultiViews PassengerResolveSymlinksInDocumentRoot on #Set this to whatever environment you'll be running in RailsEnv production RackBaseURI / PassengerAppRoot /home6/username/rails/sample SetEnv GEM_HOME /home6/username/ruby/gems bash [~/rails/sample/config]# </code></pre> <p>My .bashrc file looks like this:</p> <pre><code>bash [~]# more ~/.bashrc # .bashrc export GEM_HOME=$HOME/ruby/gems export GEM_PATH=$GEM_HOME:/usr/lib64/ruby/gem/1.8 export GEM_CACHE=$GEM_HOME/cache export PATH=$HOME/ruby/gems/bin:$PATH export PATH=$HOME/ruby/bin:$PATH export PATH=$HOME/node/bin:$PATH </code></pre> <p>When I visit my page (www.somedomain.com/sample) I get following error with passenger:</p> <pre><code>Ruby (Rack) application could not be started The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message can be found below. To solve this problem, please follow any instructions in the error message. Error message: Rails 4 prefers to run on Ruby 2.0. You're running ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, uby Enterprise Edition 2012.02 Please upgrade to Ruby 1.9.3 or newer to continue. Application root: /home6/username/rails/sample Backtrace: 0 /home6/username/ruby/gems/gems/railties-4.0.0.rc1/lib/rails/ruby_version_check.rb Line 3 in `abort' 1 /home6/username/ruby/gems/gems/railties-4.0.0.rc1/lib/rails/ruby_version_check.rb Line 3 2 /home6/username/ruby/gems/gems/railties-4.0.0.rc1/lib/rails.rb Line 1 in `require' 3 /home6/username/ruby/gems/gems/railties-4.0.0.rc1/lib/rails.rb Line 1 4 /home6/username/ruby/gems/gems/railties-4.0.0.rc1/lib/rails/all.rb Line 1 in `require' 5 /home6/username/ruby/gems/gems/railties-4.0.0.rc1/lib/rails/all.rb Line 1 6 /home6/username/rails/sample/config/application.rb Line 3 in `require' 7 /home6/username/rails/sample/config/application.rb Line 3 8 /home6/username/rails/sample/config/environment.rb Line 2 in `require' 9 /home6/username/rails/sample/config/environment.rb Line 2 10 config.ru Line 3 in `require' 11 config.ru Line 3 12 /home6/username/ruby/gems/gems/rack-1.5.2/lib/rack/builder.rb Line 55 in `instance_eval' 13 /home6/username/ruby/gems/gems/rack-1.5.2/lib/rack/builder.rb Line 55 in `initialize' 14 config.ru Line 1 in `new' 15 config.ru Line 1 </code></pre> <p>Why the passenger is still looking for an old ruby and doesn't see the new installation? Or is it the rails issue? Is there a way to make it use the right one? Did I miss something somewhere?</p> <p>Any help would be appreciated.</p> <p>Pavel.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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