Rails on westhost.com

I have an account on westhost, but they are at rails version 1.2.3
I did a 'gem install rails -v=2.2.2
That seem to work.
The output of gem list is:

*** LOCAL GEMS ***

actionmailer (2.2.2, 1.3.3)
actionpack (2.2.2, 1.13.3)
actionwebservice (1.2.3)
activerecord (2.2.2, 1.15.3)
activeresource (2.2.2)
activesupport (2.2.2, 1.4.2)
BlueCloth (1.0.0)
rails (2.2.2, 1.2.3)
rake (0.8.4, 0.7.2)
RedCloth (3.0.4)
rubygems-update (1.3.1)
sources (0.0.1)

I can create an app just fine:
rails demoapp

But when I create a controller I get the following error:
$ ruby script/generate controller say
/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:259:in require_frameworks': no such file to load -- openssl (RuntimeError) from /usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/ lib/initializer.rb:133:inprocess’
from /usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/
lib/initializer.rb:112:in send' from /usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/ lib/initializer.rb:112:inrun’
from /var/www/demoapp/config/environment.rb:13
from /usr/local/ruby-1.8.6/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in gem_original_require' from /usr/local/ruby-1.8.6/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:inrequire’
from /usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/
lib/commands/generate.rb:1
from /usr/local/ruby-1.8.6/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in gem_original_require' from /usr/local/ruby-1.8.6/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:inrequire’
from script/generate:3

Any ideas?

thanks

[email protected] wrote:

I can create an app just fine:
rails demoapp

But when I create a controller I get the following error:
$ ruby script/generate controller say
/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:259:in `require_frameworks’: no such file to load –
openssl (RuntimeError)

It would appear you don’t have (a compatible version of) openssl
available to ruby. Whether this is a gem or something external I’m
afraid I’m not too sure.

HTH

Matt

Matt H. wrote:

[email protected] wrote:

I can create an app just fine:
rails demoapp

But when I create a controller I get the following error:
$ ruby script/generate controller say
/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:259:in `require_frameworks’: no such file to load –
openssl (RuntimeError)

It would appear you don’t have (a compatible version of) openssl
available to ruby. Whether this is a gem or something external I’m
afraid I’m not too sure.

The Ruby OpenSSL bindings are not a gem but bundled with Ruby itself.
You should ask your host to install the OpenSSL bindings or to recompile
Ruby with the OpenSSL development libraries installed.


Roderick van Domburg
http://www.railscluster.nl