【问题标题】:Error trying to reinstall rugged gem尝试重新安装坚固的 gem 时出错
【发布时间】:2015-06-08 10:54:12
【问题描述】:

我正在尝试重新安装坚固耐用,因为它会导致另一个程序 (Dandelion Deploy) 出现问题。

我最近更新了我的 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,狮子

【问题讨论】:

  • 哪个操作系统?
  • 试试这个 - sudo apt-get install cmake
  • 抱歉,正在运行 mac osx 10.7.5(我知道,我知道)
  • 查看 github 上 rugged gem 存储库的安装。在 OS X 上:brew install cmake
  • 我已经安装了这样的cmake。当我再次运行它时,它说:Warning: cmake-3.2.2 already installed

标签: ruby-on-rails ruby gem rugged


【解决方案1】:

解决了。

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

为了让 dandelion 工作,我安装了以下 gem:rough、dandelion 和 net-sftp

一切都恢复正常了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-19
    • 2017-05-10
    • 2015-02-12
    • 1970-01-01
    • 1970-01-01
    • 2021-05-01
    相关资源
    最近更新 更多