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

libzmq.5.dylib linking issue with electron-packager #131

Closed
jhargis opened this issue Mar 29, 2017 · 3 comments
Closed

libzmq.5.dylib linking issue with electron-packager #131

jhargis opened this issue Mar 29, 2017 · 3 comments

Comments

@jhargis
Copy link

jhargis commented Mar 29, 2017

I'm fairly new to everything Node. Trying to build an Electron app on OSX 10.12. I've used homebrew to install zeromq. My app requires zerorpc and zmq. I set these env vars

npm_config_target="1.6.2" 
npm_config_runtime="electron"
npm_config_disturl="https://atom.io/download/electron"
npm_config_build_from_source="true"

Then package.

./node_modules/.bin/electron-packager .  --overwrite

It works fine on the local dev machine but when copied to another machine it fails because the dylib for zeromq is not found.

zmq-dylib-fail

I'm not really clear on what I need to do to get that file inside the packaged app. Perhaps I'm doing something wrong or missed a step.

@lgeiger
Copy link
Member

lgeiger commented Mar 29, 2017

@jhargis You are not using this module.
You have zmq installed which doesn't provide prebuild statically linked binaries. So you can't package your app with this module.

Please install zeromq (this module) with npm i zeromq --save and require it instead. You don't need to install external dependencies via homebrew.

@jhargis
Copy link
Author

jhargis commented Mar 29, 2017

ugh. I somehow was confused and thought they were the same package just aliased. Could have swore I tried all combinations including just zeromq and not zmq. At any rate, thank you.

@jhargis
Copy link
Author

jhargis commented Mar 29, 2017

The confusion I had was that I need the zerorpc package which requires zmq. The example I was working from mapped the dep for zerorpc to a forked version that substitutes zmq and msgpack with zeromq and msgpack-lite.

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

No branches or pull requests

2 participants