关于运行程序时 No such file or directory 的问题

新手涉及到的教学或入门贴,推荐新手必看,版主维护
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#16

帖子 BigSnake.NET » 2008-08-30 21:53

Nature-G 写了:ldd:
not a dynamic executable
file 那个文件
还有贴一下你用什么版本的系统
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
枯叶啊枯叶
帖子: 1
注册时间: 2008-09-21 0:14

#17

帖子 枯叶啊枯叶 » 2008-09-21 0:48

ubuntu-8.04-desktop-amd64

screen-4.0.2


usr/screen-4.0.2/bin/screen-4.0.2: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
xiehoo
帖子: 16
注册时间: 2008-10-29 18:28

Re: 关于运行程序时 No such file or directory 的问题

#18

帖子 xiehoo » 2008-10-29 18:32

ubuntu-8.04-liveCD-amd64

上校园网用的锐捷客户端 文件名大概是xrgrsu

上不去网郁闷啊 谁知道怎么解决?
himandy
帖子: 100
注册时间: 2008-11-09 13:43

Re: 关于运行程序时 No such file or directory 的问题

#19

帖子 himandy » 2010-12-18 21:41

我现在使用10.04,也出现这个问题。程序明明放在桌面,却运行不了。用户文件夹下面有一个快捷方式,指向用户桌面,但是有大小写之分……

himandy@himandy-desktop:~$ cd /home/himandy/desktop
-bash: cd: /home/himandy/desktop: 没有那个文件或目录
himandy@himandy-desktop:~$ cd /home/himandy/Desktop
himandy@himandy-desktop:~/Desktop$ bash hello
Hello World
himandy@himandy-desktop:~/Desktop$ ldd hello
不是动态可执行文件


注:我刚刚在学习bash命令,按照例子建了一个名叫hello的文件,给了可执行的权限,但是直接运行不了。文件内容:

#!/bin/bash
echo Hello World
wdh8686
帖子: 3
注册时间: 2010-12-16 17:49

Re: 关于运行程序时 No such file or directory 的问题

#20

帖子 wdh8686 » 2010-12-21 0:35

同样的问题,期待前辈解答。
himandy
帖子: 100
注册时间: 2008-11-09 13:43

Re: 关于运行程序时 No such file or directory 的问题

#21

帖子 himandy » 2010-12-21 23:06

我后来明白了,终端的xxx@xxx-desktop指向用户xxx的主文件夹,把程序放在主文件夹下面就能直接运行,不需要在命令中写地址。xxx-desktop是指用户xxx的电脑终端。

而如果你用的是中文版系统,则用户xxx的桌面具体位置是 /home/xxx/桌面。所以程序放在桌面的话,不能直接运行。

主文件夹还有个快捷方式Desktop,指向桌面。
回复