【发布时间】:2016-02-01 05:11:30
【问题描述】:
更新: 现在我已经安装了 RedCloth 的所有依赖项,当我运行旧的 gemfile 时,它说我需要使用早期版本的 bundler 来运行它 1.0.10 而不是 1.11.2,这是我需要的 RedCloth 版本。这是我的一些错误
这是文件
source 'https://rubygems.org'
gem install Redcloth -v '4.2.9'
这给了我这个错误
[!] There was an error parsing `Gemfile`: compile error - syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
gem install Redcloth -v '4.2.9'
^. Bundler cannot continue.
# from /Users/adamalloy/adamralloy.github.io/Gemfile:2
# -------------------------------------------
# source 'https://rubygems.org'
gem install Redcloth -v '4.2.9'
# -------------------------------------------
我应该如何格式化?让我感到困惑的是,我没有收到来自
的错误source 'https://rubygems.org'
gem 'github-pages'
这是我应该运行的设置 jekyll。 bundler 会安装 gem 一段时间,但在需要安装 Redcloth 时遇到错误。这是我第一次使用 ruby,所以我很困惑。
【问题讨论】: