[EMAIL PROTECTED] wrote:
> ruby is not recognizing the openssl path.
> 
> while compiling ruby 1.8.7
> ./configure --with-openssl-dir=$OPEN_SSL_HOME
> 
> below link might help
> http://blog.mondragon.cc/articles/2007/02/03/compiling-ruby-1-8-5-w-openssl-on-debian-etch-testing-and-freebsd-in-home
> 
> -a

Maybe 1.8.7 is more problematic.
But as a debian user who uses ruby 1.8.6, I compile/install ruby by 
default to /usr/local and avoid any distro ruby

Just make sure you have the source packages first:
% aptitude install libreadline-dev
% aptitude install zlib1g-dev
% aptitude install libssl-dev
% aptitude install libsqlite3-dev
(aptitude replaces apt-get).
Similar thing for redhat/centos; the package names are a little 
different.

Then unpack ruby in /usr/local/src and do
% ./configure && make
% sudo make install (run 'make install' as root)
And test:
irb> require 'openssl'

Warning: you may have trouble with rmagick.  So either do your own
wrapper or maybe try the 'mini_magick' gem.

If you want to play with 1.9 or something, just change the prefix to 
install somewhere else:
% ./configure --prefix=/home/user_name/ruby-1.9/
or some such.

Daniel
-- 
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to