title: Rails 3.2.6 install on Centos6
body: <p>I did the following steps in order, but have issues running webrick</p>
  
  <p>I have a centos 6 install</p>
  
  <p>Step 1: 
  <a href="http://blog.jeffcosta.com/2011/07/22/install-ruby-version-manager-rvm-on-centos-6/" rel="nofollow">http://blog.jeffcosta.com/2011/07/22/install-ruby-version-manager-rvm-on-centos-6/</a></p>
  
  <p>Step 2:
  server-world.info/en/note?os=CentOS_6&amp;p=mysql</p>
  
  <p>Step 3:
  sudo install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
  gem install -y mysql -- --with-mysql-config=/usr/bin/mysql_config</p>
  
  <p>It installed all the gems without any issues.</p>
  
  <p>But when I load webrick from the application which was created using <br>
  <strong> rails new simple_cms -d mysql </strong></p>
  
  <p>Result:
  create<br>
        create  README.rdoc <br>
        create  Rakefile <br>
        create  config.ru <br>
        create  .gitignore <br>
        create  Gemfile <br>
        create  app <br>
        create  app/assets/images/rails.png <br>
        create  app/assets/javascripts/application.js <br>
        create  app/assets/stylesheets/application.css <br>
        create  app/controllers/application_controller.rb <br>
        create  app/helpers/application_helper.rb <br>
        create  app/mailers <br>
        create  app/models <br>
        create  app/views/layouts/application.html.erb <br>
        create  app/mailers/.gitkeep <br>
        create  app/models/.gitkeep <br>
        create  config <br>
        create  config/routes.rb <br>
        create  config/application.rb <br>
        create  config/environment.rb <br>
        create  config/environments <br>
        create  config/environments/development.rb <br>
        create  config/environments/production.rb <br>
        create  config/environments/test.rb <br>
        create  config/initializers <br>
        create  config/initializers/backtrace_silencers.rb <br>
        create  config/initializers/inflections.rb <br>
        create  config/initializers/mime_types.rb <br>
        create  config/initializers/secret_token.rb <br>
        create  config/initializers/session_store.rb <br>
        create  config/initializers/wrap_parameters.rb <br>
        create  config/locales <br>
        create  config/locales/en.yml <br>
        create  config/boot.rb <br>
        create  config/database.yml <br>
        create  db <br>
        create  db/seeds.rb <br>
        create  doc <br>
        create  doc/README_FOR_APP <br>
        create  lib <br>
        create  lib/tasks <br>
        create  lib/tasks/.gitkeep <br>
        create  lib/assets <br>
        create  lib/assets/.gitkeep <br>
        create  log <br>
        create  log/.gitkeep <br>
        create  public <br>
        create  public/404.html <br>
        create  public/422.html <br>
        create  public/500.html <br>
        create  public/favicon.ico <br>
        create  public/index.html <br>
        create  public/robots.txt <br>
        create  script <br>
        create  script/rails <br>
        create  test/fixtures <br>
        create  test/fixtures/.gitkeep <br>
        create  test/functional <br>
        create  test/functional/.gitkeep <br>
        create  test/integration <br>
        create  test/integration/.gitkeep <br>
        create  test/unit <br>
        create  test/unit/.gitkeep <br>
        create  test/performance/browsing_test.rb <br>
        create  test/test_helper.rb <br>
        create  tmp/cache <br>
        create  tmp/cache/assets <br>
        create  vendor/assets/javascripts <br>
        create  vendor/assets/javascripts/.gitkeep <br>
        create  vendor/assets/stylesheets <br>
        create  vendor/assets/stylesheets/.gitkeep <br>
        create  vendor/plugins <br>
        create  vendor/plugins/.gitkeep <br>
           run  bundle install <br>
  Fetching gem metadata from [https://rubygems.org/]. <br>
  Could not load OpenSSL.
  You must recompile Ruby with OpenSSL support or change the sources in your
  Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL
  using RVM are available at rvm.io/packages/openssl.
  <br></p>
  
  <p><strong> I get the following error when running rails server: </strong></p>
  
  <p>/usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in <code>autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs.rb:5:in</code>' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs.rb:4:in <code>&lt;top (required)&gt;' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in</code>require' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in <code>&lt;top (required)&gt;' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in</code>require' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in <code>&lt;top (required)&gt;' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in</code>require' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in <code>&lt;top (required)&gt;' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in</code>require' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in <code>block (2 levels) in require' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in</code>each' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in <code>block in require' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in</code>each' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in <code>require' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:119:in</code>require' <br>
      from /root/railsdev/simple_cms/config/application.rb:7:in <code>&lt;top (required)&gt;'
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:53:in</code>require' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:53:in <code>block in &lt;top (required)&gt;' &lt;br&gt;
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:50:in</code>tap' <br>
      from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:50:in <code>&lt;top (required)&gt;' &lt;br&gt;
      from script/rails:6:in</code>require' <br>
      from script/rails:6:in `' <br></p>
  
  <p>How do i fix this?
  <br>
  <strong> rvm info gives the following result </strong></p>
  
  <p>ruby-1.9.3-p194:</p>
  
  <p>system:
      uname:       "Linux localhost.localdomain 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux"
      bash:        "/bin/bash => GNU bash, version 4.1.2(1)-release (i386-redhat-linux-gnu)"
      zsh:         " => not installed"</p>
  
  <p>rvm:
      version:      "rvm 1.14.7 (stable) by Wayne E. Seguin , Michal Papis  [https://rvm.io/]"
      updated:      "1 hour 22 minutes 29 seconds ago"</p>
  
  <p>ruby:
      interpreter:  "ruby"
      version:      "1.9.3p194"
      date:         "2012-04-20"
      platform:     "i686-linux"
      patchlevel:   "2012-04-20 revision 35410"
      full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]"</p>
  
  <p>homes:
      gem:          "/usr/local/rvm/gems/ruby-1.9.3-p194"
      ruby:         "/usr/local/rvm/rubies/ruby-1.9.3-p194"</p>
  
  <p>binaries:
      ruby:         "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby"
      irb:          "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/irb"
      gem:          "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/gem"
      rake:         "/usr/local/rvm/gems/ruby-1.9.3-p194/bin/rake"</p>
  
  <p>environment:
      PATH:         "/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin"
      GEM_HOME:     "/usr/local/rvm/gems/ruby-1.9.3-p194"
      GEM_PATH:     "/usr/local/rvm/gems/ruby-1.9.3-p194:/usr/local/rvm/gems/ruby-1.9.3-p194@global"
      MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.3-p194"
      IRBRC:        "/usr/local/rvm/rubies/ruby-1.9.3-p194/.irbrc"
      RUBYOPT:      ""
      gemset:       ""</p>