解压后进入目录
执行:
./configure --prefix=/usr/local/curl --with-openssl
make && make clean
# 配置环境变量
echo 'export CURL_HOME=/usr/local/curl' > /etc/profile.d/curl.sh
echo 'export PATH=${CURL_HOME}/bin:$PATH' >> /etc/profile.d/curl.sh
source /etc/profile
解压后进入目录
执行:
./configure --prefix=/usr/local/curl --with-openssl
make && make clean
# 配置环境变量
echo 'export CURL_HOME=/usr/local/curl' > /etc/profile.d/curl.sh
echo 'export PATH=${CURL_HOME}/bin:$PATH' >> /etc/profile.d/curl.sh
source /etc/profile