分页: 1 / 1

ubuntu10.10下bash看不到某些文件

发表于 : 2011-03-30 9:23
tingw
发现bash对某些文件视而不见
我的/opt/ldoce5/目录下面存在可执行文件ldoce5-bin,
但我无论是运行/opt/ldoce5/ldoce5-bin还是进入目录/opt/ldoce5运行./ldoce5-bin均
提示:
bash: /opt/ldoce5/ldoce5-bin: 没有那个文件或目录 或者
bash: ./ldoce5-bin: 没有那个文件或目录
但这个文件实际上是存在的
运行:
ls /opt/ldoce5/ldoce5-bin -l 的结果为:
-rwxrwxrwx 1 zhangchao zhangchao 181780 2011-03-30 01:05 /opt/ldoce5/ldoce5-bin
求高手指教,谢谢!

附上stat,file,ldd的结果
stat /opt/ldoce5/ldoce5-bin
File: “/opt/ldoce5/ldoce5-bin”
Size: 181780 Blocks: 360 IO Block: 4096 普通文件
Device: 808h/2056d Inode: 1836551 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 1000/zhangchao) Gid: ( 1000/zhangchao)
Access: 2011-03-30 01:05:50.424157003 +0800
Modify: 2011-03-30 01:05:41.594157003 +0800
Change: 2011-03-30 01:05:41.594157003 +0800

file /opt/ldoce5/ldoce5-bin
/opt/ldoce5/ldoce5-bin: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked (uses shared libs),
for GNU/Linux 2.2.0, stripped

ldd /opt/ldoce5/ldoce5-bin
不是动态可执行文件

ps:整个文件夹是从32位系统上拷贝过来的
但我现在用的系统是64位系统,跟这个有关系么?网上其他人好像可以直接这么干的

Re: ubuntu10.10下bash看不到某些文件

发表于 : 2011-03-30 9:28
eexpress
不是有system32的包嘛。64位下跑32位的。

Re: ubuntu10.10下bash看不到某些文件

发表于 : 2011-03-30 22:55
lilydjwg
可执行文件格式不正确。