% dart2Js main.dart /usr/local/bin/dart2Js: line 7: /usr/local/bin/dart: No such file or directory% cat /usr/local/bin/dart2Js#!/bin/sh# copyright (c) 2012,the Dart project authors. Please see the AUTHORS file# for details. All rights reserved. Use of this source code is governed by a# BSD-style license that can be found in the liCENSE file.BIN_DIR=`dirname$file /usr/bin/cheese /usr/bin/cheese: ELF 32-bit LSB executable,Intel 80386 $readelf -l /usr/bin/cheese Elf file type is EXEC (Executable file) ... Program headers: ... INTERP 0x000154 0x08048154 0x08048154 0x00013 0x00013 R 0x1 [Requesting program interpreter: /lib/ld-linux.so.2] ...`exec $BIN_DIR/dart --allow_string_plus=false $BIN_DIR/../lib/dart2Js/lib/compiler/implementation/dart2Js.dart "$@"% file /usr/local/bin/dart /usr/local/bin/dart: ELF 32-bit LSB executable,Intel 80386,version 1 (SYSV),dynamically linked (uses shared libs),for GNU/linux 2.6.15,BuildID[sha1]=0x27fe166ca015c1adfeaf3a6f9c018e7d7af46d9f,stripped% ls -alh /usr/local/bintotal 4.9Mdrwxr-xr-x 2 root root 4.0K Jun 10 22:51 .drwxr-xr-x 12 root root 4.0K Jun 10 22:51 ..-rwxr-xr-x 1 root root 422K May 10 22:41 cargo-rwxr-xr-x 1 root root 2.7M Jun 10 22:50 dart-rwxr-xr-x 1 root root 360 Jun 6 16:20 dart2Js-rwxr-xr-x 1 root root 176 Jun 6 16:20 pub-rwxr-xr-x 1 root root 166K May 10 22:41 rustc-rwxr-xr-x 1 root root 1.6M May 10 22:41 rustdoc% uname -rm3.3.7-1-ARCH x86_64
可能是因为我正在运行64位 *** 作系统而飞镖二进制文件是32位吗?
解决方法 为了执行ELF二进制文件,linux需要启动一个解码ELF的程序,加载动态库等.这个程序叫做程序解释器.程序解释器的名称和完整路径是在ELF本身中编写的例如
如果未找到ELF请求的程序解释程序,BASH将收到文件未找到错误并报告“没有此类文件或目录”.
正如@poige上面所说,您需要为运行32位应用程序安装基本支持.
总结以上是内存溢出为你收集整理的64位 – Linux无法找到存在的文件全部内容,希望文章能够帮你解决64位 – Linux无法找到存在的文件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)