[Lazarus] version `GLIBC_2.34' not found error when running app on different PC

Mehmet Erol Sanliturk m.e.sanliturk at gmail.com
Fri Mar 17 06:53:01 CET 2023

On Fri, Mar 17, 2023 at 8:18 AM Kostas Michalopoulos via lazarus <
lazarus at lists.lazarus-ide.org> wrote:

> On 3/17/23 01:36, Bo Berglund via lazarus wrote:
> > I do not know what the library libc.so.6 even does....
> It is the C library that one or more of units/libraries you are linking
> against require.
> The issue is that you are making a binary on a newer version of glibc
> (the C library) than the system you want to run it - glibc (and most
> libraries really) is *backwards* compatible but not *forward*
> compatible: you can only run binaries on a system that uses the same or
> older versions of the library/libraries but not newer.
> The solution is very simple: build the binary on the oldest version of
> libraries you want to support - with the easiest approach being to
> download an ISO of some older version of a distro that has the oldest
> versions you want to support. For example AppImage suggests using at
> most the oldest still supported version of Ubuntu (e.g. Bionic Beaver
> from 2018).
> This is not unique to Lazarus or FPC, BTW, it is the same for any
> language and program that links against shared libraries on Linux.
> Kostas
> --
> _______________________________________________
> lazarus mailing list
> lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus

Some portability is obtained if the libraries are linked as "static" .
If "dynamic" linking is selected , during execution of the program ,
the "same" library should be in the executing computer .

Mehmet Erol Sanliturk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230317/233f77f8/attachment-0001.htm>

More information about the lazarus mailing list