How to Install wxRuby on Ubuntu Linux
Installing wxRuby on Ubuntu Linux 8.10 isn't all that difficult to do. It could, in fact, be a lot harder than it is. Like with all gems that require native extensions it is slightly more complicated than a simple gem install but, thanks to the pre-compiled code in the gem, not by much.
These instructions are written for Ubuntu 8.10. They may apply to later or earlier versions of Ubuntu, as well as other Linux distributions, too.
If everything goes right, you should see a small GUI application pop up.
If this doesn't work, you may have to install wxRuby from source. This is quite an involved process, especially if you have to install wxWidgets itself from source as well. However, if you the follow the directions here, the entire process shouldn't take more than half an hour.
These instructions are written for Ubuntu 8.10. They may apply to later or earlier versions of Ubuntu, as well as other Linux distributions, too.
- Install wxWidgets base. wxRuby2 depends on wxWidgets 2.8.x. If you already have wxWidgets installed but you don't know which version, you can try checking with your package manager or with the wx-config --version command.
$ sudo gem install libwxbase2.8-{0,dev}
- Install wxWidgets GTK widgets.
$ sudo gem install libwxgtk2.8-{0,dev}
- Install the wxRuby gem.
$ sudo gem install wxruby
- Test the installation.
$ cd /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/samples
$ ruby -rubygems minimal/minimal.rb
If everything goes right, you should see a small GUI application pop up.
If this doesn't work, you may have to install wxRuby from source. This is quite an involved process, especially if you have to install wxWidgets itself from source as well. However, if you the follow the directions here, the entire process shouldn't take more than half an hour.
Source...