我使用了solution由 Radulescu 编写,用于使用 ruby 1.9.3-p194 安装 openssl。然后,我试图要求 openssl,但我得到了错误的返回。为什么?
bla git:(master) rails c
Loading development environment (Rails 3.2.6)
[1] pry(main)> require 'openssl'
=> false
最佳答案
这仅仅意味着库已经被加载。如果您尝试输入 OpenSSL
,您会看到它位于您的命名空间中。
相比之下,如果您尝试加载不存在的库,则会出现异常:
1.9.3p327 :003 > require 'does-not-exist'
LoadError: cannot load such file -- does-not-exist
关于ruby-on-rails-3 - 如何通过rails控制台加载openssl?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16170348/