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.
0df43be5f1da93ff571ed25ec38c0c0e?d=identicon&s=25 softlanding@gmail.com (Guest)
on 2009-04-09 15: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
8fa0f5c2bf8ad238baa4e20cb0360ebd?d=identicon&s=25 Matt Harrison (iwasinnamuknow)
on 2009-04-09 18:16
(Received via mailing list)
softlanding@gmail.com 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
4375b4aca04b8d72482fd409fb6d0b47?d=identicon&s=25 Roderick van Domburg (roderickvd)
on 2009-04-10 12:19
Matt Harrison wrote:
> softlanding@gmail.com 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.