Skip to content

libxml2.so.2 missing from ubuntu 25.10 causes c3c to error #2860

@thomasblakelycloudwave

Description

@thomasblakelycloudwave
$ c3c compile hello.c3 
c3c: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

fix identified

thomas@sterling:~/Documents/development/c3/hello$ sudo ldconfig -p | grep libxml
	libxml2.so.16 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxml2.so.16
	libxml2.so.16 (libc6) => /lib/i386-linux-gnu/libxml2.so.16
	libxml2.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libxml2.so
	libxmlb.so.2 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxmlb.so.2
thomas@sterling:~/Documents/development/c3/hello$ sudo ln -s /lib/x86_64-linux-gnu/libxml2.so.16 /lib/x86_64-linux-gnu/libxml2.so.2

and working:

thomas@sterling:~/Documents/development/c3/hello$ c3c compile hello.c3 
c3c: /lib/x86_64-linux-gnu/libxml2.so.2: no version information available (required by c3c)
c3c: /lib/x86_64-linux-gnu/libxml2.so.2: no version information available (required by c3c)
Program linked to executable './hello'.
thomas@sterling:~/Documents/development/c3/hello$ 

reference: https://discourse.ubuntu.com/t/psa-ubuntu-25-10-features-a-libxml2-version-with-api-breaking-changes/71783

i am raising this as perhaps it is worth noting somewhere. this is likely affecting multiple distros (i tested on debian and no issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions