[Libwebsockets] error while loading shared libraries: libwebsockets.so.18: cannot open shared object file: No such file or directory

Lasse Järvensivu l.jarvensivu at gmail.com
Thu Jun 10 14:52:31 CEST 2021


Thanks, ldconfig solved the problem!

On Thu, 10 Jun 2021 at 14:35, Silas Parker <skyhisi at gmail.com> wrote:

> Hi Lasse,
>
> If the library has been installed into a non-standard location, you may
> need to add that location into your /etc/ld.so.conf and re-run ldconfig
>
> You can run 'ldconfig -p' to see where the linker is loading libraries
> from.
>
> Thanks,
> Silas
>
> On 10/06/2021 13:24, Lasse Järvensivu wrote:
> > Hello all,
> >
> > I recently started using C, Ubuntu LTS 20.04 and libwebsockets for a
> > project I am working on. I cloned main as described from the front page
> > and went to make and install as described in the build docs. Then I made
> > a small websocket server which is a mixmash of the minimal example of
> > echoing back to the user and the test server app. I removed most of the
> > test server app code so I could more easily understand it. Then I build
> > and run my server with the following commands:
> >
> > $ gcc server.c -o server -lwebsockets
> > $ ./server
> > ./server: error while loading shared libraries: libwebsockets.so.18:
> > cannot open shared object file: No such file or directory
> >
> > I have tried to figure out what may be causing this but I don't know for
> > sure. I built the source code with the -DLIB_SUFFIX=64 suffix to cmake,
> > if that may be of any help.
> >
> > _______________________________________________
> > Libwebsockets mailing list
> > Libwebsockets at ml.libwebsockets.org
> > https://libwebsockets.org/mailman/listinfo/libwebsockets
> >
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> https://libwebsockets.org/mailman/listinfo/libwebsockets
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210610/34b67765/attachment.htm>


More information about the Libwebsockets mailing list