Linux多线程下载工具mwget(加速wget下载速度)
前提准备
yum -y install openssl openssl-devel gcc gcc-c++ intltool bzip2
安装
wget http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2
tar -xjvf mwget_0.1.0.orig.tar.bz2
cd mwget_0.1.0.orig
./configure --prefix=/opt/mwget
make && make install
问题解决
问题1
configure: error: cannot guess build type; you must specify one
解决方法:手动指定参数
./configure --host=i686-w64-mingw32 --prefix=/usr/local/target/opensdk --enable-static --disable-shared --with-mp4v2=no --build=i686-pc-linux
问题2
make:error:报错strcmp’ was not declared in this scope
解决方法:修改src对应的文件,在头部新增以下三行代码
#include <string.h>
#include <string>
using std::string;
可能报错的文件:
httpplugin.cpp
ftpplugin.cpp
downloader.cpp
指定mwget全局执行
建立软连接
ln -s /mwget_0.1.0.orig/src/mwget /usr/bin/mwget
大功告成
mwget https://archive.kernel.org/centos-vault/altarch/7.7.1908/isos/aarch64/CentOS-7-aarch64-Minimal-1908.iso