[GH-ISSUE #262] frpc出现-ash: ./frpc: not found #187

Closed
opened 2026-05-05 11:57:18 -06:00 by gitea-mirror · 13 comments
Owner

Originally created by @fsyxhua on GitHub (Feb 22, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/262

运行环境:
Openwrt x64环境
root@Gargoyle-X64:~/frp# uname -a
Linux Gargoyle-X64 3.18.44 #17 SMP Wed Jan 25 15:37:49 CST 2017 x86_64 GNU/Linux

错误描述:
root@Gargoyle-X64:~/frp# ./frpc
-ash: ./frpc: not found


2017-2-23 15:30更新
经过自己摸索,google,问题解决:
[root@localhost frp]# ldd frpc
linux-vdso.so.1 => (0x00007ffc4cbbe000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1cefb59000)
libc.so.6 => /lib64/libc.so.6 (0x00007f1cef798000)
/lib64/ld-linux-x86-64.so.2 (0x000055a96aed8000)
发现程序依赖了一下库,将这些库拷贝到Openwrt的/lib目录下,运行frpc没有问题!!!

Originally created by @fsyxhua on GitHub (Feb 22, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/262 运行环境: Openwrt x64环境 root@Gargoyle-X64\:~/frp# uname -a Linux Gargoyle-X64 3.18.44 #17 SMP Wed Jan 25 15:37:49 CST 2017 x86_64 GNU/Linux 错误描述: root@Gargoyle-X64\:~/frp# ./frpc -ash: ./frpc: not found -------------- 2017-2-23 15:30更新 经过自己摸索,google,问题解决: [root@localhost frp]# ldd frpc linux-vdso.so.1 => (0x00007ffc4cbbe000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1cefb59000) libc.so.6 => /lib64/libc.so.6 (0x00007f1cef798000) /lib64/ld-linux-x86-64.so.2 (0x000055a96aed8000) 发现程序依赖了一下库,将这些库拷贝到Openwrt的/lib目录下,运行frpc没有问题!!!
Author
Owner

@blizard863 commented on GitHub (Feb 22, 2017):

@fsyxhua 稍微描述清楚一点,没办法定位问题。 尴尬脸!!

<!-- gh-comment-id:281592195 --> @blizard863 commented on GitHub (Feb 22, 2017): @fsyxhua 稍微描述清楚一点,没办法定位问题。 尴尬脸!!
Author
Owner

@fatedier commented on GitHub (Feb 22, 2017):

检查 frpc 路径是否正确,确认是否具有可执行权限。

<!-- gh-comment-id:281593337 --> @fatedier commented on GitHub (Feb 22, 2017): 检查 frpc 路径是否正确,确认是否具有可执行权限。
Author
Owner

@engineerlzk commented on GitHub (Feb 22, 2017):

应该是没有给frpc可执行权限,shell,进入你的frpc安装目录执行
chmod +x frpc
就可以了

<!-- gh-comment-id:281600314 --> @engineerlzk commented on GitHub (Feb 22, 2017): 应该是没有给frpc可执行权限,shell,进入你的frpc安装目录执行 chmod +x frpc 就可以了
Author
Owner

@fsyxhua commented on GitHub (Feb 23, 2017):

@fatedier 就在当前目录下,所以执行./frpc的,确定有可执行权限

<!-- gh-comment-id:281872039 --> @fsyxhua commented on GitHub (Feb 23, 2017): @fatedier 就在当前目录下,所以执行./frpc的,确定有可执行权限
Author
Owner

@fsyxhua commented on GitHub (Feb 23, 2017):

@engineerlzk 如果没给可执行权限,会提示
-bash: ./frpc: 权限不够

<!-- gh-comment-id:281872603 --> @fsyxhua commented on GitHub (Feb 23, 2017): @engineerlzk 如果没给可执行权限,会提示 -bash: ./frpc: 权限不够
Author
Owner

@fsyxhua commented on GitHub (Feb 23, 2017):

@bingtianbaihua 就是没法执行,明明有可执行权限,而且路径就在当前文件夹下,所以路径也没错,但是就是说not found,貌似以前在迅雷论坛发现Xware的软件在linux上也出现过这种问题的。

<!-- gh-comment-id:281873169 --> @fsyxhua commented on GitHub (Feb 23, 2017): @bingtianbaihua 就是没法执行,明明有可执行权限,而且路径就在当前文件夹下,所以路径也没错,但是就是说not found,貌似以前在迅雷论坛发现Xware的软件在linux上也出现过这种问题的。
Author
Owner

@engineerlzk commented on GitHub (Feb 23, 2017):

第一,你用的frpc是针对哪个操作系统的(下载的哪个程序包)?
第二,用winscp进入你的frpc目录截个图来看看
尽量多的提供一些辅助信息有望帮助你解决问题

<!-- gh-comment-id:281874913 --> @engineerlzk commented on GitHub (Feb 23, 2017): 第一,你用的frpc是针对哪个操作系统的(下载的哪个程序包)? 第二,用winscp进入你的frpc目录截个图来看看 尽量多的提供一些辅助信息有望帮助你解决问题
Author
Owner

@fatedier commented on GitHub (Feb 23, 2017):

给你的系统提 bug~

<!-- gh-comment-id:281877114 --> @fatedier commented on GitHub (Feb 23, 2017): 给你的系统提 bug~
Author
Owner

@fsyxhua commented on GitHub (Feb 23, 2017):

@fatedier 认为是系统的问题?
@engineerlzk openwrt x64

<!-- gh-comment-id:281880259 --> @fsyxhua commented on GitHub (Feb 23, 2017): @fatedier 认为是系统的问题? @engineerlzk openwrt x64
Author
Owner

@engineerlzk commented on GitHub (Feb 23, 2017):

@fsyxhua 知道你用的是openwrt x64软路由系统,我问你的是你在此下载的frpc是哪一个文件包?还有就是用winscp进入你frpc的安装目录截个完整的图片来看看

<!-- gh-comment-id:281880922 --> @engineerlzk commented on GitHub (Feb 23, 2017): @fsyxhua 知道你用的是openwrt x64软路由系统,我问你的是你在此下载的frpc是哪一个文件包?还有就是用winscp进入你frpc的安装目录截个完整的图片来看看
Author
Owner

@fsyxhua commented on GitHub (Feb 23, 2017):

@engineerlzk frp_0.9.3_linux_amd64.tar.gz,不好截图的

<!-- gh-comment-id:281881072 --> @fsyxhua commented on GitHub (Feb 23, 2017): @engineerlzk frp_0.9.3_linux_amd64.tar.gz,不好截图的
Author
Owner

@fsyxhua commented on GitHub (Feb 23, 2017):

@fatedier @engineerlzk 应该是glibc的问题,问题解决了,详见楼顶更新内容,go编译出来的程序还需要C库,难道代码中有C???

<!-- gh-comment-id:281918264 --> @fsyxhua commented on GitHub (Feb 23, 2017): @fatedier @engineerlzk 应该是glibc的问题,问题解决了,详见楼顶更新内容,go编译出来的程序还需要C库,难道代码中有C???
Author
Owner

@panjian-win commented on GitHub (Dec 29, 2017):

请教各位:
frp能在openwrt x86上运行过吗? 自己编译固件还是?
跪求 万分感谢!

<!-- gh-comment-id:354393189 --> @panjian-win commented on GitHub (Dec 29, 2017): 请教各位: frp能在openwrt x86上运行过吗? 自己编译固件还是? 跪求 万分感谢!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#187
No description provided.