Skip to content

When installing on Linux gets an error about the native extensionΒ #3

@smileart

Description

@smileart

While installing my project dependencies in Docker I encountered an issue with the binary dependency absence:

7: from /usr/local/bundle/gems/spelly-0.0.3/lib/spelly.rb:1:in `<top (required)>'      
6: from /usr/local/bundle/gems/spelly-0.0.3/lib/spelly.rb:1:in `require'               
5: from /usr/local/bundle/gems/hunspell-ffi-0.1.2/lib/hunspell-ffi.rb:3:in `<top (required)>'
4: from /usr/local/bundle/gems/hunspell-ffi-0.1.2/lib/hunspell-ffi.rb:4:in `<class:Hunspell>'
3: from /usr/local/bundle/gems/hunspell-ffi-0.1.2/lib/hunspell-ffi.rb:6:in `<module:C>'
2: from /usr/local/bundle/gems/ffi-1.11.3/lib/ffi/library.rb:99:in `ffi_lib'           
1: from /usr/local/bundle/gems/ffi-1.11.3/lib/ffi/library.rb:99:in `map'               
/usr/local/bundle/gems/ffi-1.11.3/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library 'libhunspell': libhunspell: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libhunspell.so': libhunspell.so: cannot open shared object file: No such file or directory.
Could not open library 'libhunspell-1.2': libhunspell-1.2: cannot open shared object file: No such file or directory.
Could not open library 'libhunspell-1.2.so': libhunspell-1.2.so: cannot open shared object file: No such file or directory.
Could not open library 'libhunspell-1.2.so.0': libhunspell-1.2.so.0: cannot open shared object file: No such file or directory

Shouldn't libhunspell come with the gem? Or, if not, perhaps it should be mentioned in README as an external thing which is supposed to be pre-installed before using the lib.

Here are the images I'm using: 2.6.5-stretch which it its turn based on this official image buildpack-deps
which is essentially Debian.

Whatever the solution is going to be, thanks in advance. πŸ™

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