2009-11-11 OSX10.5で「Google Go」を試してみる。
OSX10.5で「Google Go」を試してみる。
osx |
OSX(i386/x64)に対応済みという事で、さっそく動かしてみる事にした。*1
参考:Getting Started - The Go Programming Language
$ sudo port install mercurial Error: Unable to open port: invalid command name "livecheck.type"
エラーが出てしまった。Portのバージョンを上げ直してリトライ。
$ sudo port selfupdate $ sudo port install mercurial
今度は問題なく成功。
$ cd ~/ $ export GOROOT=$HOME/go $ export GOBIN=$HOME/go/bin $ export GOARCH=386 $ export GOOS=darwin $ export PATH=$PATH:$GOBIN $ hg clone -r release https://go.googlecode.com/hg/ go
ここまでは問題なし。無事ソースコードも取得完了。
さてビルド開始。
$ cd go/src $ ./all.bash ~ 一部省略 ~ gopack grc _test/http.a _gotest_.8 --- FAIL: http.TestClient Get http://www.google.com/robots.txt: dial tcp www.google.com:http: lookup www.google.com. on xxx.xxx.xxx.xxx:53: no answer from server --- FAIL: http.TestRedirect Get http://codesearch.google.com/: dial tcp codesearch.google.com:http: lookup codesearch.google.com. on xxx.xxx.xxx.xxx:53: no answer from server FAIL make[1]: *** [test] Error 1 make: *** [http.test] Error 2
Test関連で失敗しているみたい...どうしよう。
- Plan9との関係は?
トラックバック - http://d.hatena.ne.jp/dot_h2o2/20091111/p1
リンク元
- 50 http://pipes.yahoo.com/pipes/pipe.info?_id=tDfBdGWF3RGl9XNm1L3fcQ
- 32 http://d.hatena.ne.jp/
- 26 http://pipes.yahoo.com/pipes/pipe.info?_id=12e453e301454b799b3ac6642aa089b5
- 13 http://www.google.co.jp/search?sourceid=navclient&hl=ja&ie=UTF-8&rlz=1T4GGLL_jaJP322JP322&q=トイプロジェクターたー
- 11 http://another.willcomnews.com/?eid=1001138
- 11 http://blogsearch.google.co.jp/blogsearch?hl=ja&safe=off&rlz=1C1CHMV_jaJP323JP323&q=google go&lr=lang_ja&um=1&ie=UTF-8&sa=N&tab=wb
- 10 http://www.google.co.jp/reader/view/?hl=ja&tab=wy
- 9 http://www.google.co.jp/search?hl=ja&client=firefox-a&rls=org.mozilla:ja:official&hs=tJG&q=Go+http.TestClient&btnG=検索&lr=&aq=f&oq=
- 7 http://www.google.co.jp/search?hl=ja&lr=lang_ja&client=firefox-a&rls=org.mozilla:ja:official&q=/dev/mtd0+/dev/mtdblock0&start=20&sa=N
- 7 http://www.google.co.jp/search?q=invalid+command+name+"livecheck.type"&lr=lang_ja&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja-JP-mac:official&client=firefox-a










netを追加したら該当のテストをスキップできました。
ご参考までに。
http://d.hatena.ne.jp/hydrangeas/20091111/1257937111
情報ありがとうございます、家に戻ったら試してみます。
dominion525さんの方法でもダメだったのですが、
NOTESTデリバティブに"http"も追加したら通りました。
ご参考まで。