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

Discussion in 'Ruby' started by Jun Young Kim, Feb 10, 2009.

  1. 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.
    Jun Young Kim, Feb 10, 2009
    #1
    1. Advertising

  2. Jun Young Kim

    Jayce Meade Guest

    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" <>
    Sent: Monday, February 09, 2009 5:28 PM
    To: "ruby-talk ML" <>
    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.
    >
    >
    >
    >
    Jayce Meade, Feb 10, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sandeep Dutta
    Replies:
    16
    Views:
    1,434
    Walter Banks
    Dec 14, 2004
  2. =?ISO-8859-1?Q?Joaqu=EDn_Gracia?=

    RISC model

    =?ISO-8859-1?Q?Joaqu=EDn_Gracia?=, Mar 7, 2005, in forum: VHDL
    Replies:
    4
    Views:
    693
    =?ISO-8859-1?Q?Joaqu=EDn_Gracia?=
    Mar 8, 2005
  3. =?ISO-8859-2?Q?Pawe=B3_Miernik?=

    VHDL model procesora RISC(DLX)

    =?ISO-8859-2?Q?Pawe=B3_Miernik?=, Apr 8, 2005, in forum: VHDL
    Replies:
    4
    Views:
    1,952
    Ziggy
    Apr 9, 2005
  4. Anoops
    Replies:
    1
    Views:
    620
    navneetcertain
    Aug 1, 2013
  5. Replies:
    8
    Views:
    182
    Jamis Buck
    Apr 25, 2005
Loading...

Share This Page