我发现我可以使用以下任意一条命令成功安装Ruby:
$ rvm reinstall 1.9.3-p327
$ rvm reinstall 1.9.3-p327 --with-openssl-dir=/usr/local
$ rvm reinstall 1.9.3-p327 --with-openssl-dir=/afdlkjasd_not_a_dir
$ rvm reinstall 1.9.3-p327 --with-openssl-dirffadsf=/afdlkjasd_not_a_dir
无论我使用上述哪个命令,我都可以输入以下内容:
$ rvm use 1.9.3-p327
Using /home/clay/rvm/gems/ruby-1.9.3-p327
$ which ruby
/home/clay/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
$ ruby -e "puts require('openssl')"
true
我似乎无论做什么都具有SSL支持。我猜测RVM或Ruby构建过程不介意无效的选项或值。即使我正确输入了
--with-openssl-dir
选项,我也不知道它是否被使用。RVM是否将我的Ruby链接到我想要的OpenSSL库(/usr/local中的那个)?如何确定Ruby编译/链接时使用的是哪个OpenSSL库?
我正在使用Linux Mint 13。