While I try to install node-red with dietpi-software, I´ll get the error: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26’ not found (required by node)
I have made a bugreport with the reference code: b1439634-73e4-4597-9c72-ce04f8d3779f
Can anyone help me with the bug, or access the bug report somewhere?
root@Cloud:~# uname -a
Linux Cloud 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
root@Cloud:~# dpkg --print-architecture
armhf
root@Cloud:~# echo $G_HW_MODEL_NAME
RPi 4 Model B (armv7l)
The problem seems to occur when node-red is to be installed. Node will be installed fine!?
Step: Installing Node-RED: tool for wiring devices, APIs and online services
[ INFO ] DietPi-Software | APT install python3, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[ OK ] DietPi-Software | APT install python3
[ OK ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/node-red
[ OK ] DietPi-Software | usermod -aG dialout,gpio,i2c,spi -d /mnt/dietpi_userdata/node-red -s /usr/sbin/nologin nodered
[ OK ] DietPi-Software | eval echo 'nodered ALL=NOPASSWD: ALL' > /etc/sudoers.d/nodered
[ OK ] DietPi-Software | chown -R nodered:nodered /mnt/dietpi_userdata/node-red
[ OK ] DietPi-Software | cd /mnt/dietpi_userdata/node-red
[ INFO ] DietPi-Software | sudo -u nodered npm i --no-audit node-red, please wait...
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
[FAILED] DietPi-Software | sudo -u nodered npm i --no-audit node-red
I found this in my folder /usr/lib/arm-linux-gnueabihf lrwxrwxrwx 1 root root 19 Apr 16 2019 libstdc++.so.6 -> libstdc++.so.6.0.25
Therefore I think I need the lib with version .26? But both are from the Dietpi system. The libs and also the installation script for node-red was called via dietpi-software!
I think my problem has another problem. By the last update probably the file libstdc++ has been shot and has now a length of 0 byte. I can’t do any updates because I always get the error: apt-get: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: file too short
Where can I download the file one by one and then replace it via FTP or USB stick to the original location, or is there another command that can fix this?
Thanks a lot
Ronald
Unfortunately no, I know that’s stupid! I do not have much on the system yet, but I would have to reinstall my RAID array. I’m not so fit there and need quite a bit of time for it?! But I guess it boils down to that?
Regards
Ronald
Hello,
I have imported the file via USB stick. Everything worked great. Then I was able to do a dietpi backup and after that I did the manual update to bullseye per instructions (DietPi - How to upgrade to "Bullseye" - DietPi blog). Everything worked great.
Thanks again, you are really the best!
Ronald