I have tried using the extconf.rb in ruby/ext/opennsl, but I get this:
checking for openssl/ssl.h... no
Any help would be appreciated.
--------------------
# ruby script/server
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:271:in
`require_frameworks': no such file to load -- openssl (RuntimeError)
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:134:in
`process'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in
`send'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in
`run'
from /scratch/usr/local/railstest/config/environment.rb:9
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in
`require'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in
`require'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:84
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from script/server:3
--
Posted via http://www.ruby-forum.com/.
A quick googling gave answer from another forum as
You need openssl-devel library.
So install it first
Here are the next steps:
1. cd /ruby_install_dir/ext/openssl
2. ruby extconf.rb
3. make
4. make install
Sijo
I compiled OpenSSL from the source, so I should have all the headers and
stuff. It seems like Rails can't find it, and I don't know how to tell
it where to look.
> ruby extconf --with-openssl-include=/path/to/openssl/headers --with-
> openssl-lib=/path/to/openssl/libraries
This didn't work.
Thanks for the responses!
When you compiled it, did you use --prefix to specify the install
location? If not it should be /usr/local/lib or something similar.
Once you know where it installed you can add an entry into
/etc/ld.so.conf and run ldconfig. After that your system will know
about the new headers.
--
Greg Donald
http://destiney.com/