无法创建第一个 Rails 项目 [英] unable to create a first rails project
问题描述
我是 rubyonrails 的新手,我已经安装了 rubyonrails 3.2.6,我通过输入 rails new demo 创建了一个新项目,我收到以下错误
iam new to rubyonrails, i have installed rubyonrails 3.2.6, i have created a new project by typing rails new demo iam getting following error
从 https://rubygems.org/ 获取 gem 元数据.无法加载 OpenSSL.您必须使用 OpenSSL 支持重新编译 Ruby 或更改您的源代码从https"到http"的 Gemfile.使用 OpenSSL 编译的说明可以在 rvm.io/packages/openssl 上使用 RVM.
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.
请帮助我创建我的第一个 Rails 项目
please help me in creating my first rails project
谢谢赛克里希纳
推荐答案
这可能不是一个好的做法,但我遇到了同样的问题.
我通过更改 Gemfile 中的第一行来解决它:
This might not be good practice, but I had this same issue.
I solved it by changing the first line in my Gemfile from:
source 'https://rubygems.org'
到:
source 'http://rubygems.org'
这篇关于无法创建第一个 Rails 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!