From: Joe Van Dyk Date: 2005-07-19T02:35:53+09:00 Subject: Re: Installing ruby-opengl On 7/18/05, mathew 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. > > % apt-get install libopengl-ruby > % gunzip -c /usr/share/doc/libopengl-ruby/examples/teapots.rb.gz | ruby > > I see teapots. 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! joe@big:~/src/opengl-0.32d$ ls /usr/lib/libGL* /usr/lib/libGL.a /usr/lib/libGL.so /usr/lib/libGLU.a /usr/lib/libGLU.so.1.3 /usr/lib/libGLcore.so.1 /usr/lib/libGL.so.1 /usr/lib/libGLU.so /usr/lib/libGLcore.so.1.0.7174 /usr/lib/libGL.so.1.0.7174 /usr/lib/libGLU.so.1 Why can't it see /usr/lib/libGLU.so or /usr/lib/libGLU.a?