指南针在拱门上失败

时间:2017-01-28 13:28:19

标签: ruby gruntjs archlinux compass

运行用于工作的grunt serve我收到此错误消息。

Running "compass:server" (compass) task Warning: Command failed: compass --version /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/definition.rb:179:in `rescue in specs': Your bundle is locked to chunky_png (1.3.4), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of chunky_png (1.3.4) has removed it. You'll need to update your bundle to a different version of chunky_png (1.3.4) that hasn't been removed in order to install. (Bundler::GemNotFound) from /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/definition.rb:173:in `specs' from /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/definition.rb:233:in `specs_for' from /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/definition.rb:222:in `requested_specs' from /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:118:in `block in definition_method' from /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:19:in `setup' from /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler.rb:99:in `setup' from /usr/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/setup.rb:20:in `<top (required)>' from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require' from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require' from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require' from /usr/bin/compass:6:in `<main>'

所以,我跑了一个compass --version,我得到了同样的错误Your bundle is locked to chunky_png (1.3.4),等。

尝试bundle install似乎有点无用......

$ bundle install Could not locate Gemfile or .bundle/ directory

所以我尝试重新安装ruby-compass,因为which compass已将我发送到/usr/bin/compass,这是由 ruby​​-compass AUR包设置的那个。

确实解决了这个问题。有什么想法?

1 个答案:

答案 0 :(得分:0)

通过compass

安装pacgem解决了问题

命令的详细信息:

  1. 安装pacgem
  2. cd ~/devel/aur.archlinux.org/ # or where ever you used to put your AUR git clone https://aur.archlinux.org/pacgem.git cd pacgem cat PKGBUILD # at this point, it is recommended to personally check to PKGBUILD makepkg -si 并回答y所有问题

    1. 安装compass
    2. pacgem compass 并回答y所有问题。它将安装所需的依赖项。