Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node installation script fails because of an npm issue #32

Open
murgatroid99 opened this issue Jun 10, 2015 · 2 comments
Open

Node installation script fails because of an npm issue #32

murgatroid99 opened this issue Jun 10, 2015 · 2 comments
Assignees
Labels

Comments

@murgatroid99
Copy link
Member

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 or npm install --link, except that issue npm/npm#7198 makes it try and fail to rebuild the package without the proper compiler and linker flags.

@tbetbetbe tbetbetbe changed the title Node installation script does not work Node installation script fails because of an npm issue Jun 10, 2015
@tbetbetbe tbetbetbe added the bug label Jun 10, 2015
@tbetbetbe tbetbetbe self-assigned this Jun 10, 2015
@stanley-cheung
Copy link
Contributor

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

@murgatroid99
Copy link
Member Author

I forgot about LD_LIBRARY_PATH, but I think it is actually necessary, because the Node extension is dynamically linked by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants