mwget:在sentos下加速wget

4 篇文章 0 订阅
1 篇文章 0 订阅

下载 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]# ./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++... 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 Resolution

Dependencies 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 k

Transaction 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 transaction
  Updating   : 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 found
 found
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 Resolution

Dependencies 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 k
 automake                                noarch                       1.13.4-3.el7                          os                       679 k
 m4                                      x86_64                       1.4.16-10.el7                         os                       256 k
 patch                                   x86_64                       2.7.1-10.el7_5                        os                       110 k
 perl-Data-Dumper                        x86_64                       2.145-3.el7                           os                        47 k
 perl-Thread-Queue                       noarch                       3.02-2.el7                            os                        17 k
 perl-XML-Parser                         x86_64                       2.41-10.el7                           os                       223 k

Transaction 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 transaction
  Installing : 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'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值