LoginSignup
1
0

More than 5 years have passed since last update.

[メモ]古いRaspberry Pi(Wheezy)でdns_sh関連のコンパイルエラーを修復する

Last updated at Posted at 2017-12-17

古いRaspberry Pi(2)上で

npm install -g --unsafe-perm homebridge

を実行中、

  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
In file included from ../src/dns_sd.cpp:1:0:
../src/mdns.hpp:32:20: fatal error: dns_sd.h: そのようなファイルやディレクトリはありません
 #include <dns_sd.h>
                    ^
compilation terminated.
dns_sd_bindings.target.mk:150: recipe for target 'Release/obj.target/dns_sd_bindings/src/dns_sd.o' failed

というエラーが出て止まった。どうもg++のバージョンが古いのが原因のようなので、

メモ:Raspbianをwheezyからjessieにアップデート - Qiita

を見ながら設定ファイルのwheezyをjessieに書き換えてから

sudo apt-get update
sudo apt-get upgrade
sudo apt-get reboot

とし、再び

sudo apt-get update
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install libavahi-compat-libdnssd-dev

とやったらうまくコンパイルが通るようになった。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0