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 に答える