下载源码:[curl-7.52.1.zip] https://curl.haxx.se/download/
#unzip curl-7.52.1.zip #cd curl-7.52.1 # ./configure --enable-http --with-ssl=/usr/customAgentExample/build/openssl --prefix=/usr/customAgentExample/build/curl --without-libssh2 --disable-ftp --disable-tftp --disable-file --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-pop3 --disable-imap --disable-smb --disable-scp --disable-sftp --disable-smtp --disable-gopher --disable-manual
# sudo make install
报错:
connect.c:1087:12: error: ‘connectx’ is only available on macOS 10.11
or newer [-Werror,-Wunguarded-availability]
rc = connectx(sockfd, &endpoints, SAE_ASSOCID_ANY
加参数: CFLAGS=-Wno-error
# sudo make install CFLAGS=-Wno-error