I have been having problems installing wxRuby and having it work on Ubuntu 9.10. To reproduce the problem I followed the following steps: 1 Backed up Ubuntu system 2 Installed Ubuntu 9.10 3 setup an internet connection 4 opened update manager 5 opened up a terminal: 6 sudo apt-get install ruby 7 sudo apt-get install rubygems 8 sudo apt-get install libwxgtk2.8-0 9 sudo apt-gets install libwxgtk2.8-dev 10 sudo gem install wxruby 11 ruby EyesApp.rb from EyesApp.rb begin require ''rubygems'' rescue LoadError end require ''wx'' Note: EyesApp.rb was working before upgrading to Ubuntu karmic (9.10) /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: symbol _ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU_2.8.5 not defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference - /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'' from /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'' from EyesApp.rb:5 wx-config --version 2.8.10 I''ve tried to compile wxRuby from scratch but no luck. What do I need to do? Philip _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Chauk-Mean Proum
2009-Nov-17 18:41 UTC
[wxruby-users] wxruby Installation woes on Ubuntu 9.10
Hi Philip, 2009/11/15 Philip Stephens <plusgforce at gmail.com>:> I have been having problems installing wxRuby and having it work on > Ubuntu 9.10. To reproduce the problem I followed the following steps: > > 6 sudo apt-get install ruby > 7 sudo apt-get install rubygems > 8 sudo apt-get install libwxgtk2.8-0 > 9 sudo apt-gets install libwxgtk2.8-dev > 10 sudo gem install wxruby> /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: > /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: symbol > _ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU_2.8.5 not defined in file > libwx_gtk2u_aui-2.8.so.0 with link time reference -The wxruby Linux gem has been built with/for Ubuntu 9.04. A different C++ compiler version is shipped with Ubuntu 9.10 (g++ 4.4.1). So the gem is not compatible with Ubuntu 9.10. We may provide a Ubuntu-9.10 binary gem in the future but in the meantime you have to build wxRuby yourself.> I''ve tried to compile wxRuby from scratch but no luck.? What do I need to > do?I''ve added detailed steps to do that in the Wiki : http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages Cheers. Chauk-Mean.
Hey all, I''m having similar problems with getting wxRuby to work on Karmic. I only need Wx for the MediaCtrl class, but I need it nonetheless.> We may provide a Ubuntu-9.10 binary gem in the future but in the > meantime you have to build wxRuby yourself. > >> I''ve tried to compile wxRuby from scratch but no luck. What do I need to >> do? > > I''ve added detailed steps to do that in the Wiki : > http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackagesThis doesn''t seem like a good solution to me. If you are writing an application, the last thing you want is for end-users to be forced through manual compilation (which, incidentally, did not work for me). I am eagerly anticipating a wxRuby binary gem for Ubuntu 9.10. -- Posted via http://www.ruby-forum.com/.
Since there''s been many problems with Ubuntu Karmic Kola and getting wxRuby 2.0.1 working, I''ve uploaded a Gem for wxRuby specifically for Ubuntu 9.10, at http://www.trilake.net/wxRuby/wxruby-2.0.1-x86-linux.gem. I won''t release this gem on RubyForge as it may mess up the current Gem for Ubuntu 8.04, with the naming limitations. You can download it with wget, or your fav browser, and install it by going into the directory where you downloaded it from, and typing: gem install --local wxruby-2.0.1-x86-linux.gem This gem is not meant to be used with Ruby 1.9, 64Bit Processor, or any other Version of Ubuntu, or Linux distrobution, that doesn''t use GCC 4.x series of compilers. I garuntee nothing with this file, only the chance to be able to continue your work on Ubuntu 9.10, as I have tested, and been able to make it work just fine. hth, Mario On Mon, Nov 23, 2009 at 2:11 AM, Aiden Nibali <lists at ruby-forum.com> wrote:> Hey all, I''m having similar problems with getting wxRuby to work on > Karmic. I only need Wx for the MediaCtrl class, but I need it > nonetheless. > > > We may provide a Ubuntu-9.10 binary gem in the future but in the > > meantime you have to build wxRuby yourself. > > > >> I''ve tried to compile wxRuby from scratch but no luck. What do I need to > >> do? > > > > I''ve added detailed steps to do that in the Wiki : > > > http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages > > This doesn''t seem like a good solution to me. If you are writing an > application, the last thing you want is for end-users to be forced > through manual compilation (which, incidentally, did not work for me). I > am eagerly anticipating a wxRuby binary gem for Ubuntu 9.10. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20091123/b1e35da6/attachment.html>
Hey Mario, Thanks for your effort. I''ve finally managed to compile wxRuby myself, and ended up with a ~3 MiB gem. Since your gem is a bit larger, have you somehow made it work more consistently on different machines? I''m really not good when it comes to binary stuff as I''ve always worked with languages such as Java and Ruby. -- Posted via http://www.ruby-forum.com/.