指南针在拱门上失灵

compass fails on arch

运行 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>'

所以在我这边 运行 a 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[=34 设置的=] AUR 包。

那并没有解决问题。有什么想法吗?

通过安装解决 compass via pacgem

命令详情:

  1. 安装pacgem

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

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