ruby使用的是1.9.3-p362 自己编译安装的:configure && make && make install
Rails使用的是3.2.11
在创建新项目时报错:
$:rails new demo
run bundle install
Fetching gem metadata from https://rubygems.org/.
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL
using RVM are available at rvm.io/packages/openssl.
修改demo/Gemfile第一行后重新创建项目,项目创建成功
source 'https://rubygems.org' --> source 'https://rubygems.org'
$:cd demo
$:rails server `require’: cannot load such file — openssl (LoadError)” 处理办法:先安装libssl-dev:
1 |
在尝试使用Ruby 1.9.3-p362和Rails 3.2.11创建新项目时,遇到由于缺少OpenSSL支持导致的错误。通过将Gemfile中的源从'https'更改为'http',或者重新编译Ruby并启用OpenSSL支持,可以解决此问题。在修改Gemfile后,项目成功创建。
最低0.47元/天 解锁文章
1487

被折叠的 条评论
为什么被折叠?



