Skip to content

Instantly share code, notes, and snippets.

@usmanm
Last active July 29, 2016 21:49
Show Gist options
  • Save usmanm/8fd9e1074359bca4fe0d79d386457f71 to your computer and use it in GitHub Desktop.
Save usmanm/8fd9e1074359bca4fe0d79d386457f71 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