按照此处的说明尝试为项目运行“发布安装”:
http://news.dartlang.org/2013/01/big-breaking-change-dartjs-bootstrap-file-moving-to-pub.html
和这里:
http://pub.dartlang.org/packages/browser
尝试调用pub install时,下面的完整详细输出出现了异常。
我在x86_64 Ubuntu linux上使用dart SDK版本0.2.9.9_r16323。
如何安装浏览器软件包?
跟踪:
joe@joe-desktop-2:~/shared/programming/appengine/joesarre/tstormdart$ pub -v install
IO : Seeing if file /media/mass/home/joe/programming/tstormdart/pubspec.yaml exists.
IO : File /media/mass/home/joe/programming/tstormdart/pubspec.yaml exists.
IO : Reading text file /media/mass/home/joe/programming/tstormdart/pubspec.yaml.
IO : Read /media/mass/home/joe/programming/tstormdart/pubspec.yaml. Contents:
| name: tstormdart
| description: A sample application
|
| dependencies:
| # js: any
| # unittest: { sdk: unittest }
| browser: any
|
|
FINE: Loading lockfile.
IO : Seeing if file /media/mass/home/joe/programming/tstormdart/pubspec.lock exists.
IO : File /media/mass/home/joe/programming/tstormdart/pubspec.lock exists.
IO : Reading text file /media/mass/home/joe/programming/tstormdart/pubspec.lock.
IO : Read /media/mass/home/joe/programming/tstormdart/pubspec.lock. Contents:
| {"packages":{}}
MSG : Resolving dependencies...
FINE: Adding (entrypoint)'s constraint tstormdart 0.0.0 from root (tstormdart).
FINE: Changing tstormdart to version 0.0.0.
FINE: Adding tstormdart's constraint browser any from hosted (browser).
IO : Sending HTTP request GET http://pub.dartlang.org/packages/browser.json.
FINE: Got response 200 OK.
FINE: Changing browser to version 0.9.0.
IO : Sending HTTP request GET http://pub.dartlang.org/packages/browser/versions/0.9.0.yaml.
FINE: Got response 200 OK.
IO : Seeing if directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO : Directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO : Begin delete directory /media/mass/home/joe/programming/tstormdart/packages.
IO : End delete directory /media/mass/home/joe/programming/tstormdart/packages.
IO : Begin create directory /media/mass/home/joe/programming/tstormdart/packages.
IO : End create directory /media/mass/home/joe/programming/tstormdart/packages.
FINE: Ensuring directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO : Seeing if directory /media/mass/home/joe/programming/tstormdart/packages exists.
IO : Directory /media/mass/home/joe/programming/tstormdart/packages exists.
FINE: Directory /media/mass/home/joe/programming/tstormdart/packages already exists.
IO : Seeing if file /media/mass/home/joe/programming/tstormdart/packages/browser exists.
IO : Seeing if directory /media/mass/home/joe/programming/tstormdart/packages/browser exists.
IO : File /media/mass/home/joe/programming/tstormdart/packages/browser does not exist.
IO : Directory /media/mass/home/joe/programming/tstormdart/packages/browser does not exist.
IO : Seeing if file /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 exists.
IO : Seeing if directory /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 exists.
IO : File /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 does not exist.
IO : Directory /home/joe/.pub-cache/hosted/pub.dartlang.org/browser-0.9.0 does not exist.
FINE: Ensuring directory /home/joe/.pub-cache/hosted/pub.dartlang.org exists.
IO : Seeing if directory /home/joe/.pub-cache/hosted/pub.dartlang.org exists.
IO : Directory /home/joe/.pub-cache/hosted/pub.dartlang.org exists.
FINE: Directory /home/joe/.pub-cache/hosted/pub.dartlang.org already exists.
MSG : Downloading browser 0.9.0...
IO : Sending HTTP request GET http://pub.dartlang.org/packages/browser/versions/0.9.0.tar.gz.
FINE: Ensuring directory /home/joe/.pub-cache/_temp exists.
IO : Seeing if directory /home/joe/.pub-cache/_temp exists.
IO : Directory /home/joe/.pub-cache/_temp does not exist.
FINE: Ensuring directory /home/joe/.pub-cache exists.
IO : Seeing if directory /home/joe/.pub-cache exists.
IO : Directory /home/joe/.pub-cache exists.
FINE: Directory /home/joe/.pub-cache already exists.
IO : Begin create directory /home/joe/.pub-cache/_temp.
IO : End create directory /home/joe/.pub-cache/_temp.
IO : Begin create temp directory /home/joe/.pub-cache/_temp/dir.
IO : End create temp directory /home/joe/.pub-cache/_temp/dir.
Unhandled exception:
SocketIOException: Unexpected handshake error in client (OS Error: errno = -12268)
#0 _SecureFilterImpl.handshake (dart:io-patch:870:8)
#1 _SecureSocket._secureHandshake (dart:io:7393:27)
#2 _SecureSocket._secureConnectHandler._secureConnectHandler (dart:io:7305:21)
#3 _Socket._updateOutHandler.firstWriteHandler (dart:io-patch:773:64)
#4 _SocketBase._multiplex (dart:io-patch:408:26)
#5 _SocketBase._sendToEventHandler.<anonymous closure> (dart:io-patch:509:20)
#6 _ReceivePortImpl._handleMessage (dart:isolate-patch:37:92)
最佳答案
我尝试下载Linux x64版本,并获得了当前版本。
很高兴看到从您的过时版本进行更新是可行的(“帮助”>“关于”>“检查更新”)。
关于linux - Dart Pub安装x86_64 SocketIOException,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20731751/