Is anyone using Ruby/Tk on HP-UX 11.11 (PA-RISC)?

J

Jun Young Kim

Hi, forks!!

I am developing some tools based on ruby/tk. but, I always met the
following errror msgs whenever I tried to execute it.

jykim$ uname -a
HP-UX rp5470 B.11.11 U 9000/800 190494686 unlimited-user license

jykim$ ruby -v
ruby 1.8.7 (2008-06-20 patchlevel 22) [hppa2.0w-hpux11.11]

jykim$ irb
irb(main):001:0> require 'tk'
LoadError: Bad magic number for shared library: /usr/local/lib/ruby/
1.8/hppa2.0w-hpux11.11/tcltklib.sl - /usr/local/lib/ruby/1.8/hppa2.0w-
hpux11.11/tcltklib.sl
from /usr/local/lib/ruby/1.8/hppa2.0w-hpux11.11/tcltklib.sl
from /usr/local/lib/ruby/1.8/tk.rb:6
from (irb):1:in `require'
from (irb):1

jykim$ my_tool
/usr/local/lib/ruby/1.8/hppa2.0w-hpux11.11/tcltklib.sl: Bad magic
number for shared library: /usr/local/lib/ruby/1.8/hppa2.0w-hpux11.11/
tcltklib.sl - /usr/local/lib/ruby/1.8/hppa2.0w-hpux11.11/tcltklib.sl
(LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/local/lib/ruby/1.8/tk.rb:6
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'

Testing server is HP-UX 11.11 (PA-RISC).
When I execute this program on other servers such as linux, windows,
solaris, dec...., it is clearly executed.
 
J

Jayce Meade

Sounds like you've got a corrupted library, to me, is there a 'magic'
library in ruby? And I mean as in it's called magic not -is- magic. =P

If that has nothing to do with this then my next guess is that the tk.rb
file is either corrupted or calling methods/loading code in other corrupted
files.

- jayce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top