-
-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archlinux: libncurses.so.5: cannot open shared object file #291
Comments
Could you try to install |
No difference, it is version 6, when then downloaded version is looking for On Tue, 22 Sep 2015 08:39 Ivan Kravets [email protected] wrote:
|
Hi @James147 |
Not with the one in the Arch User Repo, but it appears to replace the arduino provided avrdude with the working system one: # fix avrdude
rm -f "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude"{,_bin}
ln -s /usr/bin/avrdude "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude" https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=arduino So I assume that the official arduino build of avrdude does have the same problem. |
@James147 I've just added to FAQ page info about the solution for this issue. If we recompile The idea with symbolic link is normal temporary solution. |
I had to replace the AVRDUDE=~/.platformio/packages/tool-avrdude/avrdude
rm $AVRDUDE
ln -s /usr/bin/avrdude $AVRDUDE |
You can use AUR package or solutions commented there |
Thanks @cqql your solution works like a charm for me. |
@ivankravets Thats the reason why linux distributions have a package manager. Either you ship the binary AND its dependencies or you let package manager do its work. Everything between is just a mess. So the obvious solution would be not to ship binaries at all! |
In addition to what @mdaffin posted in the first comment, I had to link the
|
Confirming that @Hamza5 's addition did it for me. I ended up symlinking both locations, but it only worked upon the second (in |
I'm trying platformio on gentoo. Most 'packages' are broken in the same way: piogdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory or % ldd .platformio//packages/toolchain-gd32v/bin/riscv-nuclei-elf-gdb |
So that issue is part of the PIO FAQ... I can't really see a proper solution here. The AUR package is gone, the symlinks look like crude hacks... |
By downloading the ncurses5-compat-libs & lib32-ncurses5-compat-libs from AUR, this issue was solved for me. |
Archlinux is now using ncurses6 which is causing the following error in platformio while trying to upload to the arduino platform:
The archlinux version of avrdude works with the quick workaround:
However, the tools that platformio downloads should come with the dependencies that they require to run or alternatively make use of the system tools when they are available.
The text was updated successfully, but these errors were encountered: