"Linux" "curl" Ubuntu compiler Libcurl__linux

Source: Internet
Author: User
Tags ldap
First, download Libcurl http://curl.haxx.se/download/curl-7.21.1.tar.gz II, installation specified installation directory/usr/local/curl Note: It is best to use the default path command 1:./confi Gure--prefix=/usr/local/curl This is the command:./configure this way, use directly when compiling the program gcc-o Filename-wall Filename.c-lcurl There will be no compile-link errors, and if your path changes, it may be cumbersome to compile the program. Results:   curl version:    7.21.1   host setup:      I686-PC-LINUX-GNU  & Nbsp;install prefix:  /usr/local/curl   compiler:        GCC   SSL support :     enabled (OpenSSL)   ssh support:     no       (--WITH-LIBSSH2)  &NB Sp;zlib support:    enabled   KRB4 support:    no       (--with-krb4*)    GSSAPI support:  no       (--WITH-GSSAPI)   spnego support:  no     &NB SP; (--with-spnego)   resolver:        default (--enable-ares/- Enable-threaded-resolver)   ipv6 support:    enabled   IDN support:     Enabled   build Libcurl:   Shared=yes, Static=yes   built-in manual:enabled,   Verbose Errors:  enabled (--disAble-verbose)   sspi support:    no       (--ENABLE-SSPI)   CA cert Bundle: & NBSP;/ETC/SSL/CERTS/CA-CERTIFICATES.CRT   CA cert path:    no   LDAP Support:    enabled (OpenLDAP)   ldaps support:   enabled   RTSP support:    enabled    rtmp support:    no       (--with-librtmp)   protocols:       DICT FILE FTP FTPS HTTP HTTPS IMAP imaps LDAP LDAPS POP3 pop3s RTSP SMTP smtps TELNET TFTP Command 2:make command 3:sudo make install can see Lib library, already installed in  /usr/local/curl/lib---------------------------------------------------------------------- Libraries have been installed in:   /usr/local/curl/lib If your ever happen to want to link against installed Li Braries in a given directory, Libdir, your must either use Libtool, and specify the full pathname of the library, or use th E '-llibdir ' flag during linking and do at least ONE of the following:   -add Libdir to the ' ld_library_path ' environment variable      during ex Ecution   -Add Libdir to the ' ld_run_path ' environment variable      during linking  &nbsp ; -Use the '-WL,-RPATH-WL,LIBDIR ' linker flag   -Have your system administrator add Libdir to '/etc/ld.so.conf ' Operating system documentation about shared libraries for more information, such as the LD (1) and ld.so (8) Manua L pages. Under the installation directory/usr/local/curl will have four directories  bin  include  lib  share contains the required libraries, headers, etc.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.