Re: Compiling wxRuby on Ubuntu 10.04

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 21.10.2010 23:49, schrieb Philip S.:

On Ubuntu 10.04 it should work with the wxWidgets packages without
problems. Do a
$ sudo apt-get install libwxgtk2.8-dev freeglut3-dev g++
then set the symlinks I mentioned in my previous post. Afterwards
install SWIG 1.3.38 (newer versions won’t work) and ensure the SWIG and
Ruby executables are in your PATH.
Now unpack wxRuby and
$ cd wxruby-2.0.1
$ rake
$ strip -x lib/wxruby2.so
$ rake gem
and you should be done. Works for both 1.8 and for 1.9. But not on
Ubuntu Maverick, because a bug was introduced that makes it impossible
to compile wxRuby (see another thread of mine a few days ago).

Note however that I do not use the Ruby provided by Ubuntu. I think they
compile it without the --enable-shared flag wich is required by wxRuby
and apart from that the Ruby provided by the Ubuntu packagers is a bit
out of date. Therefore I compiled Ruby myself into
/opt/rubies/ruby-1.9.2-p0. If you want to that as well, I recommend you
to
$ sudo apt-get install libssl-dev zlib1g-dev libreadline5-dev
libyaml-dev
before, otherwise your’re missing some important C extensions (mainly
ZLib: Rubygems depends on it).

Vale,
Marvin

PS: Sorry if this appears twice. Somehow my mail seems to have vanished.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMwU4zAAoJEGrS0YjAWTKVcIUH/iWcTUDpwUrXApxZSuOGKBFZ
wI8YQXua8OQBiWoLUcE7dWlbZgPFbfFMCKpL76sseki4/WxKrYxg/UI/8l7lEa3J
G3sPxQYuwWCwR9UsiIWLjvVuufcI1SD33dga64BLJR9crrYVMlT3pR/MeFyl/XQx
/rgCGlDxMwfPCj8M9iWAdeflKh3TngVZ1lgu7UuFwhOAcdn0afnzeU2cR1pAA1cW
JoxPGoMREiz0RfLlSlehIamkWM04FVHJ76mITlpSCvIwsPyfRd5huVynR38lu2Pq
s5NzRHN4L4OHKG1cZyViSu3jJv8GkCoyBgJ2Te+VSOTbTz6b3qjiBzu6dk3f1DU=
=m/Yg
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs