Skip to content

Instantly share code, notes, and snippets.

@djm158
Last active February 28, 2018 18:42
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 djm158/449797cb6cf2c52272dbcd19d5155d8a to your computer and use it in GitHub Desktop.
Save djm158/449797cb6cf2c52272dbcd19d5155d8a to your computer and use it in GitHub Desktop.
wget libssh2-1.8 and build from source
# this assumes you have make autoconf and libtool, run the following otherwise:
# sudo apt-get install make autoconf libtool
echo "BUILDING LIBSSH FROM SOURCE"
wget https://github.com/libssh2/libssh2/archive/libssh2-1.8.0.tar.gz
tar -xvzf libssh2-1.8.0.tar.gz
# need to run this in a subshell so autotools understands we are working in libssh2-libssh2-1.8.0
(
cd libssh2-libssh2-1.8.0/
libtoolize -v
aclocal
autoheader
cp src/libssh2_config.h.in example/
automake --add-missing --force-missing
autoconf
autoreconf
./configure
make install
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment