Q why do I get: uninitialized constant GLUT::BITMAP_8_BY_13

Hi

Doing a little open GL from Ruby fails on my production server (Ubuntu)
but not on my labtop (Fedora) even though runby-opengl is installed
without any complaints on both machines.

On Ubuntu I get this error running my script:

./gxaamta-stdin.rb:392:in `render’: uninitialized constant

GLUT::BITMAP_8_BY_13 (NameError)

ruby -v

ruby 1.8.2 (2004-12-25) [i686-linux]

gem -v

0.9.4

gem list --local

*** LOCAL GEMS ***

mkrf (0.2.2)
Generate Rakefiles to Build C Extensions to Ruby

needle (1.3.0)
Needle is a Dependency Injection/Inversion of Control container for
Ruby. It supports both type-2 (setter) and type-3 (constructor)
injection. It takes advantage of the dynamic nature of Ruby to
provide a rich and flexible approach to injecting dependencies.

rake (0.7.3)
Ruby based make-like utility.

ruby-opengl (0.40.1)
OpenGL Interface for Ruby

sources (0.0.1)
This package provides download sources for remote gem installation

Only different is on my laptop I have:
$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-linux]
[stws@labtop ruby]$ gem -v
0.9.4
$ gem list --local
… same as above

looking into /usr/lib/ruby/gems/1.8/gems/ruby-opengl-0.40.1, I find
BITMAP_* in lib/glut.so on both machines, only why doesn’t it seem to be
on my Ubuntu, any clues/hints very welcome?

BTW Where are a compiled gem found and loaded by ruby’ require
statement?

On 10/19/07, Steffen winther Soerensen [email protected] wrote:

Hi

Doing a little open GL from Ruby fails on my production server (Ubuntu)
but not on my labtop (Fedora) even though runby-opengl is installed
without any complaints on both machines.

I am able to run ruby-opengl examples on my Ubuntu desktop.

Linux 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686
GNU/Linux

ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]

The example I ran start as follows:
#!/usr/bin/env ruby -rubygems

Name: nehe_lesson05.rb

Purpose: An implementation of NeHe’s OpenGL Lesson #05

using ruby-opengl (http://nehe.gamedev.net/)

require “gl”
require “glu”
require “glut”
require “mathn”

Add GL and GLUT namespaces in to make porting easier

include Gl
include Glu
include Glut

Prasad