Skip to content

Instantly share code, notes, and snippets.

@derekjn
Last active August 11, 2016 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekjn/63f6d17809aed6c17b59e4dc15c36352 to your computer and use it in GitHub Desktop.
Save derekjn/63f6d17809aed6c17b59e4dc15c36352 to your computer and use it in GitHub Desktop.
#!/bin/bash
wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz && \
tar -xvf 1.0.0.tar.gz && \
cd nanomsg-1.0.0 && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DNN_STATIC_LIB=1 -DCMAKE_POSITION_INDEPENDENT_CODE=1 && \
cmake --build . && \
sudo cmake --build . --target install && \
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment