下载 mwget

[root@VM_0_8_centos src]# wget http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2
--2019-08-02 11:05:37--  http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2
Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 397190 (388K) [application/octet-stream]
Saving to: ‘mwget_0.1.0.orig.tar.bz2’100%[=================================================================================================>] 397,190      736B/s   in 9m 49s  2019-08-02 11:15:26 (675 B/s) - ‘mwget_0.1.0.orig.tar.bz2’ saved [397190/397190]

解压

[root@VM_0_8_centos src]# tar -xjvf mwget_0.1.0.orig.tar.bz2
mwget_0.1.0.orig/
mwget_0.1.0.orig/.pc/
mwget_0.1.0.orig/mach-info/
mwget_0.1.0.orig/po/
mwget_0.1.0.orig/src/
mwget_0.1.0.orig/.pc/debian-changes-0.1.0-kmbuild8/
mwget_0.1.0.orig/.pc/debian-changes-0.1.0-kmbuild8/src/
mwget_0.1.0.orig/configure
mwget_0.1.0.orig/build-stamp
mwget_0.1.0.orig/README
mwget_0.1.0.orig/configure.in
mwget_0.1.0.orig/Fuzzy
mwget_0.1.0.orig/BUGS
mwget_0.1.0.orig/Makefile.am
mwget_0.1.0.orig/stamp-h.inT
mwget_0.1.0.orig/stamp-h.in
mwget_0.1.0.orig/mkinstalldirs
mwget_0.1.0.orig/missing
mwget_0.1.0.orig/ltmain.sh
mwget_0.1.0.orig/install-sh
mwget_0.1.0.orig/depcomp
mwget_0.1.0.orig/config.sub
mwget_0.1.0.orig/config.h.in
mwget_0.1.0.orig/config.guess
mwget_0.1.0.orig/aclocal.m4
mwget_0.1.0.orig/ChangeLog
mwget_0.1.0.orig/NEWS
mwget_0.1.0.orig/INSTALL
mwget_0.1.0.orig/Makefile.in
mwget_0.1.0.orig/COPYING
mwget_0.1.0.orig/AUTHORS
mwget_0.1.0.orig/.pc/applied-patches
mwget_0.1.0.orig/.pc/.quilt_series
mwget_0.1.0.orig/.pc/.quilt_patches
mwget_0.1.0.orig/.pc/.version
mwget_0.1.0.orig/mach-info/Makefile
mwget_0.1.0.orig/mach-info/README
mwget_0.1.0.orig/po/LINGUAS
mwget_0.1.0.orig/po/POTFILES.in
mwget_0.1.0.orig/po/zh_CN.po
mwget_0.1.0.orig/po/Makefile.in.in
mwget_0.1.0.orig/src/mwget.cpp
mwget_0.1.0.orig/src/initi18n.h
mwget_0.1.0.orig/src/Makefile.am
mwget_0.1.0.orig/src/i18n.h
mwget_0.1.0.orig/src/utils.h
mwget_0.1.0.orig/src/utils.cpp
mwget_0.1.0.orig/src/url.h
mwget_0.1.0.orig/src/url.cpp
mwget_0.1.0.orig/src/tcp.h
mwget_0.1.0.orig/src/tcp.cpp
mwget_0.1.0.orig/src/task.h
mwget_0.1.0.orig/src/task.cpp
mwget_0.1.0.orig/src/proxy.h
mwget_0.1.0.orig/src/proxy.cpp
mwget_0.1.0.orig/src/progressbar.h
mwget_0.1.0.orig/src/progressbar.cpp
mwget_0.1.0.orig/src/plugin.h
mwget_0.1.0.orig/src/plugin.cpp
mwget_0.1.0.orig/src/macro.h
mwget_0.1.0.orig/src/httpplugin.h
mwget_0.1.0.orig/src/httpplugin.cpp
mwget_0.1.0.orig/src/http.h
mwget_0.1.0.orig/src/http.cpp
mwget_0.1.0.orig/src/header.h
mwget_0.1.0.orig/src/header.cpp
mwget_0.1.0.orig/src/ftpplugin.h
mwget_0.1.0.orig/src/ftpplugin.cpp
mwget_0.1.0.orig/src/ftpparser.h
mwget_0.1.0.orig/src/ftpparser.cpp
mwget_0.1.0.orig/src/ftp.h
mwget_0.1.0.orig/src/ftp.cpp
mwget_0.1.0.orig/src/downloader.h
mwget_0.1.0.orig/src/debug.h
mwget_0.1.0.orig/src/debug.cpp
mwget_0.1.0.orig/src/block.h
mwget_0.1.0.orig/src/block.cpp
mwget_0.1.0.orig/src/advio.h
mwget_0.1.0.orig/src/advio.cpp
mwget_0.1.0.orig/src/downloader.cpp
mwget_0.1.0.orig/src/mwget.h
mwget_0.1.0.orig/src/Makefile.in
mwget_0.1.0.orig/.pc/debian-changes-0.1.0-kmbuild8/configure
mwget_0.1.0.orig/.pc/debian-changes-0.1.0-kmbuild8/src/initi18n.h
mwget_0.1.0.orig/.pc/debian-changes-0.1.0-kmbuild8/src/mwget.cpp
mwget_0.1.0.orig/.pc/debian-changes-0.1.0-kmbuild8/src/downloader.cpp
mwget_0.1.0.orig/.pc/debian-changes-0.1.0-kmbuild8/src/i18n.h
[root@VM_0_8_centos src]# cd mwget_0.1.0.orig

执行./configure

[root@VM_0_8_centos mwget_0.1.0.orig]# ./configurechecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/usr/local/src/mwget_0.1.0.orig':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

根据报错
安装c++编译器

[root@VM_0_8_centos mwget_0.1.0.orig]# yum install gcc-c++
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.8.5-36.el7_6.2 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-36.el7_6.2 for package: gcc-c++-4.8.5-36.el7_6.2.x86_64
--> Processing Dependency: libstdc++ = 4.8.5-36.el7_6.2 for package: gcc-c++-4.8.5-36.el7_6.2.x86_64
--> Running transaction check
---> Package libstdc++.x86_64 0:4.8.5-28.el7 will be updated
---> Package libstdc++.x86_64 0:4.8.5-36.el7_6.2 will be an update
---> Package libstdc++-devel.x86_64 0:4.8.5-36.el7_6.2 will be installed
--> Finished Dependency ResolutionDependencies Resolved===========================================================================================================================================Package                              Arch                        Version                               Repository                    Size
===========================================================================================================================================
Installing:gcc-c++                              x86_64                      4.8.5-36.el7_6.2                      updates                      7.2 M
Installing for dependencies:libstdc++-devel                      x86_64                      4.8.5-36.el7_6.2                      updates                      1.5 M
Updating for dependencies:libstdc++                            x86_64                      4.8.5-36.el7_6.2                      updates                      305 kTransaction Summary
===========================================================================================================================================
Install  1 Package  (+1 Dependent package)
Upgrade             ( 1 Dependent package)Total download size: 9.0 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/3): libstdc++-4.8.5-36.el7_6.2.x86_64.rpm                                                                        | 305 kB  00:00:00
(2/3): libstdc++-devel-4.8.5-36.el7_6.2.x86_64.rpm                                                                  | 1.5 MB  00:00:00
(3/3): gcc-c++-4.8.5-36.el7_6.2.x86_64.rpm                                                                          | 7.2 MB  00:00:01
-------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                      7.8 MB/s | 9.0 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionUpdating   : libstdc++-4.8.5-36.el7_6.2.x86_64                                                                                       1/4 Installing : libstdc++-devel-4.8.5-36.el7_6.2.x86_64                                                                                 2/4 Installing : gcc-c++-4.8.5-36.el7_6.2.x86_64                                                                                         3/4 Cleanup    : libstdc++-4.8.5-28.el7.x86_64                                                                                           4/4 Verifying  : gcc-c++-4.8.5-36.el7_6.2.x86_64                                                                                         1/4 Verifying  : libstdc++-devel-4.8.5-36.el7_6.2.x86_64                                                                                 2/4 Verifying  : libstdc++-4.8.5-36.el7_6.2.x86_64                                                                                       3/4 Verifying  : libstdc++-4.8.5-28.el7.x86_64                                                                                           4/4 Installed:gcc-c++.x86_64 0:4.8.5-36.el7_6.2                                                                                                        Dependency Installed:libstdc++-devel.x86_64 0:4.8.5-36.el7_6.2                                                                                                Dependency Updated:libstdc++.x86_64 0:4.8.5-36.el7_6.2                                                                                                      Complete!

安装完成
再次执行./configure

[root@VM_0_8_centos mwget_0.1.0.orig]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of off_t... 8
checking for pthread_create in -lpthread... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for off_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... ./configure: line 6824: intltool-update: command not foundfound
configure: error: Your intltool is too old.  You need intltool 0.35.0 or later.

提升版本过旧,
安装 intltool

[root@VM_0_8_centos mwget_0.1.0.orig]# yum install intltool
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package intltool.noarch 0:0.50.2-7.el7 will be installed
--> Processing Dependency: perl(XML::Parser) for package: intltool-0.50.2-7.el7.noarch
--> Processing Dependency: patch for package: intltool-0.50.2-7.el7.noarch
--> Processing Dependency: automake for package: intltool-0.50.2-7.el7.noarch
--> Running transaction check
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: autoconf >= 2.65 for package: automake-1.13.4-3.el7.noarch
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
---> Package patch.x86_64 0:2.7.1-10.el7_5 will be installed
---> Package perl-XML-Parser.x86_64 0:2.41-10.el7 will be installed
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
--> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
--> Running transaction check
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved===========================================================================================================================================Package                                 Arch                         Version                               Repository                Size
===========================================================================================================================================
Installing:intltool                                noarch                       0.50.2-7.el7                          os                        59 k
Installing for dependencies:autoconf                                noarch                       2.69-11.el7                           os                       701 kautomake                                noarch                       1.13.4-3.el7                          os                       679 km4                                      x86_64                       1.4.16-10.el7                         os                       256 kpatch                                   x86_64                       2.7.1-10.el7_5                        os                       110 kperl-Data-Dumper                        x86_64                       2.145-3.el7                           os                        47 kperl-Thread-Queue                       noarch                       3.02-2.el7                            os                        17 kperl-XML-Parser                         x86_64                       2.41-10.el7                           os                       223 kTransaction Summary
===========================================================================================================================================
Install  1 Package (+7 Dependent packages)Total download size: 2.0 M
Installed size: 5.5 M
Is this ok [y/d/N]: y
Downloading packages:
(1/8): automake-1.13.4-3.el7.noarch.rpm                                                                             | 679 kB  00:00:00
(2/8): intltool-0.50.2-7.el7.noarch.rpm                                                                             |  59 kB  00:00:00
(3/8): autoconf-2.69-11.el7.noarch.rpm                                                                              | 701 kB  00:00:00
(4/8): patch-2.7.1-10.el7_5.x86_64.rpm                                                                              | 110 kB  00:00:00
(5/8): m4-1.4.16-10.el7.x86_64.rpm                                                                                  | 256 kB  00:00:00
(6/8): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                                                                      |  47 kB  00:00:00
(7/8): perl-Thread-Queue-3.02-2.el7.noarch.rpm                                                                      |  17 kB  00:00:00
(8/8): perl-XML-Parser-2.41-10.el7.x86_64.rpm                                                                       | 223 kB  00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                      2.5 MB/s | 2.0 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : m4-1.4.16-10.el7.x86_64                                                                                                 1/8 Installing : patch-2.7.1-10.el7_5.x86_64                                                                                             2/8 Installing : perl-Thread-Queue-3.02-2.el7.noarch                                                                                     3/8 Installing : perl-XML-Parser-2.41-10.el7.x86_64                                                                                      4/8 Installing : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                     5/8 Installing : autoconf-2.69-11.el7.noarch                                                                                             6/8 Installing : automake-1.13.4-3.el7.noarch                                                                                            7/8 Installing : intltool-0.50.2-7.el7.noarch                                                                                            8/8 Verifying  : autoconf-2.69-11.el7.noarch                                                                                             1/8 Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                     2/8 Verifying  : perl-XML-Parser-2.41-10.el7.x86_64                                                                                      3/8 Verifying  : perl-Thread-Queue-3.02-2.el7.noarch                                                                                     4/8 Verifying  : patch-2.7.1-10.el7_5.x86_64                                                                                             5/8 Verifying  : intltool-0.50.2-7.el7.noarch                                                                                            6/8 Verifying  : automake-1.13.4-3.el7.noarch                                                                                            7/8 Verifying  : m4-1.4.16-10.el7.x86_64                                                                                                 8/8 Installed:intltool.noarch 0:0.50.2-7.el7                                                                                                           Dependency Installed:autoconf.noarch 0:2.69-11.el7                automake.noarch 0:1.13.4-3.el7                m4.x86_64 0:1.4.16-10.el7                    patch.x86_64 0:2.7.1-10.el7_5                perl-Data-Dumper.x86_64 0:2.145-3.el7         perl-Thread-Queue.noarch 0:3.02-2.el7        perl-XML-Parser.x86_64 0:2.41-10.el7        Complete!

