Last active
March 15, 2019 05:09
-
-
Save shepherd44/5eafb919979b1ef351b0e5a4a9d70e8c to your computer and use it in GitHub Desktop.
cnetos curl build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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