The package libc can't be installed directly with opkg install.
root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install libc
Unknown package 'libc'.
Collected errors:
* opkg_install_cmd: Cannot install package libc.
So i have to install it manually.
root@OpenWrt:~# wget https://downloads.openwrt.org/releases/19.07.7/targets
/x86/64/packages/libc_1.1.24-2_x86_64.ipk
--2021-06-18 02:35:32-- https://downloads.openwrt.org/releases/19.07.7/targets/x86/64/packages/libc_1.1.24-2_x86_64.ipk
Resolving downloads.openwrt.org... 2a01:4f8:251:321::2, 168.119.138.211
Connecting to downloads.openwrt.org|2a01:4f8:251:321::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 249368 (244K) [application/octet-stream]
Saving to: 'libc_1.1.24-2_x86_64.ipk.2'
libc_1.1.24-2_x86_6 100%[===================>] 243.52K 266KB/s in 0.9s
2021-06-18 02:35:35 (266 KB/s) - 'libc_1.1.24-2_x86_64.ipk.2' saved [249368/249368]
root@OpenWrt:~# opkg install libc_1.1.24-2_x86_64.ipk
Installing libc (1.1.24-2) to root...
Configuring libc.
Why can't locate it ?
root@OpenWrt:~# which libc
root@OpenWrt:~# find / -name 'libc'