下載
官方網(wǎng)址是:curl
安裝依賴庫
?如果需要curl支持https協(xié)議,需要先交叉編譯 openssl,編譯流程如下:
Ubuntu18.04 交叉編譯openssl-1.1.1_我是誰??的博客-CSDN博客
解壓
# 解壓:
$tar -xzvf curl-7.61.0.tar.gz
# 進(jìn)入解壓后目錄:
$cd curl-7.61.0
配置
CPPFLAGS="-I/home/bwton/project/openssl-1.1.1-pre5/__install/include" LDFLAGS="-L/home/bwton/project/openssl-1.1.1-pre5/__install/lib" LIBS="-ldl -lssl -lcrypto" ./configure --host=arm-linux CC=/opt/gcc-linaro-7.1.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc CXX=/opt/gcc-linaro-7.1.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ --with-ssl --enable-shared --enable-static --disable-dict --disable-ftp --disable-imap --disable-ldap --disable-ldaps --disable-pop3 --disable-proxy --disable-rtsp --disable-smtp --disable-telnet --disable-tftp --disable-zlib --without-ca-bundle --without-gnutls --without-libidn --without-librtmp --without-libssh2 --without-nss --without-zlib --prefix=$PWD/__install
配置完成之后可以看到如下日志
?文章來源地址http://www.zghlxwxcb.cn/news/detail-670133.html
編譯安裝
# 編譯
make -j4
# 安裝
make install
安裝完成如下:
文章來源:http://www.zghlxwxcb.cn/news/detail-670133.html
?
到了這里,關(guān)于Ubuntu18.04 交叉編譯curl-7.61.0的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!