Ruby 尝试为Omega 4 Drupal站点编译SASS文件时出现CodeKit 2编译错误

Ruby 尝试为Omega 4 Drupal站点编译SASS文件时出现CodeKit 2编译错误,ruby,drupal,drupal-7,sass,codekit,Ruby,Drupal,Drupal 7,Sass,Codekit,我是SASS和CodeKit的新手,正在尝试编译一个SASS文件。该项目是Drupal Omega 4子主题。我正在运行安装了所有Ruby Gems的Mac OSX 10.10,我正在试图找出问题出在哪里,不允许CodeKit编译该文件。如果有任何想法,我将不胜感激。这是我的错误: ArgumentError位于/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext

我是SASS和CodeKit的新手,正在尝试编译一个SASS文件。该项目是Drupal Omega 4子主题。我正在运行安装了所有Ruby Gems的Mac OSX 10.10,我正在试图找出问题出在哪里,不允许CodeKit编译该文件。如果有任何想法,我将不胜感激。这是我的错误:

ArgumentError位于/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext/kernel\u require.rb的第[“55”]行:找不到主环境--正在扩展“~” 使用--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
// 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/**/*";
这是我试图编译的SCSS文件

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
// 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/**/*";

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

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

谢谢你,穆罕默德。我用我的用户名插入了代码。这次我犯了一个不同的错误。此错误代码是否提供洞察?设置HOME环境变量后出现新错误。/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext/kernel\u require.rb的第[“55”]行出现加载错误:无法加载此类文件--~/.rbenv/Versions/2.1.3/lib/Ruby/gems/Run with--trace以查看完整的回溯