[英]Error: ENOENT util.rb No such file or directory after upgrading to compass 1.0.1/sass 3.4.2
Here's everything the terminal spits back, with --trace- 这是终端返回的所有内容,--trace-
Errno::ENOENT on line ["670"] of /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/util.rb: No such file or directory - /Users/aristidesstaffieri/sass
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/util.rb:670:in `realpath'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/util.rb:670:in `realpath'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/importers/filesystem.rb:16:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:192:in `new'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:192:in `block in normalize_options'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:190:in `map'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:190:in `normalize_options'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/staleness_checker.rb:52:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/compiler.rb:203:in `new'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/compiler.rb:203:in `update_stylesheets'
/Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/compiler.rb:294:in `watch'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_compiler.rb:46:in `watch!'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/watch_project.rb:41:in `perform'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/base.rb:18:in `execute'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/project_base.rb:19:in `execute'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/exec/sub_command_ui.rb:15:in `run!'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:30:in `block in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:44:in `call'
/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:44:in `<top (required)>'
/usr/bin/compass:23:in `load'
/usr/bin/compass:23:in `<main>'
This only started happening after I updated, and all of my gems are updated. 这只是在我更新之后才开始发生,并且我所有的宝石都更新了。 I've tried uninstalling and re-installing compass/sass. 我尝试卸载并重新安装指南针/萨斯。 Any suggestions? 有什么建议么?
I believe that the problem you were having is the new update of the gem. 我相信您遇到的问题是gem的新更新。 With this modification you get back to the previous version. 通过此修改,您可以返回到以前的版本。
I modified Gemfile. 我修改了Gemfile。 I added this line gem 'compass','0.12.6' 我添加了这行gem'compass','0.12.6'
This is my first lines at Gemfile 这是我在Gemfile上的第一行
source 'http://rubygems.org' ruby '1.9.3' gem 'rails', '~> 3.2.15' group :assets do gem 'sass-rails' gem 'compass-rails' gem 'compass','0.12.6' gem "twitter-bootstrap-rails" gem 'uglifier' end
I think this is what you wanted, but if not, let me know as many times as you need. 我认为这是您想要的,但如果不需要,请根据需要多次与我联系。
The latest version of Sass ( 3.4.3 ) as of September 4th seems to fix this issue (confirmed with Ruby 2.0.0 and Compass 1.0.1). 截至9月4日,最新版本的Sass( 3.4.3 )似乎解决了此问题(已由Ruby 2.0.0和Compass 1.0.1确认)。
You could try running gem update sass
and see if it solves your problem. 您可以尝试运行gem update sass
,看看它是否可以解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.