项目中连个下载项目ctorrent和wget的编辑记录

这个对个人有用,对其他人参考意义不大。


将ctorrent的原包在linux下编译成功。

./configure
make




将我们的项目ctorrent也在linux下编译成功。
编译过程如下:
./configure
make




wget的编译  
wget1.18.tar.gz解压
./configure
  提示:
checking for ZLIB... yes
checking for GNUTLS... no
configure: error: Package requirements (gnutls) were not met:


No package 'gnutls' found


Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.


Alternatively, you may set the environment variables GNUTLS_CFLAGS
and GNUTLS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
执行yum install gnutls后提示已经安装了。那么就是警告的问题了,但是也不知道怎么办。忽然想到也许应该有devel的
执行yum install gnutls-devel
再次执行./configure
无错误提醒。
执行命令make,遇到错误提醒
gnutls.c:41:29: error: gnutls/abstract.h: No such file or directory


install libghc-gnutls-dev
还是不行
继续执行yum install lib*-gnutls*
错误依旧。reboot,还是不行。重新进行./configure


放弃:
解压新的包:
执行./configure
make
也遇到了问题


使用cygwin进行ctorrent,make的时候遇到的问题。
make[1]: fork: Resource temporarily unavailable
查找原因说是:
当出现”bash: fork: Resource temporarily unavailable”时,一般来说是系统上的进程数量太多了,达到了命令”ulimit -u”的限制。(当系统进程达到限制后,kernel会自动kill掉一些进程,这就是好我过一会又能操作的原因了。)这种情况产生的原因,一是某个程序有bug,不断地fork新的进程消耗系统资源,二是可能中了病毒(恶意程序),比如所谓的fork炸弹。


这是一台老电脑可能是系统比较慢的原因。换一台试试。



你可能感兴趣的:(linux)