无法安装font-awesome gem,更新activesupport gem

时间:2014-01-30 00:09:19

标签: ruby-on-rails gem sass zurb-foundation font-awesome

我试图将sass版本的font-awesome安装到我的基础项目中。当我:

$ gem install font-awesome-sass
ERROR:  Error installing font-awesome-sass:
    railties requires activesupport (= 4.0.2)

当我尝试从3.2.12更新activesupport时,我得到了这个:

$ gem update activesupport
Updating installed gems
Updating activesupport
Building native extensions.  This could take a while...
ERROR:  Error installing activesupport:
    ERROR: Failed to build gem native extension.

    /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/bin/ruby extconf.rb
*** 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=/Users/davidpindrys/.rbenv/versions/2.0.0-rc1/bin/ruby
    --with-atomic_reference-dir
    --without-atomic_reference-dir
    --with-atomic_reference-include
    --without-atomic_reference-include=${atomic_reference-dir}/include
    --with-atomic_reference-lib
    --without-atomic_reference-lib=${atomic_reference-dir}/
/Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/2.0.0/mkmf.rb:410:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/2.0.0/mkmf.rb:495:in `try_link0'
    from /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/2.0.0/mkmf.rb:784:in `try_run'
    from extconf.rb:26:in `<main>'


Gem files will remain installed in /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/atomic-1.1.14 for inspection.
Results logged to /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/atomic-1.1.14/ext/gem_make.out
Nothing to update

我不确定我应该尝试安装什么依赖项,并且不想加载任何可能过量的项目,因为它之前的工作非常完美。感谢您的帮助:))


按照建议,我尝试了$ gem install activesupport,并返回了:

$ gem install activesupport '4.0.2'
Building native extensions.  This could take a while...
ERROR:  Error installing activesupport:
    ERROR: Failed to build gem native extension.

    /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/bin/ruby extconf.rb
*** 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=/Users/davidpindrys/.rbenv/versions/2.0.0-rc1/bin/ruby
    --with-atomic_reference-dir
    --without-atomic_reference-dir
    --with-atomic_reference-include
    --without-atomic_reference-include=${atomic_reference-dir}/include
    --with-atomic_reference-lib
    --without-atomic_reference-lib=${atomic_reference-dir}/
/Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/2.0.0/mkmf.rb:410:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/2.0.0/mkmf.rb:495:in `try_link0'
    from /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/2.0.0/mkmf.rb:784:in `try_run'
    from extconf.rb:26:in `<main>'


Gem files will remain installed in /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/atomic-1.1.14 for inspection.
Results logged to /Users/davidpindrys/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/atomic-1.1.14/ext/gem_make.out
ERROR:  Could not find a valid gem '4.0.2' (>= 0) in any repository

0 个答案:

没有答案