Closed farzadmf closed 1 year ago
idk anything about the macintosh, or about homebrew. what I do know is that you shouldn't expect to be able to break your libc like this and succeed. maybe you need to pass the equvalent of -L? or not crossgrade your system like this? dunno.
Fair point, and I totally agree with you. Homebrew seems to be the only complete universal package manager that I can use ; works the same everywhere except Windows, but seems like it's doing some things extra (or missing things) on Linux (or at least the Linux distribution I'm using.
But yeah, I know my message here is maybe incomplete and a bit ambiguous, but that's a sign of my desparation, trying everything and not succeeding. I was hoping for a miracle maybe that someone sees this and says: "Oh yeah, it's because of this and that, and you can do \
Well, I can tell you from experience that replacing your libc, especially partially, is fixed by "very carefully reverting it to the one that was there originally and being very happy you could still boot/log in". idk what else to tell you
Hey @nabijaczleweli , I really appreciate your responses, but I do understand that this question was mostly a shot in the dark, hoping for an answer.
BUT, the good thing is that I FINALLY figured it out, and not that anyone would need it, but I'm gonna mention it just in case somebody faces the same issue.
I had a hunch that this would be an easy fix, but finding the fix was SUUUUPER HARD (at least for me).
The reason for this happening was the pkg-config
binary. When I install brew
(and set it up in my shell), it basically causes brew's pkg-config
to be the first in PATH
, and that's what messes up everything.
What I did was to make sure my system's pkg-config
(in my case, /usr/bin/pkg-config
) is picked up first, and everything is working fine now (so the other errors were a bit misleading, directing me to search for things that are not directly responsible)
One extra thing that I needed to do was to re-install rust
for it to pick up the "good" libraries.
Anyway, quite a journey for me, and maybe here was my rubber duck since I finally solved my issue after almost one week spending time on the matter here and there!
Hi, I need to set up a fresh machine from scratch, and I'm having problems installing
cargo-update
I'm seeing this error (this is part of :
Sorry, I'm not expert in Rust (not even a novice 😛 ), but I'm guessing the first line there is to blame.
A bit of a background: I'm using
homebrew
in my Linux distribution, and my Linux distribution'sglibc
libraries are old (as you can say by the fact that/lib64/libc.so.6
doesn't haveGLIBC_2.28
(my/home/linuxbrew/.linuxbrew/opt/glibc/libc.so.6
is a new one and should be fine, but it's not being picked up for some reason)Even when I do
ldd /tmp/cargo-installgZnjSN/release/deps/libserde_derive-6b7c87819d8d53e4.so
, I see this:So, I'm not sure why it's using
/lib64/libc.so.6
If I try setting
LD_LIBRARY_PATH=$HOMEBREW_PREFIX/opt/glibc/lib
, I getsegmentation fault
all over the place, and I basically cannot run any commdnI've been trying different things, and I've failed. I was wondering if you can help me with this.
Let me know if I can provide more information that can help.