Professional Web Applications Themes

dlopen is failing on Window XP works great on Window 2000 - Ruby

Michael Davis <mdavissevasoftware.com> writes: > I created a very small C library for Ruby. It compilies and works great on Windows 2000 using cygwin. On Windows XP, however, I get the following run-time error: > > Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4 - dlopen: Win32 error 5 - /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4:in `require': dlopen: Win32 error 5 - /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so (LoadError) > from /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4 > from /usr/local/lib/ruby/site_ruby/1.6/locana/locana_bindings.rb:101:in `require' > from /usr/local/lib/ruby/site_ruby/1.6/locana/locana_bindings.rb:101 > from /usr/local/lib/ruby/site_ruby/1.6/locana.rb:279:in `require' > from /usr/local/lib/ruby/site_ruby/1.6/locana.rb:279 > from tst/tst_locana.rb:15:in `require' > from tst/tst_locana.rb:15 > > Has anyone seen this error before and/or have any suggestions on how to work around it? I an ...

  1. #1

    Default Re: dlopen is failing on Window XP works great on Window 2000

    Michael Davis <mdavissevasoftware.com> writes:
    > I created a very small C library for Ruby. It compilies and works great on Windows 2000 using cygwin. On Windows XP, however, I get the following run-time error:
    >
    > Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4 - dlopen: Win32 error 5 - /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4:in `require': dlopen: Win32 error 5 - /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so (LoadError)
    > from /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4
    > from /usr/local/lib/ruby/site_ruby/1.6/locana/locana_bindings.rb:101:in `require'
    > from /usr/local/lib/ruby/site_ruby/1.6/locana/locana_bindings.rb:101
    > from /usr/local/lib/ruby/site_ruby/1.6/locana.rb:279:in `require'
    > from /usr/local/lib/ruby/site_ruby/1.6/locana.rb:279
    > from tst/tst_locana.rb:15:in `require'
    > from tst/tst_locana.rb:15
    >
    > Has anyone seen this error before and/or have any suggestions on how to work around it? I an running the latest cygwin on XP. The gcc compiler is gcc version 3.2 20020927 (prerelease).
    >
    > Any suggestions on how to work around this issue is greatly appreciated.
    Check the permission of the so file:

    $ ls -l /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so

    It needs execute permission.

    --
    eban

    WATANABE Hirofumi Guest

  2. #2

    Default Re: dlopen is failing on Window XP works great on Window 2000

    This was a great suggestion but the permissions were alreay set properly. I successfully worked around this issue by running make install and eliminated moving the binary to a locana sub-directory. However, now I am faced with another issue where calling simple Win32API functions such as CreateWindow are failing. Any other suggestions?

    WATANABE Hirofumi wrote:
    > Michael Davis <mdavissevasoftware.com> writes:
    >
    >
    >>I created a very small C library for Ruby. It compilies and works great on Windows 2000 using cygwin. On Windows XP, however, I get the following run-time error:
    >>
    >>Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4 - dlopen: Win32 error 5 - /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4:in `require': dlopen: Win32 error 5 - /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so (LoadError)
    >> from /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32.rb:4
    >> from /usr/local/lib/ruby/site_ruby/1.6/locana/locana_bindings.rb:101:in `require'
    >> from /usr/local/lib/ruby/site_ruby/1.6/locana/locana_bindings.rb:101
    >> from /usr/local/lib/ruby/site_ruby/1.6/locana.rb:279:in `require'
    >> from /usr/local/lib/ruby/site_ruby/1.6/locana.rb:279
    >> from tst/tst_locana.rb:15:in `require'
    >> from tst/tst_locana.rb:15
    >>
    >>Has anyone seen this error before and/or have any suggestions on how to work around it? I an running the latest cygwin on XP. The gcc compiler is gcc version 3.2 20020927 (prerelease).
    >>
    >>Any suggestions on how to work around this issue is greatly appreciated.
    >
    >
    > Check the permission of the so file:
    >
    > $ ls -l /usr/local/lib/ruby/site_ruby/1.6/locana_gui_mswin32_ext.so
    >
    > It needs execute permission.
    >

    Michael Davis Guest

Similar Threads

  1. New Window Target doesn't open a new window inContribute but does in Firefox
    By toddtemple2 in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: January 8th, 08:36 PM
  2. Install MX 7 failed on window 2000 server.Help help!!!
    By YXIAO in forum Coldfusion Server Administration
    Replies: 0
    Last Post: September 22nd, 05:14 PM
  3. Conflict with Window 2000 SP4?
    By Catherine_Allsbury@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: April 19th, 09:01 PM
  4. Open window only works once
    By small soldier webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 0
    Last Post: September 14th, 09:25 PM
  5. Window 2000 file system
    By Nick Fooskas in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 18
    Last Post: August 14th, 04:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139