LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1591|回复: 8

编译安装libtorrent 0.12.1,make不过去

[复制链接]
发表于 2008-5-2 09:29:37 | 显示全部楼层 |阅读模式
rtorrent 0.8.1一出来就迫不及待的想整上,当然先装libtorrent 0.12.1

./autogen.sh
./configure
都没有问题,一make就提示

[PHP]../../../libtool: line 459: CDPATH: command not found
../../../libtool: line 1262: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2
libtool: and run autoconf again.
make[4]: *** [block.lo] Error 63
make[4]: Leaving directory `/home/innuendo/Desktop/libtorrent-0.12.1/src/torrent/data'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/innuendo/Desktop/libtorrent-0.12.1/src/torrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/innuendo/Desktop/libtorrent-0.12.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/innuendo/Desktop/libtorrent-0.12.1'
make: *** [all] Error 2[/PHP]

我就不明白 how to recreate aclocal.m4,大家看看是怎么回事?
发表于 2008-5-2 09:43:47 | 显示全部楼层
帮顶,一起等大牛~~~
回复 支持 反对

使用道具 举报

发表于 2008-5-2 11:38:30 | 显示全部楼层
要打不少补丁的,上游作者从0.79以来对4.3的问题一直都不咋理会,主要是别的发行版来做补丁,可能太忙了

http://www.fs2you.com/files/49d169e3-17f0-11dd-be0d-0014221f4662/
三天有效,凑合用
回复 支持 反对

使用道具 举报

发表于 2008-5-2 11:54:09 | 显示全部楼层
0.13已经出来了,为什么要编译0.12.1呢?里面也有gcc4.3的补丁。
http://aur.archlinux.org/packages.php?ID=14940

Sorry,搞错了,那是rb-libtorrent
回复 支持 反对

使用道具 举报

发表于 2008-5-2 12:04:14 | 显示全部楼层
两码事,rtorrent的libtorrent在:
http://libtorrent.rakshasa.no/
[PHP]
Disclaimer

This is not the same libtorrent project as the one found on SourceForge.
[/PHP]

P.S:
晚了一步
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-2 21:31:55 | 显示全部楼层
Post by superjet;1844815
要打不少补丁的,上游作者从0.79以来对4.3的问题一直都不咋理会,主要是别的发行版来做补丁,可能太忙了

http://www.fs2you.com/files/49d169e3-17f0-11dd-be0d-0014221f4662/
三天有效,凑合用

thanks,整上了,另外用rtorrent的朋友有没有disk cache的优化建议,怎么速度上M后,硬盘完全是狂闪。
回复 支持 反对

使用道具 举报

发表于 2008-5-3 22:35:34 | 显示全部楼层
对于多数人而言,过兆的速度很少见,如果经常是这样的话,可以考虑限制下速度(谁愿意干???) download_rate = 900,要么尝试设置下rtorrent不建议随意调整的部分:
[PHP]
#
# Do not modify the following parameters unless you know what you're doing.
#

# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
#hash_read_ahead = 10

# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100

# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#hash_max_tries = 10
[/PHP]

另外,对rtorrent日常使用而言,除了放到screen或dtach下运行(方便detach和retach)和开启DHT、启用加密外,最好将完成后的hash检查关掉,注意的几个地方如下(也是我用的设置):
~/.rtorrent.rc
[PHP]
encoding_list = UTF-8
upload_rate = 15
directory = ~/.torrent
session = ~/.session
schedule = watch_directory,5,5,load_start=~/.watch/*.torrent
port_range = 6388-6388
check_hash = no
use_udp_trackers = yes
encryption = allow_incoming,enable_retry,prefer_plaintext
dht = auto
dht_port = 6988
peer_exchange = yes
[/PHP]
回复 支持 反对

使用道具 举报

发表于 2008-5-3 23:13:29 | 显示全部楼层
不过我下载BT通常不会考虑rtorrent ,一般是deluge
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-3 23:59:48 | 显示全部楼层
Post by superjet;1845355
另外,对rtorrent日常使用而言,除了放到screen或dtach下运行(方便detach和retach)和开启DHT、启用加密外,最好将完成后的hash检查关掉,注意的几个地方如下(也是我用的设置):
~/.rtorrent.rc

我的 check hash 是关掉的,除了没限速外,其他设置和你的差不多,我也是结合screen用。包括官方,也没看到过多关于 disk cache 方面的东西。

其实下载感觉还好,主要就是上传时硬盘狂读。感觉 rt 没有 ut 对磁盘缓存控制得好。因为经常去高清站,都是生怕自己上传低、上传慢,全是不限速,4-5M的速度只能算是中等带宽。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表