我无法在mac上安装selenium webdriver

时间:2014-08-18 18:21:10

标签: ruby selenium

ennas-MacBook-Pro:all_tests jholland $ sudo gem install selenium-webdriver 构建原生扩展。这可能需要一段时间...... 错误:安装selenium-webdriver时出错:     错误:无法构建gem原生扩展。

    /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/bin/ruby extconf.rb
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=/Users/jholland/.rvm/rubies/ruby-2.0.0-p451/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
/Users/jholland/.rvm/rubies/ruby-2.0.0-p451/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 /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:565:in `try_cpp'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:1044:in `block in have_header'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:310:in `open'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:310:in `open'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'
    from /Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/mkmf.rb:1043:in `have_header'
    from extconf.rb:16:in `<main>'

extconf failed, exit code 1

Gem文件将保留在/Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/ffi-1.9.3中进行检查。 结果记录到/Users/jholland/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/extensions/x86_64-darwin-12/2.0.0-static/ffi-1.9.3 /gem_make.out

我正在使用Mac Mavericks 10.9.1并且我已将ruby更新为2.0.0 P451 v。我现在被卡住了

0 个答案:

没有答案