Skip to content

Instantly share code, notes, and snippets.

@shepherd44
Last active March 15, 2019 05:09
Show Gist options
  • Save shepherd44/5eafb919979b1ef351b0e5a4a9d70e8c to your computer and use it in GitHub Desktop.
Save shepherd44/5eafb919979b1ef351b0e5a4a9d70e8c to your computer and use it in GitHub Desktop.
cnetos curl build
#!/bin/bash
yum install cmake3 git
CURL_VERSION="curl-7_59_0"
git clone https://github.com/curl/curl.git curl_build
cd curl_build
git checkout ${CURL_VERSION}
mkdir -p build
cd build
rm -rf *
cmake3 ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/${CURL_VERSION} -DCURL_STATICLIB=ON
make
make install
ln -sf /usr/local/${CURL_VERSION} /usr/local/curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment