I had a problem while trying to install glibc 2.14, I got this error
/home/myname/glibc_install/glibc-2.14/build/elf/ldconfig: Can't open configuration file /opt/glibc-2.14/etc/ld.so.conf: No such file or directory
The fix suggested this
:/opt/glibc-2.14/etc$ sudo sh -c "echo '/opt/lib' >> ld.so.conf"
AFAIK sudo sh -c "echo '/opt/lib' >> ld.so.conf"
means open the sh
program(the shell) and give it this command "echo '/opt/lib' >> ld.so.conf"
to execute, which creates a file named ld.so.conf
in the current directory and save in it /opt/lib
, is that right ? what does the entire line means, or what the shell is going to do step by step ?