Could anybody help me on this? (require 'libglade2')

Hi all,

I just installed ruby-gnome2-all-0.16.0 on my cygwin box with building
from
source code. ( It tells me that the ruby-glade installed sucessfully.)

When I try to run my a.rb, it reports errors. Could anybody help me?

=====================
bash-3.2$ ruby -e ‘puts $:’
/usr/lib/ruby/site_ruby/1.8
/usr/lib/ruby/site_ruby/1.8/i386-cygwin
/usr/lib/ruby/site_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i386-cygwin
.
bash-3.2$ cat a.rb
#!/usr/bin/env ruby

require ‘libglade2’

bash-3.2$ ruby -d a.rb
Exception LoadError' at /usr/lib/ruby/site_ruby/1.8/glib2.rb:179 - no such file to load -- gettext ExceptionLoadError’ at /usr/lib/ruby/site_ruby/1.8/pango.rb:11 - no
such
file to load – cairo
Exception LoadError' at /usr/lib/ruby/site_ruby/1.8/gtk2/base.rb:16 - no such file to load -- cairo ExceptionLoadError’ at
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/gtk2.so:0 -
No such file or directory -
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/gtk2.so
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/gtk2.so: No such file or
directory -
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/gtk2.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/gtk2/base.rb:19
from /usr/lib/ruby/site_ruby/1.8/gtk2.rb:11:in require' from /usr/lib/ruby/site_ruby/1.8/gtk2.rb:11 from /usr/lib/ruby/site_ruby/1.8/libglade2.rb:11:inrequire’
from /usr/lib/ruby/site_ruby/1.8/libglade2.rb:11
from a.rb:3:in `require’
from a.rb:3
bash-3.2$ ls -lt /usr/lib/ruby/site_ruby/1.8/i386-cygwin/gtk2.so
-rwxr-xr-x 1 Jim_Zhang mkpasswd 677376 Jun 16 11:52
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/gtk2.so

bash-3.2$ env
TERM=xterm
PROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 8, GenuineIntel
WINDIR=C:\WINDOWS
OLDPWD=/dev/ruby/ruby-gnome2-all-0.16.0
USERDOMAIN=ENTERPRISE
OS=Windows_NT
QTJAVA=C:\Program Files\Java\j2re1.4.2_04\lib\ext\QTJava.zip
PROCESSOR_LEVEL=6
PATH=/cygdrive/c/Program
Files/ThinkPad/Utilities:/cygdrive/c/oracle/ora92/bin:/cygdrive/c/Program
Files/Oracle/jre/1.3.1/bin:/cygdrive/c/Program
Files/Oracle/jre/1.1.8/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program
Files/Intel/Wireless/Bin/:/cygdrive/c/Program
Files/Symantec/pcAnywhere/:/cygdrive/c/Program
Files/Perforce:/usr/bin:/cygdrive/c/Program Files/RSA Security/RSA
SecurID
Software Token/:/cygdrive/c/Program Files/VERITAS/VERITAS Object
Bus/bin:/cygdrive/c/Program
Files/QuickTime/QTSystem/:/ruby/lib/GTK/bin:/usr/bin
FP_NO_HOST_CHECK=NO
PWD=/dev/ruby
VIP_PATH=C:\Program Files\VERITAS\VERITAS Object Bus\bin
SYSTEMDRIVE=C:
__COMPAT_LAYER=EnableNXShowUI
USERPROFILE=C:\Documents and Settings\jim_zhang
LOGONSERVER=\HKGIPS01
PROCESSOR_ARCHITECTURE=x86
SHLVL=1
HOME=/cygdrive/c/Documents and Settings/jim_zhang
USERDNSDOMAIN=ENTERPRISE.VERITAS.COM
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
HOMEDRIVE=C:
VRTSOBDIR=“C:\Program Files\VERITAS\VERITAS Object Bus”
COMSPEC=C:\WINDOWS\system32\cmd.exe
TMP=/cygdrive/c/DOCUME~1/JIM_ZH~1/LOCALS~1/Temp
SYSTEMROOT=C:\WINDOWS
PROCESSOR_REVISION=0e08
CLASSPATH=e:\cygwin\bin;e:\cygwin\ruby\bin;e:\cygwin\lib
PROGRAMFILES=C:\Program Files
NUMBER_OF_PROCESSORS=2
SESSIONNAME=Console
COMPUTERNAME=L-E44391-B
_=/usr/bin/env

=======================================

Best regards,

Jim Z.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs