どもども。本日 9月14日に Microsoft から Windows 8 Developer Preview が披露されましたので早速インストールしてみました。と言ってもちょっと試すだけに空けられる実機はないので仮想化環境へ。
はじめ VMWare Player を試してみましたが :( なブルースクリーンに HAL_INITIALIZATION_FAILED と出てインストーラーすら起動出来ませんでした。まだ仮想化で動かせるほどの完成度になっていないのかと半ば諦めていましたが、自宅サーバの Xen (完全仮想化) を使用したところあっさりインストールが完了しましたのでその様子をメモ書きしておきます。
一応 Xen の完全仮想化環境が構築できている前提です。
Rubyサイトからソースをダウンロードし、回答、ビルド、インストールを行う。例として今回は 2011年9月12日最新安定板の 1.9.2-p290 を使用。
torao@clove$ wget "ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz" --2011-09-12 18:23:10-- ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz => `ruby-1.9.2-p290.tar.gz' ftp.ruby-lang.org をDNSに問いあわせています... 221.186.184.68 ftp.ruby-lang.org|221.186.184.68|:21 に接続しています... 接続しました。 anonymous としてログインしています... ログインしました! ==> SYST ... 完了しました。 ==> PWD ... 完了しました。 ==> TYPE I ... 完了しました。 ==> CWD /pub/ruby/1.9 ... 完了しました。 ==> SIZE ruby-1.9.2-p290.tar.gz ... 11182217 ==> PASV ... 完了しました。 ==> RETR ruby-1.9.2-p290.tar.gz ... 完了しました。 長さ: 11182217 (11M) 100%[==========================================================>] 11,182,217 1.20M/s 時間 8.8s 2011-09-12 18:23:19 (1.22 MB/s) - `ruby-1.9.2-p290.tar.gz' へ保存終了 [11182217] torao@clove$ tar zxvf ruby-1.9.2-p290.tar.gz ruby-1.9.2-p290/ ruby-1.9.2-p290/.cvsignore ruby-1.9.2-p290/.document … torao@clove$ cd ruby-1.9.2-p290 torao@clove$ ./configure --prefix=/usr/local/ruby-1.9.2-p290 checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu … torao@clove$ make gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o main.o -c main.c gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -W … torao@clove$ sudo make install [sudo] password for torao: ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc encdb.h unchanged make -f enc.mk RUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " MINIRUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " srcs … torao@clove$ cd /usr/local torao@clove$ sudo ln -s ruby-1.9.2-p290 ruby
あとは /usr/local/ruby/bin にパスを通して終わり。
Eclipse 3.7 で JPA (Java Persistence API) の Entity クラスを自動生成する方法について。
JPA における Entity クラスとはデータベースへのデータの出し入れを簡単に行うためのオブジェクトを定義するためのもの。Entity クラスがテーブルのスキーマ定義で、そのインスタンスが 1 レコードと考えるとイメージしやすいかもしれない (実際には結合などで生成されることもあるから必ずしもテーブルと 1 対 1 ではないが)。
IDE | Eclipse 3.7 (Indigo) |
---|---|
Plugins | Dali Java Persistence Tools - Eclipse Link JPA Suppor 3.0, JPA Diagram Editor 1.0, JPA Support 3.0 Eclipse Java EE Developer Tools 3.3 |
Database | MySQL 5.5.14 |
Eclipse 3.7 で Aptana Studio 3 を導入して Ruby on Rails 3 開発環境を構築するまでの手順です。JRuby で行っておりますが普通の Ruby でも作業は同じですので参考にしてください。Aptana Studio 3 Getting Started も参照。
Eclipse | Eclipse 3.7 (Indigo) |
---|---|
Aptana | Aptana Studio 3.0.4 |
Java | Oracle JDK 1.6.0u26 |
Ruby | JRuby 1.6.4 (ruby-1.9.2-p136) |
Rails | Rails 3.0.10 |