0
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Using i18n (0.6.1) 
Using multi_json (1.7.2) 
Using activesupport (3.2.13) 
Using builder (3.2.0) 
Using colored (1.2) 
Using diff-lcs (1.2.1) 
Using json (1.7.7) 
Using gherkin (2.11.6) 
Using cucumber (1.2.3) 
Installing dnssd (2.0) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /home/ramkishan/.rvm/rubies/ruby-1.9.2-p318/bin/ruby extconf.rb 
    checking for dns_sd.h... no
    unable to find dnssd header
    *** 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=/home/ramkishan/.rvm/rubies/ruby-1.9.2-p318/bin/ruby
        --with-warnings
        --without-warnings
        --with-dnssd-dir
        --without-dnssd-dir
        --with-dnssd-include
        --without-dnssd-include=${dnssd-dir}/include
        --with-dnssd-lib
        --without-dnssd-lib=${dnssd-dir}/lib


    Gem files will remain installed in /home/ramkishan/.rvm/gems/ruby-1.9.2-p318@andriod/gems/dnssd-2.0 for inspection.
    Results logged to /home/ramkishan/.rvm/gems/ruby-1.9.2-p318@andriod/gems/dnssd-2.0/ext/dnssd/gem_make.out
    An error occurred while installing dnssd (2.0), and Bundler cannot continue.
    Make sure that `gem install dnssd -v '2.0'` succeeds before bundling.

我已经安装了 gem install dnssd -v '2.0' 但问题仍然存在。帮助我如何解决它。

4

2 回答 2

1

gem 依赖于你的dnssd操作系统,它有一个用于dnssd. 假设你没有使用 OS X,我认为它内置了这个库,你应该安装libavahi-compat-libdnssd-dev.

在 Ubuntu 上,它是sudo apt-get install libavahi-compat-libdnssd-dev

于 2013-03-23T20:00:45.660 回答
1

我猜你不在OSX上。如果你在 Ubuntu 上,你可以运行

$> sudo apt-get install libavahi-compat-libdnssd-dev

安装缺少的库。

于 2013-03-23T20:00:46.393 回答