Re: Rails on Plesk (missing libraries and gems)

John Lane
Fri, 28 Nov 2008 13:46:40 -0000

Thanks Fred. I arrived at the conclusin that Rails requires that
RubyGems is available. Because I don''t have root access I have
installed
RubyGems with a repository in my home dir. It works - I''ve confirmed
that I can install a gem. I''ve actually now got my own copy of Rails
2.2.2. I thought I''d start by generating a "hello, world"
test app (e.g
by doing "rails testapp"). First, I added rails to my path.

 $ rails -v
 rails 2.2.2

 $ rails testapp
 create
      create  app/controllers
      create  app/helpers
      ...
      create  log/development.log
      create  log/test.log

However, creating a test controller does not work. I get an error

..../rubygems/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:259:in
`require_frameworks'': no such file to load -- openssl (RuntimeError)

Two Questions:

  Why is openssl required for a simple test app that does not use
openssl and can I get around this?

  How can I go about installing the openssl dependencies ?

I am doing this on a server to which I have no root access. I will need
to install any dependencies beneath my home directory. The ruby version
available to me is 1.8.5 and it''s on a server running Plesk with the
following id

  $uname -a
  Linux plesk-host02.plus.net 2.6.18-4-xen-686 #1 SMP Mon Mar 26
21:49:04 UTC 2007 i686 GNU/Linux

I feel that until I can get a basic test app working there is little
point in trying to get my real app up and running.

Thanks for any help.