libc missing after upgrading by pkgbase

libc not found in include directory after upgrading FreeBSD stable 14.3 using pkgbase. is there anyway to recover that?
 
Please be a bit more specific. If you mean the libc.so, that does not live in 'include' anyway. And if it was missing, the system would not boot up at all.

PS:
I removed the double post from the mod queue, please read the sign up mail for details.
 
Please be a bit more specific. If you mean the libc.so, that does not live in 'include' anyway. And if it was missing, the system would not boot up at all.

PS:
I removed the double post from the mod queue, please read the sign up mail for details.
extremely sorry i am new to this forum so i don't know the rules apologies for that.

when compiling a C program i got std library error:
timem.c:1:10: fatal error: 'stdio.h' file not found
1 | #include <stdio.h>
| ^~~~~~~~~
1 error generated.​

and also got same error in zig compiler:
error: failed to find libc installation: LibCStdLibHeaderNotFound

these errors are after upgraded base system using pkgbase.
 
Does /usr/include/stdio.h exist? Does the directory exist? Are the permissions on all the directories and this file such that they are readable?
 
libc not found in include directory after upgrading FreeBSD stable 14.3 using pkgbase. is there anyway to recover that?
Fix:
pkg install -f FreeBSD-include FreeBSD-libraries
Then reboot.
If still missing, reinstall all base sets:
pkg install -f FreeBSD-*
This restores /usr/include and /usr/lib with libc.
 
there are no such packages as "FreeBSD-include" or "FreeBSD-libraries" (at least not on any remotely current release).

for stdio.h you should install FreeBSD-clibs-dev. edit: and you do not need to reboot after installing this.
 
Back
Top