-
Notifications
You must be signed in to change notification settings - Fork 242
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
Building/Linking Ubuntu 16.10 #1773
Comments
@jbylund thanks for the writeup! How did you build/install ZMQ? |
I had installed via apt-get: |
@jbylund sounds good, I think that may be the underlying issue here. Have a good weekend! |
Sorry, looks good after building zmq from source. But still might be nice to have configure check zmq (would that be out of place)? |
Thanks @jbylund. |
I had the same problem... When I put de command make, appear "gcc: error: /usr/lib/libzmq.a: No such file or directory" |
You want to try to install zmq from source https://gist.github.com/usmanm/32a54a6b0f1f29d7737f86e29f837afa |
I have the same problem, and, well, I installed it from source, as I do with nearly everything on Gentoo. I'm a bit reluctant to install it "from source manually" (as described there) while there exists a maintained ebuild doing it inside Gentoo's Portage system. Is there some way to fix this from the side of PipelineDB's configuration, or by manually doing something after ZeroMQ is in place? |
Okay, I came around it by instructing Gentoo's Portage to build the static libs for zmq. Still, is there a rationale behind relying on static linking rather than shared libraries? |
@SebAlbert the reason we use static linking is that it simplifies our binary packages by quite a bit. PipelineDB binaries just work out of the box without relying on ZMQ existing as a shared library on the host system. However, when building from source I agree with you that it does make sense to also support shared libraries. It just hasn't come up as an issue very often so it's not something we've added support for at this point. If it is a significant pain point for you then we can look at adding support for builds against a ZMQ shared library, and we'd definitely welcome any pull requests as well! |
It's fine with me for the time being, since luckily the Gentoo system supports that on demand, too. What's keeping me from compiling PipelineDB myself from source now is #1829, so that would be more important from my point of view. |
I replaced "/usr/lib/libzmq.a" in src/Makefile.global.in with "-lzmq" on openSUSE Leap 42.3 to make linking work against the zeromq-devel package. |
Without making any modifications (from git head) on trying to build pipelinedb I get:
If I additionally create this link:
I get a whole bunch of undefined symbol issues:
Finally if I apply this diff:
Pipeline builds successfully, of course I think the correct thing to do is ask pkg-config where the lib for libsodium lives.
The text was updated successfully, but these errors were encountered: