Closed albertz closed 8 years ago
brew doctor
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Setting LD_* vars can break dynamic linking.
Set variables:
LD_LIBRARY_PATH: /usr/lib32:/usr/local/lib:/usr/local/cuda-6.5/lib64
Unset LD_LIBRARY_PATH
as brew doctor
recommends will likely fix your issue.
But I need this LD_LIBRARY_PATH so that my environment works properly.
If you're on a 32-bit system, adding /usr/lib32
to your LD_LIBRARY_PATH
is going to create much trouble. Can you try removing unnecessary directories from your LD_LIBRARY_PATH
? Try
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64
Which tools are you using that require that LD_LIBRARY_PATH
be set like so?
There are some custom and proprietary tools installed in /usr/local, also CUDA, and I have some research software which e.g. links to CUDA, and I must work with them all the time, so I have them in my LD_LIBRARY_PATH
.
You can try setting export HOMEBREW_BUILD_FROM_SOURCE=1
. It will prevent glibc
from being installed.
Yes, that works.
But I wonder, this bug is not really fixed then? Maybe I want to use the newer Glibc via Linuxbrew.
Instead of using LD_LIBRARY_PATH
, consider instead editing /etc/ld.so.conf
and run ldconfig
after.
I don't have root access so I cannot edit /etc/ld.so.conf
.
Which of the three directories in the LD_LIBRARY_PATH
is causing the trouble with installing glibc
? I suspect /usr/lib32
, but it could also be /usr/local/lib
.
@albertz You might also consider using direnv
to prepend to LD_LIBRARY_PATH
when you enter your project directory. When you need to install packages, merely disable the environment and rename when done.
I have been bitten by this before and haven't found a good workaround as yet.
I would like to have a self-contained installation of Linuxbrew. Steps are following (illustrated here: https://github.com/DoomHammer/brewstrap/pull/7/files#diff-a4a8b02a861c11cadeebb2a3a5f799fcR55 ):
gcc
, binutils
and make
glibc
glibc
as bottled one is not relocatable. Actually, all brewed software ceases to work.I tried building glibc
having other C runtime installed (like musl
) but funny thing is glibc
requires glibc
to build.
This bug is essentially the last blocker to enabling a fully standalone, system-independent and prefix-independent Linuxbrew.
I now tried to reset LD_LIBRARY_PATH but I get the bug even then.
After I installed Glibc, I get all the time this error/warning whenever I start any command which was installed by Linuxbrew:
Full output of Glibc installation:
Then I updated Linuxbrew and it fixed this:
When I unlink Glibc (
brew unlink glibc
), this error goes away.