Bug 3273 - Cannot run any ruby script which use ruby-fltk
: Cannot run any ruby script which use ruby-fltk
Status: CLOSED NOTABUG
: Sisyphus
(All bugs in Sisyphus/ruby-fltk)
: unstable
: all Linux
: P2 major
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2003-11-15 13:38 by
Modified: 2012-03-16 13:57 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-11-15 13:38:20
When I try to run any script(as exsample - sample/demo.rb) which use ruby-fltk, 
I get error:

/usr/share/ruby/vendor_ruby/1.8/fltk/drawable.rb:3: uninitialized constant Fltk 
(NameError)
        from /usr/share/ruby/vendor_ruby/1.8/fltk.rb:2:in `require'
        from /usr/share/ruby/vendor_ruby/1.8/fltk.rb:2
        from demo.rb:6:in `require'
        from demo.rb:6


Steps to Reproduce:
1.$ ruby /usr/share/doc/ruby-fltk-0.9.0/samples/demo.rb
2.
3.
Actual Results:  
/usr/share/ruby/vendor_ruby/1.8/fltk/drawable.rb:3: uninitialized constant Fltk 
(NameError)
        from /usr/share/ruby/vendor_ruby/1.8/fltk.rb:2:in `require'
        from /usr/share/ruby/vendor_ruby/1.8/fltk.rb:2
        from /usr/share/doc/ruby-fltk-0.9.0/samples/demo.rb:6:in `require'
        from /usr/share/doc/ruby-fltk-0.9.0/samples/demo.rb:6
------- Comment #1 From 2006-09-27 15:26:25 -------
reassign
------- Comment #2 From 2006-09-27 15:26:43 -------
$ ruby /usr/share/doc/ruby-fltk-0.9.2/samples/demo.rb
can't find header files for ruby.
$ sudo apt-get install ruby-devel
=> работает (добавлять зависимость, думаю, излишне :)
------- Comment #3 From 2006-10-09 21:06:59 -------
reopened
------- Comment #4 From 2006-10-09 21:22:06 -------
$ grep -rl "can't find header files for ruby" /usr/share/ruby/
/usr/share/ruby/1.8/mkmf.rb

Ну а сам demo.rb испоьлзует mkmf, который ему на самом деле не нужен.  Другие
примеры работают.