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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jun Y. Kim (Guest)
on 2009-02-10 03:30
(Received via mailing list)
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.
Jayce M. (Guest)
on 2009-02-10 03:48
(Received via mailing list)
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

----
Be forewarned, an idiot just called.

--------------------------------------------------
From: "Jun Y. Kim" <removed_email_address@domain.invalid>
Sent: Monday, February 09, 2009 5:28 PM
To: "ruby-talk ML" <removed_email_address@domain.invalid>
Subject: Is anyone using Ruby/Tk on HP-UX 11.11 (PA-RISC)?
This topic is locked and can not be replied to.