为什么' gem安装指南针'工作,但宝石安装指南针--pre'没有按'吨?

时间:2014-07-30 03:50:44

标签: ruby terminal sass compass-sass susy-compass

所以我开始了一个与Compass& amp;与Susy。在那里iMac上的一切都运行良好,我想将文件传输到我的笔记本电脑,在家里做一些工作。我从FTP获取文件然后尝试在目录上运行compass watch但是收到错误bc未安装Susy。所以我安装了Susy。然后我尝试再次观看,我收到错误:

Gem::ConflictError on line ["2099"] of /Library/Ruby/Site/2.0.0/rubygems/specification.rb: Unable to activate susy-2.1.3, because sass-3.2.19 conflicts with sass (< 3.5, >= 3.3.0)

所以,我喜欢,好吧,这不应该很难解决。谷歌搜索,每个人都对gem install compass --pre说。我喜欢,好吧,我会那样做的。我的屁股出错了。我尝试下载xcode命令行工具,rvm要求,没有什么对我有用。错误输出代码是这样的:

             Building native extensions.  This could take a while...
            /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /Users/jaylaiche/.rvm in PATH, mode 040777
            ERROR:  Error installing compass:
                ERROR: Failed to build gem native extension.

                /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20140729-74623-1y0hghc.rb extconf.rb
            /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1500: warning: Insecure world writable dir /Users/jaylaiche/.rvm in PATH, mode 040777
            checking for ffi.h... *** 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
                --with-make-prog
                --without-make-prog
                --srcdir=.
                --curdir
                --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
                --with-ffi_c-dir
                --without-ffi_c-dir
                --with-ffi_c-include
                --without-ffi_c-include=${ffi_c-dir}/include
                --with-ffi_c-lib
                --without-ffi_c-lib=${ffi_c-dir}/
                --with-libffi-config
                --without-libffi-config
                --with-pkg-config
                --without-pkg-config
            /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
            You have to install development tools first.
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `block in try_compile'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:502:in `with_werror'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `try_compile'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1044:in `block in have_header'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'
                from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1043:in `have_header'
                from extconf.rb:16:in `<main>'

            extconf failed, exit code 1

            Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.3 for inspection.
            Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/ffi-1.9.3/gem_make.out

我尝试导航到运行emacs ~/.rvm/gems/ruby-1.9.3-p0/gems/compass/ext/mkmf.log的日志,但没有。

任何人都可以拯救我的灵魂吗?并解释这里发生了什么?我想了解,以便我不再遇到这个问题。我只是没有看到这种情况的简单解释,特别是考虑到我可以安装罗盘&#39;很好,但是宝石安装指南针--pre&#39;不会工作。提前谢谢了。

0 个答案:

没有答案