Skip to content

Try non-generic shared lib names #176

@renchap

Description

@renchap

Hi, and thank you (again) for vips, and ruby-vips!

I am using ruby-vips on Debian, using the setup I described here: https://renchap.com/blog/post/building_recent_libvips_on_debian/

As said in my blog post, we currently need to install libvips-dev on Debian for ruby-vips to work. This is due to Debian packages not including symlinks for libraries in the non-dev packages.

For example, without glib-dev, I dont have a /usr/lib/x86_64-linux-gnu/libglib-2.0.so -> /lib/x86_64-linux-gnu/libglib-2.0.so.0 symlink, thus ffi_lib glib_libname fails. This is the same for gobject and vips.

Installinglibvips-dev is adding ~400 MB on a ruby:2.5-slim docker image compared to only installing libvips.

Would it be possible to try to load the full libs name, including the version number, like for Windows? If using libvips.so.42, libgobject-2.0.so.0 and libglib-2.0.so.0 it should work:

# ldconfig -p | egrep "vips|gobject|glib"
        libvipsCC.so.42 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libvipsCC.so.42
        libvips.so.42 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libvips.so.42
        libvips-cpp.so.42 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libvips-cpp.so.42
        libpoppler-glib.so.8 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
        libgobject-2.0.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
        libglib-2.0.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libglib-2.0.so.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions