py-spy
py-spy copied to clipboard
Unable to `cargo install` Can't link to -lunwind
Errs out at step 178 building py-spy (bin)
= note: /usr/bin/ld: cannot find -lunwind: No such file or directory
/usr/bin/ld: cannot find -lunwind-ptrace: No such file or directory
/usr/bin/ld: cannot find -lunwind-x86_64: No such file or directory
collect2: error: ld returned 1 exit status
Looking at the long error message, I see that the correct library path is present "-L" "/usr/lib/x86_64-linux-gnu"
I am running ubuntu22 with libunwind8
installed.
jayed@bench-1:~/repos/py-spy$ ls /usr/lib/x86_64-linux-gnu/ | rg unwind
libunwind-coredump.so.0
libunwind-coredump.so.0.0.0
libunwind-ptrace.so.0
libunwind-ptrace.so.0.0.0
libunwind-x86_64.so.8
libunwind-x86_64.so.8.0.1
libunwind.so.1
libunwind.so.1.0
libunwind.so.8
libunwind.so.8.0.1
Hmm - I'm wondering if its looking for libunwind.so
and not founding it in libunwind.so.8
. Do you have any symlinks set up there? On my ubuntu machine I see symlinks for this:
$ ls -lash /usr/lib/x86_64-linux-gnu/libunwind.so
0 lrwxrwxrwx 1 root root 18 Mar 24 2022 /usr/lib/x86_64-linux-gnu/libunwind.so -> libunwind.so.8.0.1
having this same issue, has anyone sorted out a solution? obvs, can install another way, but just mentioning it still does not work, also on ubuntu
I was able to install libunwind-dev
to get past this.