Skip to content

"The specified module could not be found" error after install #4

@ncsibra

Description

@ncsibra

Hi,

I'm working on a Win7 64bit machine, compiled a leveldb.dll with mingw based on this repo: https://github.com/zalanyib/leveldb-mingw
Then installed your gem, withour errors, the 'leveldb_native.so' file was created and copied to the extension directory.
The problem is, when I try to require it in a script, I got an error:

G:/apps/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require': 126: The specified module could not be found.   - G:/apps/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/leveldb-native-0.6/leveldb-native/leveldb_native.so (LoadError)
    from G:/apps/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
    from G:/apps/Ruby193/lib/ruby/gems/1.9.1/gems/leveldb-native-0.6/lib/leveldb-native.rb:1:in `<top (required)>'
    from G:/apps/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `require'
    from G:/apps/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
    from G:/apps/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in `require'
    from G:/home/dev/dbtest/test.rb:2:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

As I see from google searches, it doesn't find the dll file.
I tried severeal things:

  • add the location of the dll to the PATH
  • copy to the ruby bin and lib directory
  • copy to a directory which in the LOAD_PATH
  • do all of the previous with file names 'leveldb.dll' and 'libleveldb.dll'
    None of them helped.

How can I solve this?
Where it search for the DLL and which name?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions