Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 730 Bytes

nanomsg_manually.md

File metadata and controls

33 lines (25 loc) · 730 Bytes

Manual installation of nanomsg on Ubuntu 16.04

sudo apt install tar wget asciidoctor cmake

# compilation of nanomsg
cd /tmp
wget -qO- https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz | \
          tar --transform 's/^dbt2-0.37.50.3/dbt2/' -xvz

cd /tmp/nanomsg-1.0.0
mkdir build

cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build .
ctest -C Debug .

# installation
sudo cmake --build . --target install

# post-installation
sudo ldconfig

# please, add to end of your ~/.bashrc
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH

# Clean up
cd ~
rm -fR /tmp/nanomsg-1.0.0