Forum: Ruby on Rails Rails on westhost.com

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2009-04-09 17:07
(Received via mailing list)
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:in `process'
        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:in `run'
        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:in `require'
        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:in `require'
        from script/generate:3

Any ideas?

thanks
Matt H. (Guest)
on 2009-04-09 20:16
(Received via mailing list)
removed_email_address@domain.invalid 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
Roderick v. (Guest)
on 2009-04-10 14:19
Matt H. wrote:
> removed_email_address@domain.invalid 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
This topic is locked and can not be replied to.