I'm on a Ubuntu (essentially Debian) linux system. What non-ruby
packages do I need to install to satisfy the dependencies for the Ruby
OpenGL extension?
It's looking for the libraries gl, glu, and glut. I installed glut,
but I'm not sure what package would give me the gl and glu libraries.
Some of the Mesa libraries are installed, so I would've thought that
those would satisify the dependencies, but apparently not.
I'm on a Ubuntu (essentially Debian) linux system. What non-ruby
packages do I need to install to satisfy the dependencies for the Ruby
OpenGL extension?
It's looking for the libraries gl, glu, and glut. I installed glut,
but I'm not sure what package would give me the gl and glu libraries.
When you installed libopengl-ruby, it should have handled all the dependencies for you. libopengl-ruby requires freeglut3, which requires xlibmesagl and xlibmesaglu.
Thanks! I don't trust debian-style ruby packages any more.. I prefer
to compile it all Ruby related things and put it in one of my local
directories.
But on my system, freeglut3-dev is installed. And those other
packages (xlibmesa-gl-dev and xlibmesa-glu-dev) are installed too.
joe@big:~/src/opengl-0.32d$ ruby extconf.rb
checking for XAllowDeviceEvents() in -lXi... yes
checking for XMITMiscGetBugMode() in -lXext... yes
checking for XmuAddCloseDisplayHook() in -lXmu... yes
checking for XOpenDisplay() in -lX11... yes
checking for main() in -lGL... yes
checking for main() in -lGLU... no
checking for main() in -lMesaGLU... no
can't create OpenGL module!
Why can't it see /usr/lib/libGLU.so or /usr/lib/libGLU.a?
ยทยทยท
On 7/18/05, mathew <meta@pobox.com> wrote:
Joe Van Dyk wrote:
> I'm on a Ubuntu (essentially Debian) linux system. What non-ruby
> packages do I need to install to satisfy the dependencies for the Ruby
> OpenGL extension?
>
> It's looking for the libraries gl, glu, and glut. I installed glut,
> but I'm not sure what package would give me the gl and glu libraries.
When you installed libopengl-ruby, it should have handled all the
dependencies for you. libopengl-ruby requires freeglut3, which requires
xlibmesagl and xlibmesaglu.
Thanks! I don't trust debian-style ruby packages any more.. I prefer
to compile it all Ruby related things and put it in one of my local
directories.
Someone mostly sorted out the Debian ruby packages a while ago.
Also, if you really want to install bleeding-edge versions, you can always install the Debian packages, then install the bleeding-edge versions in /usr/local and make sure your search path loads from /usr/local first. I do that with all kinds of things, not just Ruby.
But on my system, freeglut3-dev is installed. And those other
packages (xlibmesa-gl-dev and xlibmesa-glu-dev) are installed too.
joe@big:~/src/opengl-0.32d$ ruby extconf.rb
Looks like the version you have there is older than the one in Debian's repository (1.32f pl 1), and older than the current version via RubyForge.
Why can't it see /usr/lib/libGLU.so or /usr/lib/libGLU.a?
After some investigation, it looks like
% apt-get install glutg3-dev
will fix it. At least, extconf.rb then works for me.