For installing ruby on Debian-like OS, make sure you purge all the
ruby related packages you have installed before from apt-get/aptitude,
then install libopenssl-dev, libsqlite-dev, libxslt1-dev, libxml2-dev
and libreadline-dev packages (Note: I'm not sure the exact name of the
packages, so you must search the packages to get the exact name), then
install RVM following the instruction on it's website, and install
ruby by doing:
rvm install ruby-1.9.3
This will download, configure and compile it with preconfigured
options which will make use of the libraries you installed before.
After you have done this, you can start using ruby and installing gem
by the gem command.
Hope this help.
Cheers!
[1]https://rvm.beginrescueend.com/rvm
[2]https://github.com/sstephenson/rbenv
--
Leonardo Mateo.
There's no place like ~
>
> I can see that openssl is included. So why can't it find it?
The only thing I can think of is the dev files for openssl are either
not properly installed or installed on a non-standard place and you
have to specify the configure process where to find them before
compiling Ruby.
But all this sounds weird for me, since I've installed Ruby several
times on Debian-like distros with RVM (even when I'm not a Debian-like
user) and never had this issue.
If it's still not working, can you paste here where your openssl files
are located?
Cheers
This is weird, since your openssl dev files are in the standard
location and should be found.
The last thing I can suggest is to remove the ruby installation with:
rvm remove ruby-1.9.3
Then, reinstall it with:
rvm install ruby-1.9.3
If this doesn't help, check the file ~/.rvm/log/ruby-1.9.3-p0/make.log
for mentions to openssl. You should find there something like:
[kandalf@funkymonkey ruby-1.9.3-p0]$ grep openssl make.log
configuring openssl
make[2]: Entering directory `/home/kandalf/.rvm/src/ruby-1.9.3-p0/ext/openssl'
compiling openssl_missing.c
linking shared-object openssl.so
installing default openssl libraries
make[2]: Leaving directory `/home/kandalf/.rvm/src/ruby-1.9.3-p0/ext/openssl'
The output above is the one from my laptop.
Mehdi
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>