OpenZWave / node-openzwave-shared

OpenZWave addon for Node.js (all versions) including management and security functions
Other
199 stars 113 forks source link

npm install failing: Mac OSX El Capitan #308

Closed masterokami closed 5 years ago

masterokami commented 5 years ago

npm install fails on Mac OS X El Capitan

bin/sh: ldconfig: command not found gyp: Call to 'ldconfig -p | grep 'libopenzwave.so ' | awk '{print $4}' | xargs nm -g --demangle |grep OpenZWave::Value::GetTypeNameFromEnum | wc -l' returned exit status 0 while in binding.gyp. while trying to load binding.gyp

nouknouk commented 5 years ago

had the same yesterday on one linux distro (debian) and not another (mint)

If i remember well, I had to check that /usr/sbin and /sbin are in your PATH environment variable, or any other directory where your ldconfig executable is located.

You may want to add those in /etc/environment ; something like:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

(don't know exactly on how it's organized on MacOS).

Pierre-Gilles commented 5 years ago

I have the same issue since 1.5.1!

ldconfig doesn't exist on MacOS

Found that alternative: https://github.com/protocolbuffers/protobuf/issues/2570#issuecomment-325345373

ekarak commented 5 years ago

my fault, sorry... I just committed a fix, can you please try again? oh and if anyone knows a free OSX CI/CD service for open source projects, do let me know...

Pierre-Gilles commented 5 years ago

Thanks for your quick reply!

I don't manage to do npm install on master, here is the error I get: (it's working with v1.4.8)

Screenshot 2019-06-21 at 14 20 28
ekarak commented 5 years ago

ok, a fix for XCode flag for C++ exceptions was just merged. This should do the trick. https://github.com/OpenZWave/node-openzwave-shared/pull/312/files