尝试重新安装坚固的宝石时出错

时间:2015-06-08 10:54:12

标签: ruby-on-rails ruby gem rugged

我试图重新安装坚固耐用,因为它会导致其他程序出现问题(蒲公英部署)。

我最近更新了我的RVM和Ruby,并再次安装了cmake和pkg-config,但是当我运行以下命令时出现此错误:gem install rugged

Fetching: rugged-0.22.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing rugged:
    ERROR: Failed to build gem native extension.

    /Users/J/.rvm/rubies/ruby-2.0.0-p645/bin/ruby -r ./siteconf20150605-56781-qfplzm.rb extconf.rb
checking for gmake... no
checking for make... yes
checking for cmake... yes
checking for pkg-config... yes
 -- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Unix Makefiles"
*** 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
    --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/J/.rvm/rubies/ruby-2.0.0-p645/bin/ruby
    --use-system-libraries
extconf.rb:13:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Unix Makefiles"' failed (RuntimeError)
    from extconf.rb:66:in `block (2 levels) in <main>'
    from extconf.rb:65:in `chdir'
    from extconf.rb:65:in `block in <main>'
    from extconf.rb:62:in `chdir'
    from extconf.rb:62:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/J/.rvm/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rugged-0.22.2 for inspection.
Results logged to /Users/J/.rvm/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/extensions/x86_64-darwin-11/2.0.0/rugged-0.22.2/gem_make.out

我是一个前卫,所以这是我的舒适区。任何帮助表示赞赏!

Mac OSX 10.7.5,Lion

1 个答案:

答案 0 :(得分:0)

解决了它。

我在OSX 10.7.5上安装了最新版本的XCode I can(4.6.3)。

为了让蒲公英工作,我安装了以下宝石:坚固,蒲公英和net-sftp

一切都恢复了。