
Ubuntu日本語フォーラム

ログインしていません。
Go言語を触ってみたいと思います。
その際に開発環境のおすすめは有りますか?
gfortran とかでは自己流 ↓
・端末窓を沢山開く(3つほど)
・vim とか gvim とかのeditor の窓
・gfortran sorce-file.f95 とかのコンパイラ窓
・./a.out など実行ファイル駆動用の窓
以上なんですが、
基本はこれでいいのかな?
しかし保管してくれるようなIDEも魅力があります。
しかし Go言語ではまだ使用者が少ないのか
開発者が何を使っているのかわからない。
そこで、皆さんにお尋ねした次第です
オフライン
とりあえず
$ sudo aptitude install gccgo
としました。
難なくインストールはできた模様
置き場を
$ mkdir Documents/go
辺り作って、
$ cd Documents/go
の中に入る
$ gvim HelloWorld.go
で編集し
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}次に
$ gccgo HelloWorld.go
でコンパイルしできた?っぽい
(で、なんか早いみたいだ!)
$ ./a.out
で実行すると・・・あれれエラーだ。
$ ./a.out no debug info in ELF executable errno -1 fatal error: no debug info in ELF executable runtime stack: no debug info in ELF executable errno -1 panic during panic
??? 終了の書き方が違うのかな ???
参考頁は以下:
http://golang.jp/go_tutorial#index01
オフライン
Eclipse + Goclipse を入れようと思いました。
Eclipse は aptitude で難なくインストール出来ました。
次にアドインの Golipse にトライしましたが 14.04 ではできないようです。
Eclipse から
--> help
--> Install new software
--> work with
ここで
「 goclipse - http://goclipse.github.io/releases/ 」
を入れて
「 Goclipse 」を選択し、 Nextすると
「 The operation cannot be completed. See the details. 」のエラーが出ます。
戻って、
「 contact all update ... 」をチェックしても変わりません。
Cannot complete the install because of a conflicting dependency.
Software being installed: GoClipse 0.10.1.v201503311630 (goclipse_feature.feature.group 0.10.1.v201503311630)
Software currently installed: Eclipse Platform 3.7.0.debbuild (org.eclipse.platform.ide 3.7.0.debbuild)
Only one of the following can be installed at once:
Extension Registry Support 3.5.200.dist (org.eclipse.equinox.registry 3.5.200.dist)
Extension Registry Support 3.5.400.v20140428-1507 (org.eclipse.equinox.registry 3.5.400.v20140428-1507)
Cannot satisfy dependency:
From: GoClipse 0.10.1.v201503311630 (goclipse_feature.feature.group 0.10.1.v201503311630)
To: org.eclipse.platform.feature.group [4.4.0.v20140925-0400,5.0.0)
Cannot satisfy dependency:
From: Eclipse e4 Rich Client Platform 1.3.100.v20140909-1633 (org.eclipse.e4.rcp.feature.group 1.3.100.v20140909-1633)
To: org.eclipse.equinox.registry [3.5.400.v20140428-1507]
Cannot satisfy dependency:
From: Eclipse e4 Rich Client Platform 1.3.101.v20150204-1353 (org.eclipse.e4.rcp.feature.group 1.3.101.v20150204-1353)
To: org.eclipse.equinox.registry [3.5.400.v20140428-1507]
Cannot satisfy dependency:
From: Eclipse Platform 3.8.1.dist-A8F8_IVRG4VZSCmeloKVfCrtIFotGyJZcMPL9 (org.eclipse.platform.feature.group 3.8.1.dist-A8F8_IVRG4VZSCmeloKVfCrtIFotGyJZcMPL9)
To: org.eclipse.rcp.feature.group [3.8.1.dist-8LA2GODFTJUDJ21934]
Cannot satisfy dependency:
From: Eclipse Platform 4.4.0.v20140925-0400 (org.eclipse.platform.feature.group 4.4.0.v20140925-0400)
To: org.eclipse.rcp.feature.group [4.4.0.v20140925-0400]
Cannot satisfy dependency:
From: Eclipse Platform 4.4.2.v20150204-1700 (org.eclipse.platform.feature.group 4.4.2.v20150204-1700)
To: org.eclipse.rcp.feature.group [4.4.2.v20150204-1700]
Cannot satisfy dependency:
From: Eclipse Platform 3.7.0.debbuild (org.eclipse.platform.ide 3.7.0.debbuild)
To: org.eclipse.platform.feature.group [3.8.1.dist-A8F8_IVRG4VZSCmeloKVfCrtIFotGyJZcMPL9]
Cannot satisfy dependency:
From: Eclipse RCP 3.8.1.dist-8LA2GODFTJUDJ21934 (org.eclipse.rcp.feature.group 3.8.1.dist-8LA2GODFTJUDJ21934)
To: org.eclipse.equinox.registry [3.5.200.dist]
Cannot satisfy dependency:
From: Eclipse RCP 4.4.0.v20140925-0400 (org.eclipse.rcp.feature.group 4.4.0.v20140925-0400)
To: org.eclipse.e4.rcp.feature.group [1.3.100.v20140909-1633]
Cannot satisfy dependency:
From: Eclipse RCP 4.4.2.v20150204-1700 (org.eclipse.rcp.feature.group 4.4.2.v20150204-1700)
To: org.eclipse.e4.rcp.feature.group [1.3.101.v20150204-1353]
goclipse - http://goclipse.github.io/releases/という感じです。
何かの整合性が悪いのでしょうか?
オフライン
先に進んでしましました。
http://qiita.com/moris/items/413c6863112b09fe506b
参考にして、
インストール方法: インストールはこれだけ。 sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer Java7 の他に、Java6, Java8 も提供されている。詳細は、 https://launchpad.net/~webupd8team/+archive/ubuntu/java を参照のこと。
を実行しました。
me@pc144:~/Documents/201504-golang$ sudo add-apt-repository ppa:webupd8team/java
[sudo] password for me:
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.
More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
Debian installation instructions:
- Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is available as an early access release (it should be released in 2016)! You should only use Oracle Java 9 if you explicitly need it, because it may contain bugs and it might not include the latest security patches! Also, some Java options were removed in JDK9, so you may encounter issues with various Java apps. More information and installation instructions (Ubuntu / Linux Mint / Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
詳しい情報: https://launchpad.net/~webupd8team/+archive/ubuntu/java
[ENTER] を押すと続行します。ctrl-c で追加をキャンセルできます
gpg: 鍵輪「/tmp/tmplywum0qz/secring.gpg」ができました
gpg: 鍵輪「/tmp/tmplywum0qz/pubring.gpg」ができました
gpg: 鍵EEA14886をhkpからサーバーkeyserver.ubuntu.comに要求
gpg: /tmp/tmplywum0qz/trustdb.gpg: 信用データベースができました
gpg: 鍵EEA14886: 公開鍵“Launchpad VLC”を読み込みました
gpg: 処理数の合計: 1
gpg: 読込み: 1 (RSA: 1)
OK
me@pc144:~/Documents/201504-golang$ sudo apt-get update
無視 http://archive.ubuntulinux.jp trusty InRelease
無視 http://archive.ubuntulinux.jp trusty InRelease
無視 http://dl.google.com stable InRelease
無視 http://jp.archive.ubuntu.com trusty InRelease
ヒット http://archive.ubuntulinux.jp trusty Release.gpg
無視 http://jp.archive.ubuntu.com trusty-updates InRelease
ヒット http://archive.ubuntulinux.jp trusty Release.gpg
無視 http://jp.archive.ubuntu.com trusty-backports InRelease
ヒット http://archive.ubuntulinux.jp trusty Release
ヒット http://jp.archive.ubuntu.com trusty Release.gpg
ヒット http://archive.ubuntulinux.jp trusty Release
ヒット http://jp.archive.ubuntu.com trusty-updates Release.gpg
ヒット http://jp.archive.ubuntu.com trusty-backports Release.gpg
ヒット http://jp.archive.ubuntu.com trusty Release
無視 http://dl.google.com stable InRelease
ヒット http://jp.archive.ubuntu.com trusty-updates Release
ヒット http://archive.ubuntulinux.jp trusty/main Sources
ヒット http://dl.google.com stable Release.gpg
ヒット http://jp.archive.ubuntu.com trusty-backports Release
ヒット http://archive.ubuntulinux.jp trusty/main i386 Packages
ヒット http://jp.archive.ubuntu.com trusty/main Sources
ヒット http://jp.archive.ubuntu.com trusty/restricted Sources
ヒット http://archive.ubuntulinux.jp trusty/multiverse Sources
ヒット http://jp.archive.ubuntu.com trusty/universe Sources
ヒット http://archive.ubuntulinux.jp trusty/multiverse i386 Packages
ヒット http://jp.archive.ubuntu.com trusty/multiverse Sources
ヒット http://jp.archive.ubuntu.com trusty/main i386 Packages
ヒット http://dl.google.com stable Release.gpg
ヒット http://jp.archive.ubuntu.com trusty/restricted i386 Packages
無視 http://extras.ubuntu.com trusty InRelease
ヒット http://jp.archive.ubuntu.com trusty/universe i386 Packages
ヒット http://dl.google.com stable Release
無視 http://ppa.launchpad.net trusty InRelease
無視 http://security.ubuntu.com trusty-security InRelease
ヒット http://jp.archive.ubuntu.com trusty/multiverse i386 Packages
ヒット http://jp.archive.ubuntu.com trusty/main Translation-ja
ヒット http://jp.archive.ubuntu.com trusty/main Translation-en
ヒット http://deb.opera.com stable InRelease
ヒット http://dl.google.com stable Release
ヒット http://jp.archive.ubuntu.com trusty/multiverse Translation-ja
ヒット http://extras.ubuntu.com trusty Release.gpg
ヒット http://jp.archive.ubuntu.com trusty/multiverse Translation-en
無視 http://ppa.launchpad.net trusty InRelease
取得:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
ヒット http://jp.archive.ubuntu.com trusty/restricted Translation-ja
ヒット http://jp.archive.ubuntu.com trusty/restricted Translation-en
ヒット http://jp.archive.ubuntu.com trusty/universe Translation-ja
ヒット http://jp.archive.ubuntu.com trusty/universe Translation-en
ヒット http://dl.google.com stable/main i386 Packages
ヒット http://jp.archive.ubuntu.com trusty-updates/main Sources
無視 http://archive.ubuntulinux.jp trusty/main Translation-ja_JP
ヒット http://jp.archive.ubuntu.com trusty-updates/restricted Sources
無視 http://archive.ubuntulinux.jp trusty/main Translation-ja
ヒット http://extras.ubuntu.com trusty Release
無視 http://archive.ubuntulinux.jp trusty/main Translation-en
ヒット http://jp.archive.ubuntu.com trusty-updates/universe Sources
ヒット http://deb.opera.com stable/non-free i386 Packages
無視 http://ppa.launchpad.net trusty InRelease
無視 http://archive.ubuntulinux.jp trusty/multiverse Translation-ja_JP
ヒット http://jp.archive.ubuntu.com trusty-updates/multiverse Sources
ヒット http://jp.archive.ubuntu.com trusty-updates/main i386 Packages
取得:2 http://security.ubuntu.com trusty-security Release [63.5 kB]
無視 http://archive.ubuntulinux.jp trusty/multiverse Translation-ja
無視 http://archive.ubuntulinux.jp trusty/multiverse Translation-en
ヒット http://jp.archive.ubuntu.com trusty-updates/restricted i386 Packages
ヒット http://jp.archive.ubuntu.com trusty-updates/universe i386 Packages
ヒット http://jp.archive.ubuntu.com trusty-updates/multiverse i386 Packages
ヒット http://jp.archive.ubuntu.com trusty-updates/main Translation-en
ヒット http://jp.archive.ubuntu.com trusty-updates/multiverse Translation-en
無視 http://ppa.launchpad.net trusty InRelease
ヒット http://jp.archive.ubuntu.com trusty-updates/restricted Translation-en
ヒット http://extras.ubuntu.com trusty/main Sources
ヒット http://jp.archive.ubuntu.com trusty-updates/universe Translation-en
ヒット http://jp.archive.ubuntu.com trusty-backports/main Sources
ヒット http://jp.archive.ubuntu.com trusty-backports/restricted Sources
ヒット http://jp.archive.ubuntu.com trusty-backports/universe Sources
ヒット http://jp.archive.ubuntu.com trusty-backports/multiverse Sources
ヒット http://jp.archive.ubuntu.com trusty-backports/main i386 Packages
ヒット http://jp.archive.ubuntu.com trusty-backports/restricted i386 Packages
ヒット http://jp.archive.ubuntu.com trusty-backports/universe i386 Packages
無視 http://ppa.launchpad.net trusty InRelease
ヒット http://jp.archive.ubuntu.com trusty-backports/multiverse i386 Packages
ヒット http://extras.ubuntu.com trusty/main i386 Packages
ヒット http://jp.archive.ubuntu.com trusty-backports/main Translation-en
ヒット http://jp.archive.ubuntu.com trusty-backports/multiverse Translation-en
ヒット http://jp.archive.ubuntu.com trusty-backports/restricted Translation-en
ヒット http://jp.archive.ubuntu.com trusty-backports/universe Translation-en
ヒット http://ppa.launchpad.net trusty Release.gpg
ヒット http://ppa.launchpad.net trusty Release.gpg
無視 http://jp.archive.ubuntu.com trusty/main Translation-ja_JP
無視 http://jp.archive.ubuntu.com trusty/multiverse Translation-ja_JP
無視 http://jp.archive.ubuntu.com trusty/restricted Translation-ja_JP
ヒット http://dl.google.com stable/main i386 Packages
無視 http://jp.archive.ubuntu.com trusty/universe Translation-ja_JP
ヒット http://ppa.launchpad.net trusty Release.gpg
ヒット http://ppa.launchpad.net trusty Release.gpg
取得:3 http://ppa.launchpad.net trusty Release.gpg [316 B]
取得:4 http://security.ubuntu.com trusty-security/main Sources [78.4 kB]
ヒット http://ppa.launchpad.net trusty Release
ヒット http://ppa.launchpad.net trusty Release
ヒット http://ppa.launchpad.net trusty Release
ヒット http://ppa.launchpad.net trusty Release
取得:5 http://ppa.launchpad.net trusty Release [15.1 kB]
無視 http://deb.opera.com stable/non-free Translation-ja_JP
ヒット http://ppa.launchpad.net trusty/main i386 Packages
無視 http://deb.opera.com stable/non-free Translation-ja
無視 http://extras.ubuntu.com trusty/main Translation-ja_JP
ヒット http://ppa.launchpad.net trusty/main Translation-en
無視 http://deb.opera.com stable/non-free Translation-en
無視 http://extras.ubuntu.com trusty/main Translation-ja
ヒット http://ppa.launchpad.net trusty/main i386 Packages
無視 http://extras.ubuntu.com trusty/main Translation-en
ヒット http://ppa.launchpad.net trusty/main Translation-en
ヒット http://ppa.launchpad.net trusty/main i386 Packages
ヒット http://ppa.launchpad.net trusty/main Translation-en
ヒット http://ppa.launchpad.net trusty/main i386 Packages
ヒット http://ppa.launchpad.net trusty/main Translation-en
取得:6 http://security.ubuntu.com trusty-security/restricted Sources [2,061 B]
取得:7 http://ppa.launchpad.net trusty/main i386 Packages [3,354 B]
取得:8 http://security.ubuntu.com trusty-security/universe Sources [20.3 kB]
取得:9 http://ppa.launchpad.net trusty/main Translation-en [1,556 B]
無視 http://dl.google.com stable/main Translation-ja_JP
無視 http://dl.google.com stable/main Translation-ja
無視 http://dl.google.com stable/main Translation-en
無視 http://dl.google.com stable/main Translation-ja_JP
無視 http://dl.google.com stable/main Translation-ja
無視 http://dl.google.com stable/main Translation-en
取得:10 http://security.ubuntu.com trusty-security/multiverse Sources [1,922 B]
取得:11 http://security.ubuntu.com trusty-security/main i386 Packages [248 kB]
取得:12 http://security.ubuntu.com trusty-security/restricted i386 Packages [8,846 B]
取得:13 http://security.ubuntu.com trusty-security/universe i386 Packages [95.9 kB]
取得:14 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3,643 B]
ヒット http://security.ubuntu.com trusty-security/main Translation-en
ヒット http://security.ubuntu.com trusty-security/multiverse Translation-en
ヒット http://security.ubuntu.com trusty-security/restricted Translation-en
ヒット http://security.ubuntu.com trusty-security/universe Translation-en
543 kB を 15秒 で取得しました (36.0 kB/s)
パッケージリストを読み込んでいます... 完了
me@pc144:~/Documents/201504-golang$ sudo apt-get install oracle-java7-installer
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic
linux-headers-3.13.0-36-lowlatency linux-image-3.13.0-24-generic
linux-image-3.13.0-36-lowlatency linux-image-extra-3.13.0-24-generic
これを削除するには 'apt-get autoremove' を利用してください。
以下の特別パッケージがインストールされます:
gsfonts-x11
提案パッケージ:
visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic
ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
以下のパッケージが新たにインストールされます:
gsfonts-x11 oracle-java7-installer
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 0 個。
31.1 kB のアーカイブを取得する必要があります。
この操作後に追加で 332 kB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://jp.archive.ubuntu.com/ubuntu/ trusty/main gsfonts-x11 all 0.22 [9,108 B]
取得:2 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java7-installer all 7u80+7u60arm-0~webupd8~0 [22.0 kB]
31.1 kB を 0秒 で取得しました (35.4 kB/s)
パッケージを事前設定しています ...
以前に未選択のパッケージ oracle-java7-installer を選択しています。
(データベースを読み込んでいます ... 現在 803862 個のファイルとディレクトリがインストールされています。)
Preparing to unpack .../oracle-java7-installer_7u80+7u60arm-0~webupd8~0_all.deb ...
Unpacking oracle-java7-installer (7u80+7u60arm-0~webupd8~0) ...
以前に未選択のパッケージ gsfonts-x11 を選択しています。
Preparing to unpack .../gsfonts-x11_0.22_all.deb ...
Unpacking gsfonts-x11 (0.22) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for fontconfig (2.11.0-0ubuntu4.1) ...
oracle-java7-installer (7u80+7u60arm-0~webupd8~0) を設定しています ...
Downloading Oracle Java 7...
--2015-04-19 14:24:39-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz
download.oracle.com (download.oracle.com) をDNSに問いあわせています... 202.229.2.123, 202.229.2.98
download.oracle.com (download.oracle.com)|202.229.2.123|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Moved Temporarily
場所: https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz [続く]
--2015-04-19 14:24:39-- https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz
edelivery.oracle.com (edelivery.oracle.com) をDNSに問いあわせています... 184.30.146.19
edelivery.oracle.com (edelivery.oracle.com)|184.30.146.19|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Moved Temporarily
場所: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz?AuthParam=1429421199_41379dce40a717fbe4d4f0cfcecc4806 [続く]
--2015-04-19 14:24:39-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-i586.tar.gz?AuthParam=1429421199_41379dce40a717fbe4d4f0cfcecc4806
download.oracle.com (download.oracle.com)|202.229.2.123|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 154850445 (148M) [application/x-gzip]
`jdk-7u80-linux-i586.tar.gz' に保存中
0K ........ ........ ........ ........ ........ ........ 2% 11.0M 13s
3072K ........ ........ ........ ........ ........ ........ 4% 11.2M 13s
6144K ........ ........ ........ ........ ........ ........ 6% 11.2M 12s
9216K ........ ........ ........ ........ ........ ........ 8% 11.2M 12s
12288K ........ ........ ........ ........ ........ ........ 10% 10.3M 12s
15360K ........ ........ ........ ........ ........ ........ 12% 11.2M 12s
18432K ........ ........ ........ ........ ........ ........ 14% 11.2M 11s
21504K ........ ........ ........ ........ ........ ........ 16% 11.2M 11s
24576K ........ ........ ........ ........ ........ ........ 18% 11.2M 11s
27648K ........ ........ ........ ........ ........ ........ 20% 11.2M 11s
30720K ........ ........ ........ ........ ........ ........ 22% 11.2M 10s
33792K ........ ........ ........ ........ ........ ........ 24% 11.2M 10s
36864K ........ ........ ........ ........ ........ ........ 26% 11.2M 10s
39936K ........ ........ ........ ........ ........ ........ 28% 11.2M 10s
43008K ........ ........ ........ ........ ........ ........ 30% 11.2M 9s
46080K ........ ........ ........ ........ ........ ........ 32% 11.2M 9s
49152K ........ ........ ........ ........ ........ ........ 34% 11.1M 9s
52224K ........ ........ ........ ........ ........ ........ 36% 11.2M 8s
55296K ........ ........ ........ ........ ........ ........ 38% 11.2M 8s
58368K ........ ........ ........ ........ ........ ........ 40% 11.2M 8s
61440K ........ ........ ........ ........ ........ ........ 42% 11.2M 8s
64512K ........ ........ ........ ........ ........ ........ 44% 11.2M 7s
67584K ........ ........ ........ ........ ........ ........ 46% 11.2M 7s
70656K ........ ........ ........ ........ ........ ........ 48% 11.1M 7s
73728K ........ ........ ........ ........ ........ ........ 50% 11.2M 7s
76800K ........ ........ ........ ........ ........ ........ 52% 11.2M 6s
79872K ........ ........ ........ ........ ........ ........ 54% 11.1M 6s
82944K ........ ........ ........ ........ ........ ........ 56% 11.2M 6s
86016K ........ ........ ........ ........ ........ ........ 58% 11.2M 5s
89088K ........ ........ ........ ........ ........ ........ 60% 11.2M 5s
92160K ........ ........ ........ ........ ........ ........ 62% 11.2M 5s
95232K ........ ........ ........ ........ ........ ........ 65% 11.2M 5s
98304K ........ ........ ........ ........ ........ ........ 67% 11.2M 4s
101376K ........ ........ ........ ........ ........ ........ 69% 11.2M 4s
104448K ........ ........ ........ ........ ........ ........ 71% 11.2M 4s
107520K ........ ........ ........ ........ ........ ........ 73% 11.2M 4s
110592K ........ ........ ........ ........ ........ ........ 75% 11.2M 3s
113664K ........ ........ ........ ........ ........ ........ 77% 11.2M 3s
116736K ........ ........ ........ ........ ........ ........ 79% 11.2M 3s
119808K ........ ........ ........ ........ ........ ........ 81% 11.1M 2s
122880K ........ ........ ........ ........ ........ ........ 83% 11.3M 2s
125952K ........ ........ ........ ........ ........ ........ 85% 9.47M 2s
129024K ........ ........ ........ ........ ........ ........ 87% 11.2M 2s
132096K ........ ........ ........ ........ ........ ........ 89% 11.2M 1s
135168K ........ ........ ........ ........ ........ ........ 91% 11.2M 1s
138240K ........ ........ ........ ........ ........ ........ 93% 11.2M 1s
141312K ........ ........ ........ ........ ........ ........ 95% 11.2M 1s
144384K ........ ........ ........ ........ ........ ........ 97% 11.2M 0s
147456K ........ ........ ........ ........ ........ ........ 99% 11.2M 0s
150528K ........ .. 100% 11.3M=13s
2015-04-19 14:24:53 (11.1 MB/s) - `jdk-7u80-linux-i586.tar.gz' へ保存完了 [154850445/154850445]
Download done.
Removing outdated cached downloads...
update-alternatives: /usr/bin/ControlPanel (ControlPanel) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/ControlPanel を使います
update-alternatives: /usr/bin/java (java) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/java を使います
update-alternatives: /usr/bin/java_vm (java_vm) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/java_vm を使います
update-alternatives: /usr/bin/javaws (javaws) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/javaws を使います
update-alternatives: /usr/bin/jcontrol (jcontrol) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/jcontrol を使います
update-alternatives: /usr/bin/keytool (keytool) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/keytool を使います
update-alternatives: /usr/bin/orbd (orbd) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/orbd を使います
update-alternatives: /usr/bin/pack200 (pack200) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/pack200 を使います
update-alternatives: /usr/bin/policytool (policytool) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/policytool を使います
update-alternatives: /usr/bin/rmid (rmid) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/rmid を使います
update-alternatives: /usr/bin/rmiregistry (rmiregistry) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/rmiregistry を使います
update-alternatives: /usr/bin/servertool (servertool) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/servertool を使います
update-alternatives: /usr/bin/tnameserv (tnameserv) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/tnameserv を使います
update-alternatives: /usr/bin/unpack200 (unpack200) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/bin/unpack200 を使います
update-alternatives: /usr/bin/jexec (jexec) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/lib/jexec を使います
update-alternatives: /usr/bin/appletviewer (appletviewer) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/appletviewer を使います
update-alternatives: /usr/bin/extcheck (extcheck) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/extcheck を使います
update-alternatives: /usr/bin/idlj (idlj) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/idlj を使います
update-alternatives: /usr/bin/jar (jar) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jar を使います
update-alternatives: /usr/bin/jarsigner (jarsigner) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jarsigner を使います
update-alternatives: /usr/bin/javac (javac) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/javac を使います
update-alternatives: /usr/bin/javadoc (javadoc) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/javadoc を使います
update-alternatives: /usr/bin/javafxpackager (javafxpackager) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/javafxpackager を使います
update-alternatives: /usr/bin/javah (javah) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/javah を使います
update-alternatives: /usr/bin/javap (javap) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/javap を使います
update-alternatives: /usr/bin/jcmd (jcmd) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jcmd を使います
update-alternatives: /usr/bin/jconsole (jconsole) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jconsole を使います
update-alternatives: /usr/bin/jdb (jdb) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jdb を使います
update-alternatives: /usr/bin/jhat (jhat) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jhat を使います
update-alternatives: /usr/bin/jinfo (jinfo) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jinfo を使います
update-alternatives: /usr/bin/jmap (jmap) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jmap を使います
update-alternatives: /usr/bin/jmc (jmc) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jmc を使います
update-alternatives: /usr/bin/jps (jps) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jps を使います
update-alternatives: /usr/bin/jrunscript (jrunscript) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jrunscript を使います
update-alternatives: /usr/bin/jsadebugd (jsadebugd) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jsadebugd を使います
update-alternatives: /usr/bin/jstack (jstack) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jstack を使います
update-alternatives: /usr/bin/jstat (jstat) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jstat を使います
update-alternatives: /usr/bin/jstatd (jstatd) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jstatd を使います
update-alternatives: /usr/bin/jvisualvm (jvisualvm) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/jvisualvm を使います
update-alternatives: /usr/bin/native2ascii (native2ascii) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/native2ascii を使います
update-alternatives: /usr/bin/rmic (rmic) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/rmic を使います
update-alternatives: /usr/bin/schemagen (schemagen) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/schemagen を使います
update-alternatives: /usr/bin/serialver (serialver) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/serialver を使います
update-alternatives: /usr/bin/wsgen (wsgen) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/wsgen を使います
update-alternatives: /usr/bin/wsimport (wsimport) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/wsimport を使います
update-alternatives: /usr/bin/xjc (xjc) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/bin/xjc を使います
update-binfmts: warning: current package is oracle-java7, but binary format already installed by openjdk-7
Oracle JDK 7 installed
update-alternatives: /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) を提供するために 自動モード で /usr/lib/jvm/java-7-oracle/jre/lib/i386/libnpjp2.so を使います
Oracle JRE 7 browser plugin installed
gsfonts-x11 (0.22) を設定しています ...
me@pc144:~/Documents/201504-golang$オフライン
いっぺん全部消しました。
sudo aptitude remove eclipse
しかし全部消えないので、synaptics でそれらしいのもを全部「完全削除」をしました。
さてここからソフトウエアセンターから入れなおそうかなと思って解説を読んだらびっくりです。
こんな書き込みが有りました。
eclipse 3.8 についてです。ちなみに14.04だとこれしかできないようです。
結局の所 golang どころか java すら難しいとか有りますね。。。
その書き込みはこれ↓
Eclipse3.8というのはJunoのメンテナンスバージョンということなので、 「過去のプラグインがJuno4.2.1で動かないとなったら使えばぁ。」 のレベルのバージョンなのですが。 正式リリースとして載せるべきバージョンではないですよね。 しかも前回指摘したとおり、単純にサイトからClassicをダウンロードをしたのと変わらない 状態に後退しています。 ちなみにclassic環境はMergeDocを含むあちこちで言われていますが マーケット・プレイスを始めとして何にも入っていない状態なので、 「上級者」バージョンです。 つまり、それなりにEclipseをインストールできる人が居ないと、 「大ハマり」すること請け合いです。 どーしても過去のプラグインを使うのでEclipse3.8を使いたいというのであれば、 Ubuntuソフトウエアセンターからダウンロードするのではなく、 Ubuntu12.04で環境を構築して、OSごとアップしてしまった方が早いかもしれません。 そうでないなら、Eclipse4.2.1をフツーにダウンロードして環境構築した上で、 UbuntuソフトウエアセンターのEclipse3.8.0-rc4-1に上書きする方が マシかもしれません。 また、他言語でいち早くコメントされている方の書かれたとおり、 フツーにJuno4.2.1をインストールする方がよいかもしれません。 フラつくリリースで Japanease Team やメンテ側やユーザーの皆さんの ご苦労が偲ばれます。
オフライン
その後、
golang 関係を全て消しました。
またsynaptic から
vim
golang
を削除しました。
/home/me/.vimrc
/home/me/.go
/home/me/go
/usr/bin/go
/usr/locall/go
を消しました。
そこから再度
synaptic より vim と golang をインストールしました。
そして端末から
me@pc144:~/gokaihatsu$ export GOROOT=/usr/local/go me@pc144:~/gokaihatsu$ export GOPATH=$HOME/gokaihatsu me@pc144:~/gokaihatsu$ export PATH=$PATH:$GOROOT/bin:$GOPATH/bin me@pc144:~/gokaihatsu$ sudo aptitude install tree me@pc144:~/gokaihatsu$ tree $GOPATH /home/me/gokaihatsu ├── bin ├── pkg └── src 3 directories, 0 files me@pc144:~/gokaihatsu$ cp ~/Documents/201504-golang/* . me@pc144:~/gokaihatsu$ ls -al 合計 68 drwxrwxr-x 5 me me 4096 4月 22 17:07 . drwxr-xr-x 104 me me 12288 4月 22 17:01 .. -rw-rw-r-- 1 me me 79 4月 22 17:07 HelloWorld.go -rwxrwxr-x 1 me me 19428 4月 22 17:07 a.out drwxrwxr-x 2 me me 4096 4月 22 17:02 bin -rw-rw-r-- 1 me me 528 4月 22 17:07 echo2.go -rw-rw-r-- 1 me me 91 4月 22 17:07 go-ui.go -rw-rw-r-- 1 me me 110 4月 22 17:07 hello.go drwxrwxr-x 2 me me 4096 4月 22 17:02 pkg drwxrwxr-x 2 me me 4096 4月 22 17:02 src -rw-rw-r-- 1 me me 442 4月 22 17:07 test.go me@pc144:~/gokaihatsu$ go run hello.go go: cannot find GOROOT directory: /usr/local/go me@pc144:~/gokaihatsu$ tree $GOROOT /usr/local/go [error opening dir] 0 directories, 0 files me@pc144:~/gokaihatsu$ ls /usr/local/go ls: /usr/local/go にアクセスできません: そのようなファイルやディレクトリはありません
をしました。
途中で
/usr/local/go
が存在しないことに気がついたのですが
synaptic からだと
/usr/local/go
は自動的に作ることはできないのかな?
そうだとすれば「ubuntu 標準のsynaptic でインストールできない使えない」
というのはなんか解せないです。
オフライン
https://golang.org/doc/install
を見てインストールしました。
結果は成功でした。
そのメモです。
me@pc144:~/Downloads$ sudo tar -C /usr/local -xzf go1.4.2.linux-386.tar.gz [sudo] password for me: me@pc144:~/Downloads$ cd /usr/local me@pc144:/usr/local$ ls -al 合計 48 drwxr-xr-x 12 root root 4096 4月 22 18:10 . drwxr-xr-x 13 root root 4096 9月 27 2014 .. drwxr-xr-x 5 root root 4096 9月 27 2014 R-Linux drwxr-xr-x 3 root root 4096 4月 5 18:37 bin drwxr-xr-x 2 root root 4096 4月 28 2014 etc drwxr-xr-x 2 root root 4096 4月 28 2014 games drwxr-xr-x 12 root root 4096 4月 22 18:10 go drwxr-xr-x 2 root root 4096 4月 28 2014 include drwxr-xr-x 5 root root 4096 4月 16 10:36 lib lrwxrwxrwx 1 root root 9 9月 26 2014 man -> share/man drwxr-xr-x 2 root root 4096 4月 28 2014 sbin drwxr-xr-x 8 root root 4096 3月 28 16:11 share drwxr-xr-x 2 root root 4096 4月 28 2014 src me@pc144:/usr/local$ export PATH=$PATH:/usr/local/go/bin me@pc144:/usr/local$ echo $GOROOT /usr/local/go me@pc144:/usr/local$ echo $GOPATH /home/me/gokaihatsu me@pc144:/usr/local$ cd $GOPATH me@pc144:~/gokaihatsu$ go run hello.go HelloWorld HelloWorld2 HelloWorld3 me@pc144:~/gokaihatsu$
お騒がせしました。
オフライン