LinuxSir.cn,穿越时空的Linuxsir!

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

明明有gawk却提示No such file or dir. ? why?

[复制链接]
发表于 2003-4-19 09:17:00 | 显示全部楼层 |阅读模式
请看:

I have no name!:/static/bin# ./gawk
bash: ./gawk: No such file or directory
I have no name!:/static/bin#


why why?
重编译过一次 gawk 也没用。
 楼主| 发表于 2003-4-19 09:18:39 | 显示全部楼层
对不起,上面复制错了,是下面这个
I have no name!:/static/bin# ls -l gawk
-rwxr-xr-x    2 0        0          263236 Apr 19 01:09 gawk
I have no name!:/static/bin# ./gawk
bash: ./gawk: No such file or directory
I have no name!:/static/bin#
 楼主| 发表于 2003-4-19 09:35:50 | 显示全部楼层

不好意思,竟然是faq

7.1.1.        

No such file or directory
       

Examples of this error are:

/usr/bin/env: /static/bin/bash: No such file or directory
gcc: No such file or directory

They usually occur when trying to enter (or shortly after entering) chroot in Chapter 6, and are caused by trying to run a dynamically linked binary at that point. You can check by running file on the binary. For example:

file $LFS/static/bin/bash

If it doesn't say something about "statically linked", there is a problem.

The solution is to go back to Chapter 5, delete and re-extract the source if you haven't already, and recompile the affected package. And this time, take extra care with the instructions for compiling it statically.
发表于 2003-4-19 09:43:21 | 显示全部楼层
现在这个faq比以前更新快了,呵呵,比较准确啊!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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