小编com*_*ons的帖子

Sass :: SyntaxError:导入未找到或不可读的文件:bootstrap-sprockets

我突然在开发和部署生产中遇到此错误.

custom.css.scss

@import "bootstrap-sprockets";
@import "bootstrap";
Run Code Online (Sandbox Code Playgroud)

错误(在生产中)

rake aborted!
Sass::SyntaxError: File to import not found or unreadable: bootstrap-sprockets.
Load paths:
/srv/www/myapp/releases/20141001060418/app/assets/images
/srv/www/myapp/releases/20141001060418/app/assets/javascripts
/srv/www/myapp/releases/20141001060418/app/assets/stylesheets
/srv/www/myapp/releases/20141001060418/vendor/assets/javascripts
/srv/www/myapp/releases/20141001060418/vendor/assets/stylesheets
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails twitter-bootstrap

53
推荐指数
5
解决办法
6万
查看次数

在ubuntu 14.04上安装rmagick gem

我正在尝试在OpsWorks上部署应用程序,但是安装rmagick gem时存在问题.我有以下操作系统包:

libmagickwand-dev imagemagick libmagickcore-dev

以下是部署期间出错的日志文件:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 0.0.0. Can't find Magick-config in /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails aws-opsworks ubuntu-14.04

13
推荐指数
2
解决办法
1万
查看次数