Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Is anyone using Ruby/Tk on HP-UX 11.11 (PA-RISC)?

Reply
Thread Tools

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

 
 
Jun Young Kim
Guest
Posts: n/a
 
      02-10-2009
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.



 
Reply With Quote
 
 
 
 
Jayce Meade
Guest
Posts: n/a
 
      02-10-2009
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 Young Kim" <(E-Mail Removed)>
Sent: Monday, February 09, 2009 5:28 PM
To: "ruby-talk ML" <(E-Mail Removed)>
Subject: Is anyone using Ruby/Tk on HP-UX 11.11 (PA-RISC)?

> 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.
>
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone Carry Gear on Lufthansa Air? Bill? Roger? Anyone? :) MarkČ Digital Photography 34 05-20-2006 11:16 AM
Anyone who posts for Help in Here needs Intellix - Anyone providing Help Applicable Also Ditto21 Computer Support 8 02-18-2006 04:27 AM
Anyone?? Anyone at all?? JDS HTML 2 09-29-2005 07:10 PM
Anyone know anyone in Toronto Canada that will write your Mcsa Exams MonkeyMunx Microsoft Certification 17 01-05-2004 03:37 PM
Anyone? Anyone? Steve Williams Python 0 09-16-2003 03:26 AM



Advertisments