OpenWrt 安装 mentohust 后提示 not found

2015-11-24 21:41:32 +08:00
 tyhunter
直接安装的二进制文件到 /usr/bin 和 /usr/sbin 下,加了权限后提示 not found
root@OpenWrt:~# chmod +x /usr/sbin/mentohust
root@OpenWrt:~# chmod +x /usr/bin/mentohust
root@OpenWrt:~# mentohust
-ash: mentohust: not found

试着执行 /usr/sbin/mentohust ,结果一样 not found

尝试安装 libpcap_1.1.1-2_ar71xx.ipk (依赖库)和 mentohust_0.3.1-1_ar71xx.ipk 后
依旧
root@OpenWrt:~# mentohust
-ash: mentohust: not found
804 次点击
所在节点    OpenWrt
32 条回复
Tink
2015-11-24 21:44:23 +08:00
/bin 下呢
tyhunter
2015-11-24 21:46:11 +08:00
@Tink 依旧 not found
root@OpenWrt:~# chmod +x /bin/mentohust
root@OpenWrt:~# /bin/mentohust
-ash: /bin/mentohust: not found
xmoiduts
2015-11-24 21:56:15 +08:00
我可以说我也遇到 not found 这个问题了么, chmod a+x, /bin/XXXXX (程序路径) 。
branchzero
2015-11-24 21:58:52 +08:00
先用 find / -name mentohust 找下位置再对症下药吧。。。
tyhunter
2015-11-24 22:05:00 +08:00
@branchzero 原谅我是 OP 小白,只能照猫画虎试了下
root@OpenWrt:~# find / -name mentohust
/overlay/upper/usr/bin/mentohust
/usr/bin/mentohust
然后我把 /overlay/upper/usr/bin/mentohust 这个文件删掉了,运行
root@OpenWrt:~# /usr/bin/mentohust
-ash: /usr/bin/mentohust: not found
root@OpenWrt:~# mentohust
-ash: mentohust: not found
root@OpenWrt:~#
tyhunter
2015-11-24 22:06:04 +08:00
@xmoiduts 很苦恼, google 了很久几乎没有找到同问题的解决方案,有的也是 mac/freebsd 平台下的解决方案,但在 openwrt 下并不起作用
tyhunter
2015-11-24 22:07:01 +08:00
@xmoiduts chmod a+x 后还是 not found...我都在 WinScp 下把文件权限设置为 0777 了
branchzero
2015-11-24 22:14:11 +08:00
你确定 /usr/bin/mentohust 是二进制文件么,怎么感觉显示做了一层链接,到别的路径去了?
branchzero
2015-11-24 22:16:08 +08:00
ls -l /usr/bin/mentohust 看看输出什么吧
RickyBoy
2015-11-24 22:16:59 +08:00
@tyhunter /usr/bin/mentohust 有可能只是 /overlay/upper/usr/bin/mentohust 的链接,所以干嘛要删掉这个文件
tyhunter
2015-11-24 22:17:11 +08:00
@branchzero 是二进制文件,至少 Mac 下显示种类是 Unix executable
Return2legacy
2015-11-24 22:17:49 +08:00
直接 cd 进去./运行,感觉是库找不到,手动 export 一下
tyhunter
2015-11-24 22:18:13 +08:00
@RickyBoy 我不懂 Unix 命令只是觉得多了个文件所以顺手删掉了(现在恢复回来了)
Tink
2015-11-24 22:19:06 +08:00
是只有 mentohust 这一个文件还是所有自己放到 /usr/bin/下面的+x 的文件都 not found ?比如自己写个 shell 脚本放进去试试
tyhunter
2015-11-24 22:19:28 +08:00
@branchzero root@OpenWrt:~# ls -l /usr/bin/mentohust
-rwxr-xr-x 1 root root 204592 Aug 23 2011 /usr/bin/mentohust
Tink
2015-11-24 22:20:19 +08:00
which mentohust 试一下
tyhunter
2015-11-24 22:20:45 +08:00
@Tink 是只有 Mentohust ,我试了运行下同目录 openwrt 自带 iwinfo ,能运行
tyhunter
2015-11-24 22:21:06 +08:00
@Tink root@OpenWrt:~# which mentohust
/usr/bin/mentohust
Tink
2015-11-24 22:23:13 +08:00
真是邪门了, which 都能找到说明系统环境变量没问题,也说明 mentohust 确实是可执行的二进制文件。。
tyhunter
2015-11-24 22:26:31 +08:00
@Tink 太邪门了, Google 都没找到这案例,路由器是 GL-INET ,和 TP-LINK WR720N 是同一配置,我白天刷了恩山别人集成锐捷的 720N 固件,替换掉 /usr/bin/mentohust 为当前用的这个文件就能上网,但好像 USB 挂载口有问题,所以上 openwrt 官网找了适配 GL-INET 的固件,但刷完配置 mentohust 就卡这一步了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/238643

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX