I was attempting to just compile glibc version 2.31, by first installing the dependencies by running:
and then glibc as stated here:
mkdir /home/machine/Desktop/glibc-build
then change it to current directory:
cd /home/machine/Desktop/glibc-build
and after that execute configure from the source directory:
/home/machine/Desktop/glib-xxx/./configure --prefix=/usr
One of the user even mentioned
glibc IS YOUR operating system
But doing so indeed broke my system. First I lost typical linux terminal commands such as ls
then after restarting my system I got:
kernel panic - not syncing: Attempted to kill init! exit code 0x00007f00
Question How does mere compiling broke my system? As I understand Ubuntu's glibc reside in /lib/
while I was merely trying to compile it in /usr/
, so how did without replacing the systems glibc broke my system? Also my laptop doesnt show full error dump so is there any way to read full terminal output during booting as I cant access /var/
anymore?
My system is using Ubuntu 18.04.6 LTS
/usr
, though. You probably should have set the prefix to your home directory and see if anything broke first... On my system, when I typewhich ls
, it says that it resides in/usr/bin/ls
. When I do anstrace ls
, it does (unsuccessfully, though) look for things in/usr
. Might not be important...but it wasn't a good idea to try... – Ray Jan 12 '23 at 22:10/opt
– user0193 Jan 12 '23 at 22:15