node_mdns
node_mdns copied to clipboard
Issue while pushing application to cloud foundry
I am trying to push a node js application into Cloud foundry. I am facing the below error "
n file included from ../src/dns_sd.cpp:1:0:
../src/mdns.hpp:32:20: fatal error: dns_sd.h: No such file or directory
#include <dns_sd.h>
^
compilation terminated.
make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
make: Leaving directory /tmp/app/node_modules/mdns/build' gyp ERR! build error gyp ERR! stack Error:
make` failed with exit code: 2
I have made changes like adding the dependencies libavahi-compat-libdnssd-dev but still facing the error. Can you please suggest what would be the possible reason?Below is my dependency in package.json file
"dependencies": { "yum": "^0.1.1", "build-essential": "", "git-core": "", "libnss-mdns" :"", "libavahi-compat-libdnssd-dev": "", "mdns": "*",
"body-parser": "^1.15.2",
"castv2-client": "^1.1.2",
"express": "^4.14.0",
"google-tts-api": "^2.2.4",
"ngrok": "^2.3.0"
},
I'm not familiar with cloud foundry (or Heroku for that matter) but that does not look right.
libavahi-compat-libdnssd-dev does not belong in package.json. It's a package that ships with the distro. You have to
apt-get install libavahi-compat-libdnssd-dev
or somesuch. Please refer to your cloud provider documentation on how to install distro packages.