Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why shall glibc never get installed on GNU/Linux systems in /usr/local?

0
Posted

Why shall glibc never get installed on GNU/Linux systems in /usr/local?

0

{AJ} The GNU C compiler treats /usr/local/include and /usr/local/lib in a special way, these directories will be searched before the system directories. Since on GNU/Linux the system directories /usr/include and /usr/lib contain a — possibly different — version of glibc and mixing certain files from different glibc installations is not supported and will break, you risk breaking your complete system. If you want to test a glibc installation, use another directory as argument to –prefix. If you like to install this glibc version as default version, overriding the existing one, use –prefix=/usr and everything will go in the right places.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.