Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libaspell.so: cannot open shared object file: No such file or directory #19

Closed
bobev18 opened this issue Dec 15, 2013 · 2 comments
Closed

Comments

@bobev18
Copy link

bobev18 commented Dec 15, 2013

It seems the ffi cannot pick up the proper location for the libaspell.so

Here is the version of aspell I have:

$ aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.7-20110707)

Here are the .so files found

$ locate aspell.so
/usr/lib/libaspell.so.15
/usr/lib/libaspell.so.15.2.0
/usr/lib/enchant/libenchant_aspell.so

Here is the stacktrace of running skeptic

$ skeptic --no-semicolons --line-length 90 --max-nesting-depth 2 --methods-per-class 12 --lines-per-method 6 zad3a.2013.rb 
/home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/ffi-1.9.3/lib/ffi/library.rb:133:in `block in ffi_lib': Could not open library 'aspell': /usr/lib/aspell: cannot read file data: Is a directory. (LoadError)
Could not open library 'libaspell.so': libaspell.so: cannot open shared object file: No such file or directory
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/ffi-1.9.3/lib/ffi/library.rb:100:in `map'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/ffi-1.9.3/lib/ffi/library.rb:100:in `ffi_lib'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/ffi-aspell-0.0.3/lib/ffi/aspell.rb:25:in `<module:Aspell>'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/ffi-aspell-0.0.3/lib/ffi/aspell.rb:23:in `<module:FFI>'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/ffi-aspell-0.0.3/lib/ffi/aspell.rb:7:in `<top (required)>'
    from /home/bob/.rvm/rubies/ruby-2.1.0-preview1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/bob/.rvm/rubies/ruby-2.1.0-preview1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/skeptic-0.0.7/lib/skeptic/rules/english_words_for_names.rb:1:in `<top (required)>'
    from /home/bob/.rvm/rubies/ruby-2.1.0-preview1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/bob/.rvm/rubies/ruby-2.1.0-preview1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/skeptic-0.0.7/lib/skeptic.rb:14:in `<top (required)>'
    from /home/bob/.rvm/rubies/ruby-2.1.0-preview1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/bob/.rvm/rubies/ruby-2.1.0-preview1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/gems/skeptic-0.0.7/bin/skeptic:3:in `<top (required)>'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/bin/skeptic:23:in `load'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/bin/skeptic:23:in `<main>'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/bin/ruby_executable_hooks:15:in `eval'
    from /home/bob/.rvm/gems/ruby-2.1.0-preview1/bin/ruby_executable_hooks:15:in `<main>'

Let me know if other details are needed.

@alehander92
Copy link
Collaborator

Well, for some reason you are really missing a libaspell.so file.
A workaround for that is to copy your /usr/lib/libaspell.so.15 file as /usr/lib/libaspell.so.

@bobev18
Copy link
Author

bobev18 commented Dec 15, 2013

done - works OK.

@bobev18 bobev18 closed this as completed Dec 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants