when trying to run simple ruby scripts I get an error like this:
techntronic]$./xcalc.rb
/xcalc.rb:20:in `require’: No such file to load – gtk (LoadError)
from ./xcalc.rb:20
I get this same error from other scripts (er yes
I have gtk installed…)
And you have also installed the gtk bindings for Ruby?
(Just checking the semi-obvious)
If so, check in your lib/ruby directory to make sure you have gtk.so
On my system, it is located at
/usr/lib/ruby/1.6/i586-linux-gnu/gtk.so
but this varies from system to system.
If it isn’t there, perhaps you forgot to do “make install” or “make
site-install” when installing the gtk bindings.
HTH
···
–
([ Kent Dahl ]/)_ ~[ http://www.stud.ntnu.no/~kentda/ ]/~
))_student/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_/ö____/ (_engineering.discipline=Computer::Technology)
Oops! Looks like I didn’t have ruby-gtk
installed. Thanks!
···
On Wed, Sep 04, 2002 at 10:04:19PM +0900, Kent Dahl wrote:
mike wrote:
when trying to run simple ruby scripts I get an error like this:
techntronic]$./xcalc.rb
/xcalc.rb:20:in `require’: No such file to load – gtk (LoadError)
from ./xcalc.rb:20
I get this same error from other scripts (er yes
I have gtk installed…)
And you have also installed the gtk bindings for Ruby?
(Just checking the semi-obvious)
If so, check in your lib/ruby directory to make sure you have gtk.so
On my system, it is located at
/usr/lib/ruby/1.6/i586-linux-gnu/gtk.so
but this varies from system to system.
If it isn’t there, perhaps you forgot to do “make install” or “make
site-install” when installing the gtk bindings.
HTH
–
([ Kent Dahl ]/)_ ~[ http://www.stud.ntnu.no/~kentda/ ]/~
))_student/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_/ö____/ (_engineering.discipline=Computer::Technology)
–
‘evolution is a process/
to slow to save my soul’ -the germs