小编Joe*_*Joe的帖子

Linux 找不到存在的文件

我正在尝试启动并运行 Google 的 Dart 语言,但在运行 dart2js 时出错。我正在运行 Arch linux 并且我从 AUR安装了dart-sdk。一些相关的终端输出如下。

% 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 $0`
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 …
Run Code Online (Sandbox Code Playgroud)

64-bit arch-linux

9
推荐指数
1
解决办法
3374
查看次数

标签 统计

64-bit ×1

arch-linux ×1