[Wget] [TitleIndex] [WordIndex

Compiling From Repository Sources

To reduce bandwidth and needless updates, the source code repository does not contain automatically-generated files, even when these are normally present in the distribution tarballs. Therefore, to build GNU Wget from the sources in the repository, you'll need to have one or more of the following (note that gettext, OpenSSL, libidn and libiconv are not absolutely required):

For those who might be confused as to what to do once they check out the source code, considering configure and Makefile do not yet exist at that point, a shell script called bootstrap has been provided. After calling ./bootstrap you're ready to build GNU Wget in the normal fashion, with ./configure and make.

So, to sum up, after checking out the source code as described above, you may proceed as follows:

  1. Change to the topmost GNU Wget directory:
     $  cd wget        # assumes you've cloned a repository to "./wget"
  2. Generate all the automatically-generated files required prior to configuring the package:
     $  ./bootstrap
  3. Configure the package and compile it:
     $  ./configure [some_parameters]
     $  make
  4. Hack, compile, test, hack, compile, test...
     $  src/wget --version
     GNU Wget 1.15.27-86245 built on linux-gnu.
     
     +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/gnutls 
     
     Wgetrc: 
         /usr/local/etc/wgetrc (system)
     Locale: 
         /usr/local/share/locale 
     Compile: 
         gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
         -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib -O2 
         -Wall 
     Link: 
         gcc -O2 -Wall -lnettle -lgnutls -lz -lidn -luuid -lpcre ftp-opie.o 
         gnutls.o http-ntlm.o ../lib/libgnu.a 
     
     Copyright (C) 2014 Free Software Foundation, Inc.
     License GPLv3+: GNU GPL version 3 or later
     <http://www.gnu.org/licenses/gpl.html>.
     This is free software: you are free to change and redistribute it.
     There is NO WARRANTY, to the extent permitted by law.
    
     Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
     Please send bug reports and questions to <bug-wget@gnu.org>.

2017-01-04 00:04