3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Ruby で GUI】 wxRuby のインストール

Last updated at Posted at 2012-04-27

Ruby で GUI をするなら、現時点では wxRuby がベストな選択肢の一つだと思う。
Ubuntu11.10、Ruby1.9.2 という環境なら以下のコマンドでインストールできる。

sudo apt-get install libwxbase2.8-{0,dev}
sudo apt-get install libwxgtk2.8-{0,dev}
sudo gem install wxruby-ruby19

以下のコマンドで窓が出てきたら成功。ディレクトリは環境によって異なるかも。

ruby -rubygems /usr/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/samples/minimal/minimal.rb

ついでに、コードをより Ruby らしく書けるようになる wxSugar もインストールしておくといいかも。

sudo gem install wx_sugar
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?