1
현재 Ubuntu를 실행하는 32 비트 홈 서버에 Dart SDK를 설치 중이지만 설치에 대한 설명서가 없기 때문에 멈췄습니다. Google은 압축 된 Dart SDK에 대한 다운로드 링크 만 제공하며 해당 웹 사이트 나 패키지에는 제품을 올바르게 설정하는 방법에 대한 정보가 포함되어 있지 않습니다.리눅스 용 Dart SDK의 ZIP 버전은 어떻게 설치하나요?
그래서, /
에서 해당 폴더에 bin/
및 lib/
디렉토리에서 파일을 복사 및 $ PATH에 실행 파일을 추가 한 후, 다트 인터프리터는 잘 작동하는 것 같다,하지만 pub global activate package
을 실행하는 동안 오류가 발생합니다 :
Unhandled exception:
FileSystemException: Cannot open file, path = '/version' (OS Error: No
such file or directory, errno = 2)
#0 _File.throwIfError (dart:io/file_impl.dart:599)
#1 _File.openSync (dart:io/file_impl.dart:454)
#2 _File.readAsBytesSync (dart:io/file_impl.dart:514)
#3 _File.readAsStringSync (dart:io/file_impl.dart:548)
#4 readTextFile (package:pub/src/io.dart:153)
#5 _getVersion (package:pub/src/sdk.dart:44)
#6 version (package:pub/src/sdk.dart:32)
#7 version (package:pub/src/sdk.dart:32)
#8 PubCommandRunner.runCommand
(package:pub/src/command_runner.dart:160)
<asynchronous suspension>
#9 PubCommandRunner.run (package:pub/src/command_runner.dart:117)
<asynchronous suspension>
#10 main (file:///b/build/slave/dart-sdk-linux-
stable/build/sdk/third_party/pkg/pub/bin/pub.dart:8)
#11 _startIsolate.<anonymous closure> (dart:isolate-
patch/isolate_patch.dart:263)
#12 _RawReceivePortImpl._handleMessage (dart:isolate-
patch/isolate_patch.dart:151)
단계가 빠졌습니까?
감사합니다. 패키지 내부 의존성을 기억해야합니다. –