Open murgatroid99 opened 9 years ago
Just as a data point, I had been using these 2 lines to run the greeter_server.js
example under grpc-common/node
CXXFLAGS=-I$BREWHOME/include LDFLAGS=-L$BREWHOME/lib npm update
LD_LIBRARY_PATH=$BREWHOME/lib nodejs greeter_server.js
I forgot about LD_LIBRARY_PATH
, but I think it is actually necessary, because the Node extension is dynamically linked by default.
Currently, the node installation script installs the Node grpc package globally, using compiler and linker flags to make it build successfully. This would allow a package to depend on grpc using
npm link grpc
ornpm install --link
, except that issue npm/npm#7198 makes it try and fail to rebuild the package without the proper compiler and linker flags.