2014-11-06 39 views
1

我是SASS和CodeKit的新手,正在尝试编译SASS文件。该项目是一个Drupal欧米茄4分主题。我正在运行安装了所有Ruby Gems的Mac OSX 10.10,并试图找出挂起的位置,这不会让CodeKit编译该文件。任何想法,将不胜感激这是我的错误:CodeKit 2尝试编译时编译错误欧米茄4 Drupal站点的SASS文件

引发ArgumentError上线[“55”] /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0的0.0/RubyGems的/ core_ext/kernel_require.rb:找不到HOME环境 - 与--trace扩大'〜” 运行看到完整回溯

这是config.rb文件

require 'compass/import-once/activate' 
# Require any additional compass plugins here. 
require '~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/' 
# require '~/Library/Ruby/Gems/2.0.0/gems/' 

# Set this to the root of your project when deployed: 
http_path = "" 
css_dir = "css" 
sass_dir = "sass" 
images_dir = "images" 
javascripts_dir = "js" 
fonts_dir = "fonts" 

output_style = :nested 

# To enable relative paths to assets via compass helper functions. Uncomment: 
# relative_assets = true 

# To disable debugging comments that display the original location of your selectors. Uncomment: 
# line_comments = false 
color_output = false 

这是SCSS文件我想要编译

// Import external libraries. 
@import "compass"; 
@import "breakpoint"; 
@import "singularitygs"; 
@import "toolkit"; 

// Import variables, abstractions, base styles and components using globbing. 
// 
// Globbing will always import files alphabetically. Optimally, all your 
// components should be self-contained and explicit enough to not have any 
// contained styles leak into unrelated components: The import order should not 
// affect the result. 
// 
// If there are variables, functions or mixins that depend on each other and 
// therefore need to be imported in a specific order you can import them 
// directly. Variables-, function- or mixin providing partials should never 
// output any styles themselves: Importing them multiple times to resolve 
// dependencies shouldn't be a problem. 
@import "variables/**/*"; 
@import "abstractions/**/*"; 
@import "base/**/*"; 
@import "components/**/*"; 
+0

设置HOME环境变量后出现新错误。 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb的行[“55”]上的LoadError:无法加载此文件 - 〜/ .rbenv/versions/2.1.3/lib/ruby​​/gems/2.1.0/gems/ 用--trace运行可以看到完整的回溯 – nepennington 2014-11-06 20:24:23

回答

1

尝试设置HOME环境变量在config.rb文件。

ENV['HOME'] = "/Users/YOUR_OS_USER_NAME" 
+0

谢谢穆罕默德。我用我的用户名插入了代码。这次我得到了一个不同的错误。此错误代码是否提供洞察力? – nepennington 2014-11-06 20:23:18