再次执行 ./configure

[root@VM_0_8_centos mwget_0.1.0.orig]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of off_t... 8
checking for pthread_create in -lpthread... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for off_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.16.3
checking for XML::Parser... ok
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for bzero... yes
checking for ftruncate... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for mkdir... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing libtool commands
config.status: executing po/stamp-it commands

最后的安装
make

[root@VM_0_8_centos mwget_0.1.0.orig]# make
make  all-recursive
make[1]: Entering directory `/usr/local/src/mwget_0.1.0.orig'
Making all in mach-info
make[2]: Entering directory `/usr/local/src/mwget_0.1.0.orig/mach-info'
echo "#define BUILT_TIME \"`date +%Y-%m-%d` `date +%H:%M:%S`\"">> config.h
echo "#define CC_VERSION \"`LANG=C cc --version |grep cc`\"">> config.h
echo "#define CXX_VERSION \"`LANG=C c++ --version |grep c++`\"">> config.h
echo "#define SYSTEM_TYPE \"`LANG=C uname -o` `LANG=C uname -m`\"" >> config.h
make[2]: Leaving directory `/usr/local/src/mwget_0.1.0.orig/mach-info'
Making all in src
make[2]: Entering directory `/usr/local/src/mwget_0.1.0.orig/src'
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o debug.cpp
mv -f .deps/debug.Tpo .deps/debug.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT advio.o -MD -MP -MF .deps/advio.Tpo -c -o advio.o advio.cpp
mv -f .deps/advio.Tpo .deps/advio.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT tcp.o -MD -MP -MF .deps/tcp.Tpo -c -o tcp.o tcp.cpp
mv -f .deps/tcp.Tpo .deps/tcp.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT url.o -MD -MP -MF .deps/url.Tpo -c -o url.o url.cpp
url.cpp:66:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]};^
url.cpp:66:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
url.cpp:66:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
url.cpp:66:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
url.cpp:66:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
url.cpp:66:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mv -f .deps/url.Tpo .deps/url.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.cpp
mv -f .deps/utils.Tpo .deps/utils.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT block.o -MD -MP -MF .deps/block.Tpo -c -o block.o block.cpp
mv -f .deps/block.Tpo .deps/block.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT header.o -MD -MP -MF .deps/header.Tpo -c -o header.o header.cpp
mv -f .deps/header.Tpo .deps/header.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT plugin.o -MD -MP -MF .deps/plugin.Tpo -c -o plugin.o plugin.cpp
mv -f .deps/plugin.Tpo .deps/plugin.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT proxy.o -MD -MP -MF .deps/proxy.Tpo -c -o proxy.o proxy.cpp
mv -f .deps/proxy.Tpo .deps/proxy.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT task.o -MD -MP -MF .deps/task.Tpo -c -o task.o task.cpp
mv -f .deps/task.Tpo .deps/task.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT http.o -MD -MP -MF .deps/http.Tpo -c -o http.o http.cpp
mv -f .deps/http.Tpo .deps/http.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT httpplugin.o -MD -MP -MF .deps/httpplugin.Tpo -c -o httpplugin.o httpplugin.cpp
mv -f .deps/httpplugin.Tpo .deps/httpplugin.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT ftp.o -MD -MP -MF .deps/ftp.Tpo -c -o ftp.o ftp.cpp
mv -f .deps/ftp.Tpo .deps/ftp.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT ftpparser.o -MD -MP -MF .deps/ftpparser.Tpo -c -o ftpparser.o ftpparser.cpp
ftpparser.cpp: In member function ‘int FtpParser::process_unix(char*)’:
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]NULL};^
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
ftpparser.cpp:174:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mv -f .deps/ftpparser.Tpo .deps/ftpparser.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT ftpplugin.o -MD -MP -MF .deps/ftpplugin.Tpo -c -o ftpplugin.o ftpplugin.cpp
mv -f .deps/ftpplugin.Tpo .deps/ftpplugin.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT downloader.o -MD -MP -MF .deps/downloader.Tpo -c -o downloader.o downloader.cpp
mv -f .deps/downloader.Tpo .deps/downloader.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT mwget.o -MD -MP -MF .deps/mwget.Tpo -c -o mwget.o mwget.cpp
mv -f .deps/mwget.Tpo .deps/mwget.Po
g++ -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/local/share/locale\"    -D_FILE_OFFSET_BITS=64 -MT progressbar.o -MD -MP -MF .deps/progressbar.Tpo -c -o progressbar.o progressbar.cpp
mv -f .deps/progressbar.Tpo .deps/progressbar.Po
/bin/sh ../libtool --tag=CXX   --mode=link g++  -D_FILE_OFFSET_BITS=64   -o mwget debug.o advio.o tcp.o url.o utils.o block.o header.o plugin.o proxy.o task.o http.o httpplugin.o ftp.o ftpparser.o ftpplugin.o downloader.o mwget.o progressbar.o -lssl -lcrypto   -lpthread
libtool: link: g++ -D_FILE_OFFSET_BITS=64 -o mwget debug.o advio.o tcp.o url.o utils.o block.o header.o plugin.o proxy.o task.o http.o httpplugin.o ftp.o ftpparser.o ftpplugin.o downloader.o mwget.o progressbar.o  -lssl -lcrypto -lpthread
make[2]: Leaving directory `/usr/local/src/mwget_0.1.0.orig/src'
Making all in po
make[2]: Entering directory `/usr/local/src/mwget_0.1.0.orig/po'
file=`echo zh_CN | sed 's,.*/,,'`.gmo \&& rm -f $file && /usr/bin/msgfmt -o $file zh_CN.po
make[2]: Leaving directory `/usr/local/src/mwget_0.1.0.orig/po'
make[2]: Entering directory `/usr/local/src/mwget_0.1.0.orig'
make[2]: Leaving directory `/usr/local/src/mwget_0.1.0.orig'
make[1]: Leaving directory `/usr/local/src/mwget_0.1.0.orig'

