Creation date: 02/11/2004

curl

curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.

Sebelum instalasi curl, pastikan aplikasi bc sudah terinstall.

Pada saat artikel ini dibuat versi curl terbaru 7.12.2.
  1. Donlot curl terbaru, bila ada ambil versi bz2 agar lebih cepat mendonlot
    root@21 root# wget http://curl.haxx.se/download/curl-7.12.2.tar.bz2
  2. Extract dan masuk kedalam direktori curl
    root@21 root# tar xjpf curl-7.12.2.tar.bz2
    root@21 root# cd curl-7.12.2
  3. Lakukan perintah configure, make dan install
    root@21 curl-7.12.2# CFLAGS="-O3 -march=i686 -mcpu=i686 \
     -funroll-loops -fomit-frame-pointer" \
    ./configure \
    --bindir=/usr/bin \
    --sbindir=/usr/sbin \
    --libdir=/usr/lib \
    --includedir=/usr/include \
    --mandir=/usr/share/man \
    --disable-ipv6 \
    --enable-thread
    root@21 curl-7.12.2# make
    root@21 curl-7.12.2# make check
    root@21 curl-7.12.2# make install
  4. Secara default, karena merubah opsi pada saat konfigure,
    maka file-file library akan diletakkan di /usr/lib dan file aplikasi di /usr/bin
    root@21 curl-7.12.2# ls -l /usr/lib/libcurl*
    -rw-r--r--    1 root     root      26622466 Nov  2 06:35 /usr/lib/libcurl.a
    -rwxr-xr-x    1 root     root          7999 Nov  2 06:35 /usr/lib/libcurl.la*
    lrwxrwxrwx    1 root     root           16 Nov  2 06:35 /usr/lib/libcurl.so -> libcurl.so.3.0.0*
    lrwxrwxrwx    1 root     root           16 Nov  2 06:35 /usr/lib/libcurl.so.3 -> libcurl.so.3.0.0*
    -rwxr-xr-x    1 root     root      12426655 Nov  2 06:35 /usr/lib/libcurl.so.3.0.0*
    
    root@21 curl-7.12.2# ls -l /usr/bin/curl*
    -rwxr-xr-x    1 root     root       2474199 Nov  2 06:35 /usr/bin/curl*
    -rwxr-xr-x    1 root     root         23788 Nov  2 06:35 /usr/bin/curl-config*
    
Hosted by www.Geocities.ws

1