Linux平台编译curl7.37.1(32位、64位)
来源:互联网 发布:农村淘宝报名 编辑:程序博客网 时间:2024/06/11 07:36
一、代码准备
gunzip curl-7.37.1.tar.gz——解压
tar xvf curl-7.37.1.tar——解包
二、编译
32位编译
1)configure
2)make
至少在我的平台上没出现什么问题
在lib/.libs目录下找到libcurl.a和libcurl.so.4,如果需要,再拷贝libcurl.so.4到libcurl.so即可
在include/curl目录下,获取必要的头文件。(注意一点,不同平台下,配置出来的curlbuild.h是不同的)
64位编译
1)configure过程失败如下,
checking run-time libs availability... failed
configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lidn -lssh2 -lssl -lcrypto -lssl -lcrypto -ldl -lz -lldap -lz -lrt
找了一下,这些库都分别在/usr/lib64和/usr/local/lib目录下(libssh2.so在/usr/local/lib目录下,其他的在/usr/lib64),
export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib64:$LD_LIBRARY_PATH
再次configure,成功!显示各个模块的支持情况如下
curl version: 7.37.1 Host setup: x86_64-unknown-linux-gnu Install prefix: /usr/local Compiler: gcc SSL support: enabled (OpenSSL) SSH support: enabled (libSSH2) zlib support: enabled GSS-API support: no (--with-gssapi) SPNEGO support: no (--with-spnego) TLS-SRP support: no (--enable-tls-srp) resolver: default (--enable-ares / --enable-threaded-resolver) ipv6 support: enabled IDN support: enabled Build libcurl: Shared=yes, Static=yes 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 LDAP support: enabled (OpenLDAP) LDAPS support: enabled RTSP support: enabled RTMP support: no (--with-librtmp) metalink support: no (--with-libmetalink) HTTP2 support: disabled (--with-nghttp2) Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SCP SFTP SMTP SMTPS TELNET TFTP
2)make
大功告成。
0 0
- Linux平台编译curl7.37.1(32位、64位)
- 64位Linux 编译32位程序
- Linux 64位 编译32位程序
- 64位 Linux 编译32位应用程序
- 64位 Linux 编译32位应用程序
- linux 64位编译32位protobuf
- 64位 Linux 编译32位应用程序
- linux 64位编译32位protobuf
- Linux(ubuntu 64位)编译32位C源码
- openssl 编译(32位 64位)
- Windows平台编译openssl-0.9.8k库(32位、64位)
- Windows平台编译libiconv-1.11库(32位、64位)
- mysql在AIX平台的编译(32位、64位)
- 在64位linux上编译32位程序
- 在64位linux下编译出32位程序
- 如何在linux 32位机器编译64位程序
- 64位Linux下编译32位程序
- linux 64位系统编译 32 位程序方法
- Grails启动问题及处理
- sourcesight 与 pc_lint集成方法
- 深入理解计算机网络学习笔记--TCP
- 支付宝红包首秀失利
- 教你用Django实现一个简单的GIS功能
- Linux平台编译curl7.37.1(32位、64位)
- Android图片优化
- Effective C++读书笔记(条款35-40)
- jquery学习之基础核心
- sqlldr导入数据---笔记
- poj 1062 昂贵的聘礼 [dijkstra]
- android设置背景色为透明
- 框架和平台
- ListView的动态刷新问题——用notifyDataSetChanged没作用