softlanding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Apr-09 13:00 UTC
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: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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
softlanding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Harrison wrote:> softlanding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---