mvz / gir_ffi-gtk

GirFFI-based bindings for Gtk+. Supports both Gtk+ 2 and Gtk+ 3
GNU Lesser General Public License v2.1
19 stars 7 forks source link

Can't find *.so.0 #11

Closed duckinator closed 11 years ago

duckinator commented 11 years ago

Now that that other issue was fixed, the webkit example isn't working for me because it cannot find libwebkitgtk-3.0.so. I only have libwebkitgtk-3.0.so.0.

sudo ln -s /usr/lib/libwebkitgtk-3.0.so{.0,} fixed it, but that's far from optimal.

Output when running before adding that symlink:

/home/nick/.gem/ruby/1.9.1/gems/ffi-1.6.0/lib/ffi/library.rb:123:in `block in ffi_lib': Could not open library 'webkitgtk-3.0': webkitgtk-3.0: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libwebkitgtk-3.0.so': libwebkitgtk-3.0.so: cannot open shared object file: No such file or directory
    from /home/nick/.gem/ruby/1.9.1/gems/ffi-1.6.0/lib/ffi/library.rb:90:in `map'
    from /home/nick/.gem/ruby/1.9.1/gems/ffi-1.6.0/lib/ffi/library.rb:90:in `ffi_lib'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder/module.rb:94:in `setup_lib_for_ffi'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder/module.rb:57:in `build_module_non_recursive'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder.rb:31:in `build_module_non_recursive'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder/module.rb:69:in `block in build_dependencies'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder/module.rb:67:in `each'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder/module.rb:67:in `build_dependencies'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder/module.rb:48:in `build_module'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder/module.rb:20:in `generate'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi/builder.rb:27:in `build_module'
    from /home/nick/.gem/ruby/1.9.1/gems/gir_ffi-0.5.1/lib/gir_ffi.rb:19:in `setup'
    from ./browser.rb:6:in `<main>'
mvz commented 11 years ago

The introspection data should point to the specific version of the library. If it doesn't, as a workaround, installing the -dev package should create the appropriate symlink for you.

duckinator commented 11 years ago

Haha, whoops. I installed libwebkitgtk-dev instead of libwebkitgtk-3.0-dev before. Sorry about that. Works now that I got the latter installed. :)