1

我正在尝试使用这个 jekyll 模板(https://themeforest.net/item/toile-responsive-jekyll-theme-for-bloggers-and-writers/23079570)建立一个新网站。

但是,当我运行命令“bundle install”时,我得到了这个代码错误:

Installing http_parser.rb 0.6.0 with native extensions
Gem::InstallError: The 'http_parser.rb' native gem requires installed 
build
tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occurred while installing http_parser.rb (0.6.0), and Bundler 
cannot
continue.
Make sure that `gem install http_parser.rb -v '0.6.0' --source
'https://rubygems.org/'` succeeds before bundling.

能否请你帮忙 ?:)

在此先感谢社区!

Ps:我不是开发人员,只是一个好奇且有动力的人试图使这个模板工作。

我仔细按照此处报告的“正确”安装:http: //jekyll-windows.juthilo.com/1-ruby-and-devkit/

此外,我可以在我的 C: 中看到 DevKit 的配置文件,并且路径似乎还可以,所以我不明白。

PS C:\Users\Matthis\Desktop\EtoileOK\etoile> bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using public_suffix 3.0.3
Using addressable 2.5.2
Using bundler 2.0.1
Using colorator 1.1.0
Using concurrent-ruby 1.1.4
Using eventmachine 1.2.7 (x64-mingw32)
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Gem::InstallError: The 'http_parser.rb' native gem requires installed 
build
tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

An error occurred while installing http_parser.rb (0.6.0), and Bundler 
cannot
continue.
Make sure that `gem install http_parser.rb -v '0.6.0' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
 jekyll-livereload was resolved to 0.2.2, which depends on
em-websocket was resolved to 0.5.1, which depends on
  http_parser.rb
PS C:\Users\Matthis\Desktop\EtoileOK\etoile>

我只是想了解如何解决这个问题,这样我就可以开始在我的个人网站上工作了:)

在此先感谢社区!;)

马特

4

0 回答 0