diff --git a/docs/source/howto/build.md b/docs/source/howto/build.md index a541960ca..8a13c099d 100644 --- a/docs/source/howto/build.md +++ b/docs/source/howto/build.md @@ -83,6 +83,14 @@ If pyzmq doesn't find your libzmq via the default search, or you want to skip th ZMQ_PREFIX=/path/to/zmq # should contain 'include', 'lib', etc. ``` +You may also need to add: + +```bash +export LDFLAGS="-Wl,-rpath,${ZMQ_PREFIX}/lib" +``` + +to make sure that your libzmq is found at _runtime_. + ### Disabling bundled build fallback You may want to keep the default search, diff --git a/docs/source/howto/draft.md b/docs/source/howto/draft.md index f2f6463be..0e3e8e593 100644 --- a/docs/source/howto/draft.md +++ b/docs/source/howto/draft.md @@ -24,6 +24,7 @@ tar -xzf libzmq.tar.gz cd zeromq-${ZMQ_VERSION} ./configure --prefix=${PREFIX} --enable-drafts make -j${CPU_COUNT} && make install +sudo ldconfig ``` And then build pyzmq with draft support: @@ -31,6 +32,9 @@ And then build pyzmq with draft support: ```bash export ZMQ_PREFIX=${PREFIX} export ZMQ_DRAFT_API=1 +# rpath may be needed to find libzmq at runtime, +# depending on installation +export LDFLAGS="${LDFLAGS:-} -Wl,-rpath,${ZMQ_PREFIX}/lib" pip install -v pyzmq --no-binary pyzmq ```