我正在尝试启动并运行 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)