Ubuntu 8.10 に Waves をインストール
いつも通り rubygems であっさり入るのかと思いきや。。。
$ sudo gem install waves Building native extensions. This could take a while... Successfully installed rakegen-0.6.6 Successfully installed choice-0.1.2 Successfully installed autocode-1.0.0 Successfully installed rack-cache-0.2.0 Successfully installed extensions-0.6.0 Successfully installed filebase-0.3.6 Successfully installed english-0.3.1 Successfully installed RedCloth-4.1.1 Successfully installed live_console-0.2.0 Successfully installed functor-0.5.1 Successfully installed waves-0.8.2 11 gems installed Installing ri documentation for rakegen-0.6.6... Installing ri documentation for autocode-1.0.0... Installing ri documentation for rack-cache-0.2.0... Installing ri documentation for extensions-0.6.0... Installing ri documentation for filebase-0.3.6... Installing ri documentation for english-0.3.1... Installing ri documentation for RedCloth-4.1.1... Installing ri documentation for live_console-0.2.0... Installing ri documentation for functor-0.5.1... Installing ri documentation for waves-0.8.2... Installing RDoc documentation for rakegen-0.6.6... Installing RDoc documentation for autocode-1.0.0... Installing RDoc documentation for rack-cache-0.2.0... Installing RDoc documentation for extensions-0.6.0... Installing RDoc documentation for filebase-0.3.6... Installing RDoc documentation for english-0.3.1... Installing RDoc documentation for RedCloth-4.1.1... Installing RDoc documentation for live_console-0.2.0... Installing RDoc documentation for functor-0.5.1... Installing RDoc documentation for waves-0.8.2...
Waves も他のフレームワークと同じように、アプリーケーションの雛形を作ったりサーバーを起動したりするための、waves というコマンドが用意されています。これを実行したところ、エラーになってしまいました。
$ waves
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- metaid (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/waves-0.8.2/bin/../lib/waves.rb:9
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/waves-0.8.2/bin/waves:22
from /usr/bin/waves:19:in `load'
from /usr/bin/waves:19エラーメッセージから metaid というのがロード出来なかったようなので、これをインストールしてみます。
$ sudo gem install metaid Successfully installed metaid-1.0 1 gem installed
そして waves コマンドを実行してみると、
$ waves ** Waves 0.8.2 ** Usage: waves [ generate | server | console ] [ options ] Run a waves command with the given options. Use --help with any command to learn more about that command. EXAMPLE: waves generate --help
これで大丈夫みたいです。と思いきや、チュートリアルを作成して起動してみたら ruby-debug が無いと言われてしまいました。
$ waves server ** Waves 0.8.2 ** I, [2008-12-23 13:44:11 #16704] INFO -- : Logger started. I, [2008-12-23 13:44:11 #16704] INFO -- : Waves::Server starting ... no such file to load -- ruby-debug
ということで、ruby-debug もインストールしておきます。
$ sudo gem install ruby-debug Building native extensions. This could take a while... Building native extensions. This could take a while... Successfully installed columnize-0.2 Successfully installed linecache-0.43 Successfully installed ruby-debug-base-0.10.3 Successfully installed ruby-debug-0.10.3 4 gems installed Installing ri documentation for columnize-0.2... Installing ri documentation for linecache-0.43... Installing ri documentation for ruby-debug-base-0.10.3... Installing ri documentation for ruby-debug-0.10.3... Installing RDoc documentation for columnize-0.2... Installing RDoc documentation for linecache-0.43... Installing RDoc documentation for ruby-debug-base-0.10.3... Installing RDoc documentation for ruby-debug-0.10.3...
Waves のチュートリアル Compact Apps をやってみる に続く...
Waves - Ruby の WEB アプリケーションフレームワーク