需要在服务上进行wget下载一些东西,但是使用wget较慢,而服务器的CPU核数也比较多,于是想安装mwget,至于mwget之前也有过一篇文章:http://www.04007.cn/article/523.html 但这次在debian多台服务器上都安装失败,网上能找到的资料也很少,先在这里记一下这个错误留待以后再看:本文地址:http://www.04007.cn/article/693.html,未经许可,不得转载.
#下载资源到目录 root@user19:/# cd /data01/downloads root@user19:/data01/downloads# wget http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2 root@user19:/data01/downloads# tar -xjvf mwget_0.1.0.orig.tar.bz2 #编译时提示intltool-update,之前使用下载安装,这里直接使用apt安装解决 root@user19:/data01/downloads/mwget_0.1.0.orig# ./configure 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. root@user19:/data01/downloads/mwget_0.1.0.orig# apt-get install intltool root@user19:/data01/downloads/mwget_0.1.0.orig# ./configure ...... 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: config.h is unchanged config.status: executing depfiles commands config.status: executing default-1 commands config.status: executing libtool commands config.status: executing po/stamp-it commands #configure是成功的,但是在下面执行make的时候报错httpplugin.cpp问题 root@user19:/data01/downloads/mwget_0.1.0.orig# make && make install ...... httpplugin.cpp: In member function ‘virtual int HttpPlugin::get_info(Task*)’: httpplugin.cpp:105:44: error: ‘strcmp’ was not declared in this scope if(strcmp(location, task->url.get_url()) == 0) break; ^ httpplugin.cpp:149:42: error: ‘strstr’ was not declared in this scope filename = strstr(filename, "filename="); ^ httpplugin.cpp:151:34: error: ‘strlen’ was not declared in this scope filename += strlen("filename="); ^ Makefile:385: recipe for target 'httpplugin.o' failed make[2]: *** [httpplugin.o] Error 1 make[2]: Leaving directory '/data01/downloads/mwget_0.1.0.orig/src' Makefile:323: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/data01/downloads/mwget_0.1.0.orig' Makefile:252: recipe for target 'all' failed make: *** [all] Error 2本文地址:http://www.04007.cn/article/693.html,未经许可,不得转载.
本文地址:http://www.04007.cn/article/693.html 未经许可,不得转载. 手机访问本页请扫描下方二维码:
|