首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

in `require': no such file to load - openssl (LoadError)

2012-09-13 
in `require: no such file to load -- openssl (LoadError)解决方法如下:下载1.9.2源文件,执行以下命令?

in `require': no such file to load -- openssl (LoadError)

解决方法如下:

下载1.9.2源文件,执行以下命令

?$ cd ~/Downloads/ruby-1.9.2-p180/ext/openssl (assuming you extracted the ruby tar to ~/Downloads)$ ruby extconf.rb && make && sudo make install

?

If you’ve compiled Ruby from source, you might get this error when executing?script/console:

?

/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)

?

One way of fixing this is to compile readline, which is distributed along with the Ruby source:

?

 cd /opt/src/ruby-1.8.5-p2/ext/readline ruby extconf.rb make sudo make install

热点排行