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 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/bin
total 4.9M
drwxr-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 -rm
3.3.7-1-ARCH x86_64
64 비트 OS를 실행 중이고 다트 바이너리가 32 비트이기 때문일 수 있습니까?