Skip to content

May need to manually call ldconfig after make install #40

@guillerodriguez

Description

@guillerodriguez

On fresh installs of Ubuntu 14.04 and Ubuntu 16.04, building and installing libpagekite does not update the ld cache.

$ pagekitec
pagekitec: error while loading shared libraries: libpagekite.so.1: cannot open shared object file: No such file or directory
$ ls /usr/local/lib/libpagekite.so*
/usr/local/lib/libpagekite.so    /usr/local/lib/libpagekite.so.1.0.0
/usr/local/lib/libpagekite.so.1
$ sudo ldconfig
$ pagekitec
This is pagekitec.c from libpagekite 0.91.170301C.
[...]

Manually running ldconfig after make install fixes the problem.

This is apparently due to the Makefile calling libtool -n which builds symlinks as needed but skips updating the cache.

References:

I don't know if it is reasonable to try to fix this but perhaps it would be a good idea to document it (for example print a message from make install)

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