如何在Windows上调试Middleman 3 gem安装问题。 [英] How to debug Middleman 3 gem installation issues on Windows.

查看:95
本文介绍了如何在Windows上调试Middleman 3 gem安装问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 8机器上安装了Middleman 3.1.5 ,如上所述,以及Ruby使用rubyinstaller- 2.0.0-p247.exe,并按照步骤成功开始。我现在正在构建我的第一个网站,并取得了一些成功(编写了一些页面,启动服务器,构建网站),但是当我尝试使用一些高级第三方组件(如 middleman-navigation middleman-deploy 我似乎打了一堵墙。起初我自己想到了一个错误,但随着越来越多的事情似乎越来越多,我想弄清楚我的设置有什么问题,或者至少确认没有任何问题。

I have installed Middleman 3.1.5 as described on my Windows 8 Machnine along with Ruby using rubyinstaller-2.0.0-p247.exe and followed the steps to get started with success. I am now building my first site with some success (coding some pages, starting the server, building the site) but when I try to use some advanced third party components like middleman-navigation or middleman-deploy I seem to hit a wall. At first I thought of a mistake by myself but as more and more things seem to be buggy I want to figure out what is wrong with my setup or at least confirm nothing is.

一些例子的输出对我来说似乎有些麻烦:

Some example output that seems buggy to me:

$ middleman help
WARN: Unresolved specs during Gem::Specification.reset:
  rack (>= 1.0, >= 1.4.5)
  thor (< 2.0, >= 0.15.2)
  activesupport (~> 3.2.6)
  listen (~> 1.2.2)
  i18n (~> 0.6.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Tasks:
...

当我尝试安装 middleman-deploy ,加入 gemmiddleman-deploy到我的Gemfile并运行 bundle install ,没有任何迹象表明有任何改变:

When i try to install middleman-deploy as described, adding gem "middleman-deploy" to my Gemfile and run bundle install there is no indication that anything changed:

$ bundle install
Using i18n (0.6.5)
Using multi_json (1.8.0)
Using activesupport (3.2.14)
Using chunky_png (1.2.8)
Using coffee-script-source (1.6.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using fssm (0.2.10)
Using sass (3.2.10)
Using compass (0.12.2)
Using eventmachine (1.0.3)
Using http_parser.rb (0.5.3)
Using em-websocket (0.5.0)
Using ffi (1.9.0)
Using tilt (1.3.7)
Using haml (4.0.3)
Using hike (1.2.3)
Using kramdown (1.1.0)
Using rb-fsevent (0.9.3)
Using rb-inotify (0.9.2)
Using rb-kqueue (0.2.0)
Using listen (1.2.3)
Using bundler (1.3.5)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using thor (0.18.1)
Using middleman-core (3.1.5)
Using middleman-more (3.1.5)
Using sprockets (2.10.0)
Using sprockets-helpers (1.0.1)
Using sprockets-sass (1.0.1)
Using middleman-sprockets (3.1.4)
Using uglifier (2.1.2)
Using middleman (3.1.5)
Using rack-livereload (0.3.15)
Using middleman-livereload (3.1.0)
Using wdm (0.1.0)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

然后我在config.rb中添加一个配置并尝试使用gem而没有成功:

I then add a configuration to config.rb and try to use the gem without success:

$ middleman deploy
WARN: Unresolved specs during Gem::Specification.reset:
      rack (>= 1.0, >= 1.4.5)
      thor (< 2.0, >= 0.15.2)
      multi_json (~> 1.0)
      rb-inotify (>= 0.9)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
There's no 'deploy' command for Middleman. Try 'middleman help' for a list of commands.

请帮我缩小这些问题的原因。

Please help me to narrow down the cause of these issues.

推荐答案

在Gem :: Specification.reset期间,我有一个类似的 WARN:Unresolved specs:消息,当我做 middleman build 我在Mac上使用rvm与 ruby​​ 2.0.0p247(2013-06-27 revision 41674 )[x86_64-darwin12.3.0] 。我在GitHub上发现了一个类似WARN的问题发布 ,修复方法是运行 gem regenerate_binstubs 。它为我清除了WARN。我不确定具体做了什么,但它清除了rubygems-bundler的一些问题。

I had a similar WARN: Unresolved specs during Gem::Specification.reset: message when I did middleman build I'm on a Mac using rvm with ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0]. I found an issue post on GitHub with a similar WARN and the fix was to run gem regenerate_binstubs. It cleared the WARN for me. I'm not sure exactly what that does but it clears up a few issues with rubygems-bundler.

这篇关于如何在Windows上调试Middleman 3 gem安装问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