make install

[root@VM_0_8_centos mwget_0.1.0.orig]# make install
Making install in mach-info
make[1]: Entering directory `/usr/local/src/mwget_0.1.0.orig/mach-info'
echo 'There are configure directory,No files to install!'
There are configure directory,No files to install!
make[1]: Leaving directory `/usr/local/src/mwget_0.1.0.orig/mach-info'
Making install in src
make[1]: Entering directory `/usr/local/src/mwget_0.1.0.orig/src'
make[2]: Entering directory `/usr/local/src/mwget_0.1.0.orig/src'
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"/bin/sh ../libtool   --mode=install /usr/bin/install -c mwget '/usr/local/bin'
libtool: install: /usr/bin/install -c mwget /usr/local/bin/mwget
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/src/mwget_0.1.0.orig/src'
make[1]: Leaving directory `/usr/local/src/mwget_0.1.0.orig/src'
Making install in po
make[1]: Entering directory `/usr/local/src/mwget_0.1.0.orig/po'
linguas="zh_CN "; \
for lang in $linguas; do \dir=/usr/local/share/locale/$lang/LC_MESSAGES; \/bin/sh /usr/local/src/mwget_0.1.0.orig/install-sh -d $dir; \if test -r $lang.gmo; then \/usr/bin/install -c -m 644 $lang.gmo $dir/mwget.mo; \echo "installing $lang.gmo as $dir/mwget.mo"; \else \/usr/bin/install -c -m 644 ./$lang.gmo $dir/mwget.mo; \echo "installing ./$lang.gmo as" \"$dir/mwget.mo"; \fi; \if test -r $lang.gmo.m; then \/usr/bin/install -c -m 644 $lang.gmo.m $dir/mwget.mo.m; \echo "installing $lang.gmo.m as $dir/mwget.mo.m"; \else \if test -r ./$lang.gmo.m ; then \/usr/bin/install -c -m 644 ./$lang.gmo.m \$dir/mwget.mo.m; \echo "installing ./$lang.gmo.m as" \"$dir/mwget.mo.m"; \else \true; \fi; \fi; \
done
installing zh_CN.gmo as /usr/local/share/locale/zh_CN/LC_MESSAGES/mwget.mo
make[1]: Leaving directory `/usr/local/src/mwget_0.1.0.orig/po'
make[1]: Entering directory `/usr/local/src/mwget_0.1.0.orig'
make[2]: Entering directory `/usr/local/src/mwget_0.1.0.orig'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/src/mwget_0.1.0.orig'
make[1]: Leaving directory `/usr/local/src/mwget_0.1.0.orig'

