Difference between revisions of "Curl"
From CBLFS
Jump to navigationJump to search (→64Bit) |
|||
(16 intermediate revisions by 8 users not shown) | |||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | http://curl.haxx.se/download/curl- | + | | http://curl.haxx.se/download/curl-{{Curl-Version}}.tar.lzma |
|} | |} | ||
---- | ---- | ||
+ | |||
+ | {{Package-Introduction||http://curl.haxx.se/}} | ||
== Dependencies == | == Dependencies == | ||
+ | |||
+ | == Optional == | ||
+ | * [[pkg-config]] | ||
+ | * [[OpenSSL]] or [[GnuTLS]] | ||
+ | * [[OpenLDAP]] | ||
+ | * [[libidn]] | ||
+ | * [[MIT krb5]] or [[Heimdal]] | ||
+ | * [[krb4]] | ||
+ | * [[SPNEGO]] | ||
+ | * [[c-ares]] | ||
+ | * [[libssh2]] (For SSH (SCP and SFTP) support, added in curl 7.16.1) | ||
+ | == Optional (For The Testsuite) == | ||
+ | * [[Stunnel]] | ||
+ | * [[Valgrind]] | ||
== Non-Multilib == | == Non-Multilib == | ||
Line 18: | Line 34: | ||
Install the package: | Install the package: | ||
− | make install | + | make install && |
find docs -name "Makefile*" -o -name "*.1" -o -name "*.3" | xargs rm && | find docs -name "Makefile*" -o -name "*.1" -o -name "*.3" | xargs rm && | ||
− | install -v -d -m755 /usr/share/doc/curl- | + | install -v -d -m755 /usr/share/doc/curl-{{Curl-Version}} && |
− | cp -v -R docs/* /usr/share/doc/curl- | + | cp -v -R docs/* /usr/share/doc/curl-{{Curl-Version}} |
== Multilib == | == Multilib == | ||
Line 29: | Line 45: | ||
Configure and compile the package: | Configure and compile the package: | ||
− | CC="gcc ${BUILD32}" ./configure --prefix=/usr && | + | CC="gcc ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ |
+ | ./configure --prefix=/usr && | ||
make | make | ||
Line 35: | Line 52: | ||
make install && | make install && | ||
− | + | mv -v /usr/bin/curl-config{,-32} && | |
+ | mv -v /usr/include/curl/curlbuild{,-32}.h | ||
=== N32 === | === N32 === | ||
Line 41: | Line 59: | ||
Configure and compile the package: | Configure and compile the package: | ||
− | CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && | + | CC="gcc ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ |
+ | ./configure --prefix=/usr --libdir=/usr/lib32 && | ||
make | make | ||
Line 47: | Line 66: | ||
make install && | make install && | ||
− | + | mv -v /usr/bin/curl-config{,-n32} && | |
+ | mv -v /usr/include/curl/curlbuild{,-n32}.h | ||
=== 64Bit === | === 64Bit === | ||
Line 53: | Line 73: | ||
Configure and compile the package: | Configure and compile the package: | ||
− | CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && | + | CC="gcc ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ |
+ | ./configure --prefix=/usr --libdir=/usr/lib64 && | ||
make | make | ||
Line 59: | Line 80: | ||
make install && | make install && | ||
+ | mv -v /usr/bin/curl-config{,-64} && | ||
+ | ln -sfv multiarch_wrapper /usr/bin/curl-config && | ||
+ | mv -v /usr/include/curl/curlbuild{,-64}.h && | ||
find docs -name "Makefile*" -o -name "*.1" -o -name "*.3" | xargs rm && | find docs -name "Makefile*" -o -name "*.1" -o -name "*.3" | xargs rm && | ||
− | install -v -d -m755 /usr/share/doc/curl- | + | install -v -d -m755 /usr/share/doc/curl-{{Curl-Version}} && |
− | cp -v -R docs/* /usr/share/doc/curl- | + | cp -v -R docs/* /usr/share/doc/curl-{{Curl-Version}} |
+ | |||
+ | {{Stub-Header|curlbuild|/usr/include/curl}} | ||
− | + | [[Category:Network Utilities]] | |
− |
Latest revision as of 10:19, 9 September 2012
Download Source: | http://curl.haxx.se/download/curl-7.29.0.tar.lzma |
---|
Contents
Introduction to Curl
Project Homepage: http://curl.haxx.se/
Dependencies
Optional
- pkg-config
- OpenSSL or GnuTLS
- OpenLDAP
- libidn
- MIT krb5 or Heimdal
- krb4
- SPNEGO
- c-ares
- libssh2 (For SSH (SCP and SFTP) support, added in curl 7.16.1)
Optional (For The Testsuite)
Non-Multilib
Configure and compile the package:
./configure --prefix=/usr && make
Install the package:
make install && find docs -name "Makefile*" -o -name "*.1" -o -name "*.3" | xargs rm && install -v -d -m755 /usr/share/doc/curl-7.29.0 && cp -v -R docs/* /usr/share/doc/curl-7.29.0
Multilib
32Bit
Configure and compile the package:
CC="gcc ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ ./configure --prefix=/usr && make
Install the package:
make install && mv -v /usr/bin/curl-config{,-32} && mv -v /usr/include/curl/curlbuild{,-32}.h
N32
Configure and compile the package:
CC="gcc ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ ./configure --prefix=/usr --libdir=/usr/lib32 && make
Install the package:
make install && mv -v /usr/bin/curl-config{,-n32} && mv -v /usr/include/curl/curlbuild{,-n32}.h
64Bit
Configure and compile the package:
CC="gcc ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ ./configure --prefix=/usr --libdir=/usr/lib64 && make
Install the package:
make install && mv -v /usr/bin/curl-config{,-64} && ln -sfv multiarch_wrapper /usr/bin/curl-config && mv -v /usr/include/curl/curlbuild{,-64}.h && find docs -name "Makefile*" -o -name "*.1" -o -name "*.3" | xargs rm && install -v -d -m755 /usr/share/doc/curl-7.29.0 && cp -v -R docs/* /usr/share/doc/curl-7.29.0
Creating a Stub Header (Multilib Only)
Creating a Generic Stub Header
cat > /usr/include/curl/curlbuild.h << "EOF" /* curlbuild.h - Stub Header */ #ifndef __STUB__CURLBUILD_H__ #define __STUB__CURLBUILD_H__ #if defined(__x86_64__) || \ defined(__sparc64__) || \ defined(__arch64__) || \ defined(__powerpc64__) || \ defined (__s390x__) # include "curlbuild-64.h" #else # include "curlbuild-32.h" #endif #endif /* __STUB__CURLBUILD_H__ */ EOF
Creating a Stub Header For Mips
cat > /usr/include/curl/curlbuild.h << "EOF" /* curlbuild.h - Stub Header */ #ifndef __STUB__CURLBUILD_H__ #define __STUB__CURLBUILD_H__ #include <sgidefs.h> #if (_MIPS_SIM == _ABIO32) # include "curlbuild-32.h" #elif (_MIPS_SIM == _ABIN32) # include "curlbuild-n32.h" #elif (_MIPS_SIM == _ABI64) # include "curlbuild-64.h" #endif #endif /* __STUB__CURLBUILD_H__ */ EOF