Now, I’m trying to set it up in a new environment. It’s Ubuntu 11.04,
using RVM with both ruby 1.8.7 and 1.9.2 installed.
Now, when I try to launch an app that works in my old environment I’m
getting this error…
/>…/custom_require.rb:36:in `require’: libwx_gtk2u_media-2.8.so.0:
cannot open shared object file/
It’s a known problem with Ubuntu Maverick and Natty. They removed the
media library you’re missing from wxWidgets – and there’s no way to
install it separately besides compiling wxWidgets yourself. See this
bug, which is fixed in Ubuntu Oneiric:
And don’t try to compile wxWidgets yourself, you’ll run straight into a
bug in pixman which causes wxRuby to crash:
I tried installing the libraries related towxGTK but they were already
installed and updated…
$sudo apt-get install libwxgtk2.8-dev
libwxgtk2.8-dev is already the newest version.
$sudo apt-get install libwxgtk2.8-0
libwxgtk2.8-0 is already the newest version.
How can I solve this?
Upgrade to Oneiric and hope both bugs are gone. As the first one is
officially marked as “fixed” it should be; the second one may be,
because on my Arch Linux system, which uses pixman 0.22.2, that bug is
gone as well. But I don’t know wheather that pixman made it into Ubuntu
Oneiric or if the version was published after the feature freeze.