77 lines
3.0 KiB
Plaintext
77 lines
3.0 KiB
Plaintext
|
|
|
|||
|
|
writen by yikenan,2018-06-21
|
|||
|
|
modified by yikenan,2018-10-24
|
|||
|
|
|
|||
|
|
CentOS 7:
|
|||
|
|
./configure -prefix=/opt/curl --enable-static=no --with-zlib=/opt/zlib LDFLAGS="-Wl,-rpath,'\$\$ORIGIN' $LDFLAGS"
|
|||
|
|
gmake
|
|||
|
|
gmake install
|
|||
|
|
|
|||
|
|
拷贝install路径下的lib目录下的动态库至platform下的对应系统目录
|
|||
|
|
拷贝install路径下的include目录下的文件到ISCS_HOME/src/3rd/include目录
|
|||
|
|
|
|||
|
|
configure报告的信息如下:
|
|||
|
|
configure: Configured to build curl/libcurl:
|
|||
|
|
|
|||
|
|
curl version: 7.61.1
|
|||
|
|
Host setup: x86_64-pc-linux-gnu
|
|||
|
|
Install prefix: /opt/curl
|
|||
|
|
Compiler: gcc
|
|||
|
|
SSL support: enabled (OpenSSL)
|
|||
|
|
SSH support: no (--with-libssh2)
|
|||
|
|
zlib support: enabled
|
|||
|
|
brotli support: no (--with-brotli)
|
|||
|
|
GSS-API support: no (--with-gssapi)
|
|||
|
|
TLS-SRP support: no (--enable-tls-srp)
|
|||
|
|
resolver: POSIX threaded
|
|||
|
|
IPv6 support: enabled
|
|||
|
|
Unix sockets support: enabled
|
|||
|
|
IDN support: no (--with-{libidn2,winidn})
|
|||
|
|
Build libcurl: Shared=yes, Static=no
|
|||
|
|
Built-in manual: enabled
|
|||
|
|
--libcurl option: enabled (--disable-libcurl-option)
|
|||
|
|
Verbose errors: enabled (--disable-verbose)
|
|||
|
|
SSPI support: no (--enable-sspi)
|
|||
|
|
ca cert bundle: /etc/pki/tls/certs/ca-bundle.crt
|
|||
|
|
ca cert path: no
|
|||
|
|
ca fallback: no
|
|||
|
|
LDAP support: enabled (OpenLDAP)
|
|||
|
|
LDAPS support: enabled
|
|||
|
|
RTSP support: enabled
|
|||
|
|
RTMP support: no (--with-librtmp)
|
|||
|
|
metalink support: no (--with-libmetalink)
|
|||
|
|
PSL support: no (libpsl not found)
|
|||
|
|
HTTP2 support: disabled (--with-nghttp2)
|
|||
|
|
Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
|
|||
|
|
|
|||
|
|
[root@centos-7-5-test-2 bin]# ./curl -V
|
|||
|
|
curl 7.61.1 (x86_64-pc-linux-gnu) libcurl/7.61.1 OpenSSL/1.0.2k zlib/1.2.7
|
|||
|
|
Release-Date: 2018-09-05
|
|||
|
|
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
|
|||
|
|
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets HTTPS-proxy
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
Windows:
|
|||
|
|
|
|||
|
|
详见源码包winbuild目录下的说明
|
|||
|
|
|
|||
|
|
复制zlib的头文件zconf.h、zlib.h到E:\src_package\zlib_install_debug\include
|
|||
|
|
复制zlib的编译后库文件到E:\src_package\zlib_install_debug\lib
|
|||
|
|
|
|||
|
|
nmake /f Makefile.vc WITH_DEVEL=E:\src_package\zlib_install_debug WITH_ZLIB=dll mode=dll VC=14 MACHINE=x64 DEBUG=yes
|
|||
|
|
|
|||
|
|
若希望Debug、Release版本统一文件名,即Debug版本不带“_debug”,则修改MakefileBuild.vc文件
|
|||
|
|
BASE_NAME_DEBUG、BASE_NAME_STATIC_DEBUG去掉“_debug”
|
|||
|
|
|
|||
|
|
release同理。
|
|||
|
|
nmake /f Makefile.vc WITH_DEVEL=E:\src_package\zlib_install_release WITH_ZLIB=dll mode=dll VC=14 MACHINE=x64 DEBUG=no
|
|||
|
|
|
|||
|
|
支持信息如下:
|
|||
|
|
E:\src_package\curl-7.61.1\builds\libcurl-vc14-x64-debug-dll-zlib-dll-ipv6-sspi-winssl\bin>curl.exe -V
|
|||
|
|
curl 7.61.1 (x86_64-pc-win32) libcurl/7.61.1 WinSSL zlib/1.2.11 WinIDN
|
|||
|
|
Release-Date: 2018-09-05
|
|||
|
|
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
|
|||
|
|
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz
|
|||
|
|
|