mwget:在sentos下加速wget相关推荐

  1. windows10下使用wget命令(安装失败,请大家提意见)

    windows10下使用wget命令(安装失败,请大家提意见) 下载 下载地址 安装 配置环境变量 计算机–属性–高级系统设置–环境变量 可以在用户变量或者系统变量里新建变量,俩个选一个就行(我在个人 ...

  2. 简单备忘一下Linux下的wget和curl如何使用http proxy

    简单备忘一下Linux下的wget和curl如何使用http proxy wget -e "http_proxy=porxyhost:port" www.baidu.com cur ...

  3. 源代码可以从应用提取码_大规模下加速源代码分析

    引用:Upadhyaya G , Rajan H . On Accelerating Source Code Analysis At Massive Scale[J]. IEEE Transactio ...

  4. 基于proxychains4进行终端加速 wget,curl等

    基于proxychains4进行终端加速 wget,curl等 @(Macbook使用技巧学习) 电脑上使用ss加速后,往往只是浏览器上可用,但是在终端上并不可行,比如wget,curl等.比如这次想 ...

  5. 刷脸支付在新零售行业线上线下加速融合

    以线上线下融合为特点的新零售一定是未来的趋势.而时至今日,马云的新零售概念俨然是当下资本市场最热门的风口,无论是电商大鳄,还是传统商超.创业公司,都在抢先布局这块市场.新零售的概念即企业以互联网为依托 ...

  6. centos7下使用wget命令出现证书错误

    centos7下使用wget命令出现证书错误 错误: 无法验证 downloads.sourceforge.net 的由 "/C=US/O=Let's Encrypt/CN=R3" ...

  7. windows下安装wget进行远程下载

    windows下安装wget进行远程下载 学习记录: 1.下载wget安装包        https://jaist.dl.sourceforge.net/project/gnuwin32/wget ...

  8. els 方块向右移动边界判断、向下加速

    1.函数实现(els.c) #include"els_h.h" //背景数组 char g_arrBackGroud[20][10] = {0}; char g_arrSqare[ ...

  9. Ubuntu下使用wget下载https的文件时候报错

    Ubuntu下使用wget下载https的文件时候报错:Unable to verify the certificate,解决方法如下: wget --no-check-certificate htt ...

  10. sourceforge加速下载_CentOS 7下使用mwget加速wget

    使用wget下载文件时可能十分缓慢,你也可使用mwget进行加速,其中m代表多线程的意思.安装环境:CentOS 71.安装mwgetwget http://jaist.dl.sourceforge. ...

最新文章

  1. 决策树--信息增益,信息增益比,Geni指数的理解
  2. 我的第一个vb实例--红楼梦测试小程序
  3. 如何合理地估算线程池大小?
  4. asp.net 漂亮搜索框_推荐4款影视搜索工具,十一假期让你看剧看到爽
  5. 按需加载图片(图片懒加载)
  6. 数据表-java类的映射
  7. Android基础夯实--你了解Handler有多少?
  8. 信息学奥赛一本通 1911:【00NOIP普及组】税收与补贴问题 | 洛谷 P1023 [NOIP2000 普及组] 税收与补贴问题
  9. Orcale分析函数OVER(PARTITION BY... ORDER BY...)的讲解
  10. 基于Java的敬老院管理系统
  11. 微软应用商店_重新安装微软应用商店,并解决无法联网的问题
  12. 泛微oa明细表添加按钮_泛微OA系统表结构说明
  13. laas和saas_什么是IaaS,PaaS和SaaS及其区别
  14. 看完这篇,你一定会打开谷歌搜索...
  15. 用matlab解决多重共线性问题,多重共线性和非线性回归的问题
  16. 干货分享!简单的python爬取网站数据。
  17. K-Means(K均值聚类)原理及代码实现
  18. 淘宝系统 B2C电子商务系统UML建模 范例
  19. 解决 : ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directo
  20. Python新建、写入和修改txt(文本文档)

热门文章

  1. linux卸载gmp,开源算法库GMP的安装与调试
  2. 博客园的成长史,全都烙印在从古至今的 400 多万条评论里了
  3. 为什么数据库尽量不用UUID作为主键
  4. Understanding Convolutional Neural Networks for NLP
  5. 构造函数 —— 学生信息类
  6. 《Hadoop》呶呶不休(五)Windows10下的Eclipse搭建Hadoop2.7.3开发环境
  7. 荣耀MagicBook如何重装系统?荣耀MagicBook重装Win10系统教程
  8. MYSQL学习日记(五)
  9. python爬虫关键词_通过Python爬虫按关键词抓取相关的新闻
  10. 避免项目进度延期,5大有效措施!