⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 wget讓你可以在console介面下
💻
字号:
                                                            -*- text -*-		   GNU Wget Installation Procedure                   ===============================0. Introduction---------------This document describes how to build Wget from source code onUnix-like systems.  If you want to install a precompiled Wget, thisdocument is not for you -- refer to the documentation provided by thedistributors instead.  If you already have Wget and want to learn howto use it, refer to Wget's Info documentation or man page which youshould have received with your system.  If you are using Windows(except for Cygwin), read windows/README instead.  If you want tocompile Wget from source code on a Unix-like system, read on.The preferred form of building Wget is to get a release archive andunpack it (which you have presumably done, since you are readingthis).  If you have obtained the source code via the Subversionrepository, please follow the instructions in `README.checkout' beforecontinuing.1. Dependencies---------------To build Wget, your system must support a Unix-like command-linedevelopment environment, including the text-processing utilities (sh,grep, awk, sed, etc.) and a functional C compiler.  On some GNU/Linuxsystems, this means that you will need to install packages such as`gcc', `glibc-devel' (or `libc6-dev') and `make'.  Most systems comewith these packages preinstalled, but it doesn't hurt to check.  Ifyou have successfully compiled other software from source, youprobably have them all.In addition to the C development environment, Wget can use a number ofoptional libraries to provide additional features, such as translatedmessages and support for "https" URLs.  The "external" dependenciesinclude:  - OpenSSL -- for "https" URLs.  - GNU gettext -- for translated messages.To be usable for building Wget, the listed libraries must be installedwith their "development" header files.  On GNU/Linux systems thistypically means installing the corredponsing "lib<name>-devel" or"lib<name>-dev" package along with the package with "lib<name>".2. Configuration----------------Before compiling Wget, you need to "configure" it using the`configure' script provided with the distribution.  Configurationserves two distinct purposes: it enables Wget's build system toinspect certain features of your operating system for more robustcompilation, and it enables you to choose which features you want theresulting Wget to have.As is the case with most GNU software, Wget's configure script wasgenerated with GNU Autoconf.  If you're not familiar withAutoconf-generated scripts, read on.The most straightforward way to configure Wget is by running theconfigure script without any arguments.  After running somecompilation-related tests, it will create the Makefiles needed tobuild Wget.  However, you may wish to customize Wget's configurationby providing arguments to `configure'.  Wget's configure scriptaccepts standard Autoconf arguments, the most important ones being:  --help                  display a help message and exit  --prefix=PREFIX         install architecture-independent files in PREFIX                          (/usr/local by default)  --bindir=DIR            user executables in DIR (PREFIX/bin)  --infodir=DIR           info documentation in DIR [PREFIX/info]  --mandir=DIR            man documentation in DIR [PREFIX/man]For example, if you are not root and want to install Wget insubdirectories of your home directory, you can use:    ./configure --prefix=$HOMEIn addition to the above generic options, Wget's configurationsupports a number of options more or less specific to Wget.  Optionsbeginning with "--disable", such as `--disable-opie' or`--disable-ntlm', allow you to turn off certain built-in functionalityyou don't need in order to reduce the size of the executable.  Optionsbeginning with "--with" turning off autodetection and use of externalsoftware Wget can link with, such as the SSL libraries.  Recognized"--enable" and "--with" options include:  --without-ssl           disable SSL autodetection (used for https support)  --with-libssl-prefix=DIR search for libssl in DIR/lib  --disable-opie          disable support for opie or s/key FTP login  --disable-digest        disable support for HTTP digest authorization  --disable-ntlm          disable support for HTTP NTLM authorization  --disable-debug         disable support for debugging output  --disable-nls           do not use Native Language Support  --disable-largefile     omit support for large files  --disable-ipv6          disable IPv6 support  --disable-rpath         do not hardcode runtime library pathsYou can inspect decisions made by configure by editing the generatedMakefiles and the `src/config.h' include file.  The defaults shouldwork without intervention, but if you know what you are doing, editingthe generated files before compilation is fine -- they will not beregenerated until you run configure again.`configure' will try to find a compiler in your PATH, defaulting to`gcc', but falling back to `cc' if the former is unavailable.  This isa reasonable default on most Unix-like systems, but sometimes youmight want to override it.  The compiler choice is overridden bysetting the `CC' environment variable to the desired compiler filename.  For example, to force compilation with the Unix `cc' compiler,invoke configure like this:    ./configure CC=ccThis assumes that `cc' is in your path -- if it is not, simply useCC=/path/to/cc instead.  Note that environment variables that affectconfigure can be set with the usual shell syntax `VAR=value./configure' (assuming sh syntax), but can also be specified asarguments to configure, as shown above.  The latter method, whilebeing specific to configure, works unmodified in all shells.Environment variables that affect `configure' include: CFLAGS for Ccompiler flags, CPPFLAGS for C preprocessor flags, LDFLAGS for linkerflags, and LIBS for libraries.Barring the use of --without-* flags, configure will try to autodetectexternal libraries needed by Wget, currently only the OpenSSLlibraries.  If they are installed in the system library directories orin the same prefix where you plan to install Wget, configure should beable to autodetect them.  If they are installed elsewhere, use the`--with-libNAME' option to specify the root directory under whichlibraries reside in the `lib/' subdirectory and the correspondingheader files reside in the `include/' subdirectory.  For example, ifthe OpenSSL libraries are installed under the /usr/local/ssl prefix,use `--with-libssl=/usr/local/ssl'.Sometimes external libraries will be installed on the system, but theheader files will be missing.  This often happens on GNU/Linux if youforget to install the "-devel" or "-dev" package that corresponds tothe library and that is typically *not* installed by default.  In thatcase configure will not find the library and you will not be able touse the features provided by the library until you install the develpackage and rerun configure.  If you believe you have the necessaryheaders, but configure still fails to detect the library, pleasereport it as a bug.3. Compilation--------------To compile GNU Wget after it has been configured, simply type make.If your compiler is too old to handle function prototypes, Wget willtry to K&R-ize its sources on the fly.  This should make GNU Wgetcompilable on almost any Unix-like system you are likely to encounter.After the compilation a ready-to-use `wget' executable should residein the src directory.  At this point there is no formal test suite fortesting the binary, but it should be easy enough to test whether thebasic functionality works.4. Installation---------------Use `make install' to install GNU Wget to directories specified toconfigure.  To install it in a system directory (which is thedefault), you will need to be root.  The standard prefix is"/usr/local/", which can be changed using the `--prefix' configureoption.The installation process will copy the wget binary to $PREFIX/bin,install the wget.info* info pages to $PREFIX/info, the generatedmanual page (where available) wget.1 to $PREFIX/man/man1, and thedefault config file to $PREFIX/etc, unless a config file alreadyexists there.  You can customize these directories either through theconfiguration process or making the necessary changes in the Makefile.To delete the files created by Wget installation, you can use `makeuninstall'.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -