扫描二维码关注官方公众号
返回列表 发布新帖

为什么我的transmission总是不能自动运行啊?

8346 11
发表于 2009-7-16 23:53:00 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
log里记录如下:/share/HDA_DATA/.qpkg/Optware/bin/transmission-daemon: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory
用ipkg install libevent说已经安装过,我怀疑是调用路径不对,所以把libevent*文件都复制到/lib下,重启NAS,还是一样的问题啊!!
我参考了http://www.gebi1.com/thread-1469-1-1.html 严格按里面讲的做,但是反复几次还是不行啊,晕死了。。。本来就对LINUX不熟,请高手来指点一二!!先谢谢了!!

评论11

anskneunLv.2 发表于 2009-7-22 11:26:52 | 显示全部楼层
顺便学习一下。
回复 点赞

使用道具 举报

gangglLv.6 发表于 2009-7-31 13:36:38 | 显示全部楼层
因为你的是单盘,或者说没有做RAID1,因此不能严格照我说的做,把命令中所有MD0_DATA的内容替换为HDA_DATA试一下。
回复 点赞

使用道具 举报

ewazxLv.3 发表于 2009-7-31 14:38:57 | 显示全部楼层
什么型号的机器?ts-119我没碰到过问题。网上有个类似的错误解决方式不知道可以否?
In my situation, I ran into an error

    error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory

It turned out that the new libevent get installed, it doesn’t “register” the actual library file (similar to DLL on Windows) with the system. When Memcached runs, it tries to look for the libevent-1.4.so.2 file but since libevent is still playing hide and seek somewhere, memcached cries.

To fix this, we need to manually load the libevent library file into the system via the ld configuration. From the man page of ld:

    ld combines a number of object and archive files, relocates their data and ties up symbol references. Usually the last step in compiling a program is to run ld.

I like to think ld as the regsrv32 used to register DLL’s on Windows. Now to fix up the reference to the libevent so file, we need to create a file under /etc/ld.so.conf.d/

    # vi /etc/ld.so.conf.d/libevent-i386.conf

then enter

    /usr/local/lib/

Write and quit (:wq!)

The path in the libevent-i386.conf is the path where the actual .so files are located at. We set this path when we run the ./configure –prefix=/usr/local/ during the libevent compilation. Reloading the ld configuration with
回复 点赞

使用道具 举报

llzlgbLv.3 发表于 2009-8-11 11:31:05 | 显示全部楼层
我也安装了,能够正常运行,但也和你一样,transmission总是不能自动运行,log里也记录如下:/share/HDA_DATA/.qpkg/Optware/bin/transmission-daemon: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory,看那位大侠能帮忙,我的是ts-219.
回复 点赞

使用道具 举报

ewazxLv.3 发表于 2009-8-17 13:29:14 | 显示全部楼层
ts-219的路径不对。2个盘符的路径大概是MD0_DATA,不是HDA_DATA。HDA_DATA是用在单盘的NAS上的,你用putty进管理界面确认下路径。
回复 点赞

使用道具 举报

llzlgbLv.3 发表于 2009-8-19 18:16:43 | 显示全部楼层
你好,我的ts-219的是单盘的,路径是对的,按照你的教程安装能够正常运行,但总不能自动运行,都是试过几次了。
回复 点赞

使用道具 举报

ewazxLv.3 发表于 2009-8-20 08:53:36 | 显示全部楼层
。。。我没219可以试。你在命令行里面单独打

/share/HDA_DATA/.qpkg/Optware/bin/transmission-daemon
可以用吗?

检查下,transmission的安装位置在哪里,或者换个安装目录看看。
回复 点赞

使用道具 举报

llzlgbLv.3 发表于 2009-8-20 17:39:01 | 显示全部楼层
你好,我用winscp看过,transmission的安装位置就是在/share/HDA_DATA/.qpkg/Optware/bin/transmission-daemon,但在命令行里面单独打

/share/HDA_DATA/.qpkg/Optware/bin/transmission-daemon,用ps看,transmission-daemon是运行了的,但联不了机,如果我先用/share/HDA_DATA/.qpkg/Optware/bin/transmission.sh这个命令,再用transmission-daemon这个命令,就可以联机,也可以正常下载,但nas重起后就不能运行,不知为什么?
回复 点赞

使用道具 举报

llzlgbLv.3 发表于 2009-8-20 18:30:44 | 显示全部楼层
你好,用你以下的方式,我安装成功了,谢谢你-ewazx.
你试下:
#export EVENT_NOEPOLL=0
/bin/echo "/share/HDA_DATA/.qpkg/Optware/lib" >> /etc/ld.so.conf
/sbin/ldconfig

/share/HDA_DATA/.qpkg/Optware/bin/transmission-daemon -g /share/Qdownload/transmission/.config/
回复 点赞

使用道具 举报

ewazxLv.3 发表于 2009-8-21 09:03:16 | 显示全部楼层
恩,主要四ldconfig作用,搜索了下:
1. 往/lib和/usr/lib里面加东西,是不用修改/etc/ld.so.conf的,但是完了之后要调一下ldconfig,不然这个library会找不到
2. 想往上面两个目录以外加东西的时候,一定要修改/etc/ld.so.conf,然后再调用ldconfig,不然也会找不到
比如安装了一个mysql到/usr/local/mysql,mysql有一大堆library在/usr/local/mysql/lib下面,这时就需要在/etc/ld.so.conf下面加一行/usr/local/mysql/lib,保存过后ldconfig一下,新的library才能在程序运行时被找到。
3. 如果想在这两个目录以外放lib,但是又不想在/etc/ld.so.conf中加东西(或者是没有权限加东西)。那也可以,就是export一个全局变量LD_LIBRARY_PATH,然后运行程序的时候就会去这个目录中找library。一般来讲这只是一种临时的解决方案,在没有权限或临时需要的时候使用。
4. ldconfig做的这些东西都与运行程序时有关,跟编译时一点关系都没有。编译的时候还是该加-L就得加,不要混淆了。
5. 总之,就是不管做了什么关于library的变动后,最好都ldconfig一下,不然会出现一些意想不到的结果。不会花太多的时间,但是会省很多的事。
回复 点赞

使用道具 举报

rnirLv.6 发表于 2010-3-9 21:32:55 | 显示全部楼层
qnap的系统和ls不太一样,你做的修改会在每次重启后被清除。
可以参照官方wiki上的方法
http://wiki.qnap.com/wiki/Running_Your_Own_Application_at_Startup
我试了LS几种方法都无法开机自动运行!都要TELNET到主机手动开启程序。
我的是QNAP TS-419P,Transmission是1.91。
p_abing 发表于 2010-3-9 19:31
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表