Codekit在使用指南针时不编译scss文件

时间:2014-10-25 04:32:56

标签: ruby macos sass codekit compass

我的指南针版本是1.0.1(Polaris) 我的sass版本是3.4.5

当我做一个正常的compass watch时,它运作得很好。我喜欢使用codekit,我希望它能编译我的scss文件,但它不是,它让我疯狂。

如果有任何机构对如何解决此请求有任何想法,请告诉我。提前致谢。

尝试编译时出现以下错误: Compass无法编译项目中的一个或多个文件:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in mkdir': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14 (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in fu_mkdir&#39;     来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:219:in block (2 levels) in mkdir_p' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in reverse_each&#39;     来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in block in mkdir_p' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in每个&#39;     来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in mkdir_p' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:210:in write_gem_make_out&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:132:in build_error' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:171:in救援在build_extension&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:156:in build_extension' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:in阻止build_extensions&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in each' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in build_extensions&#39;     from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in block in build_extensions' from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:in use_ui&#39;     from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in build_extensions' from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:60:in build_extensions&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb:56:in contains_requirable_file?' from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:925:in阻止在find_inactive_by_path&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in each' from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in发现&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in find_inactive_by_path' from /Library/Ruby/Site/2.0.0/rubygems.rb:185:in try_activate&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:132:in rescue in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:in要求&#39;     from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:2:in <top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_extensions/sprites/engines.rb:25:in&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;     from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_extensions/sprites.rb:20:in <top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_extensions.rb:9:in&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;     来自/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass.rb:14:in block in <top (required)>' from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass.rb:13:in每个&#39;     来自/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass.rb:13:in <top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:135:in要求&#39;     来自/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:135:in rescue in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:in要求&#39;     来自/Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:41:in block in <main>' from /Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:29:in fallback_load_path&#39;     来自/Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:40:in`&#39;

1 个答案:

答案 0 :(得分:2)

在我升级到约塞米蒂之后,指南针开始失败后,我跑完了

> sudo gem update

它奏效了。罗盘是它更新的软件包之一。

我认为Codekit允许您选择要使用的编译器,内部Codekit或系统编译器。我的同事使用Codekit与Codekits内部Compass编译器,没有问题,但我使用系统罗盘编译器,但失败了。

我不确定在程序包或权限或系统设置中发生了哪些更改