Raspberry PI needs the GLIBC_2.29 ?

Raspberry PI specific forum
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Raspberry PI needs the GLIBC_2.29 ?

Post by Joris »

Hi,

(I put my question here as I find more RPI topics here and ... (I don't understand that C- backend word/terminlogy)

My PureBasic-Raspberry PI installation job untill now.

How to run the PB-examples on the Raspberry PI ?

I extracted this download PureBasic 6.00 Beta 1 for Raspberry (Raspberry OS - arm32)on my Raspberry PI. In a new folder called : PureBasic
I ran these in the terminal :
sudo apt-get install build-essential gcc g++
sudo apt-get install libxxf86vm-dev libxine2-dev unixodbc-dev libsdl1.2-dev libsdl2-dev
sudo apt-get install libgtk2.0-dev libgtk-3-dev

And later on also, this one in the terminal :
sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libxine2-dev libxxf86vm-dev libwebkit2gtk-4.0-dev libssl-dev libqt5webkit5-dev qtmultimedia5-dev libqt5svg5-dev

I ran also these :
checkinstall.sh
launch.sh
register.sh

Tried to run the canvas exmaple by clicking on it. Nothing happens.

Trying this to get purebasic started :
Type "./purebasic" from inside the "compilers" folder, or doubleclick *Doesn't do anything
on the "purebasic" executable file in your file manager. *Doesn't do anything

Trying this to get it started :
pi@raspberrypi:~ $ export PUREBASIC_HOME=~/pi/purebasic
pi@raspberrypi:~ $ export PATH=$PUREBASIC_HOME/compilers:/home/pi/purebasic/compilers

And thereafter :
pi@raspberrypi:~ $ purebasic
the same message in the terminal :
purebasic: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by purebasic)

How can I fix this (quit a beginner) ?

Thanks
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
dibor
Enthusiast
Enthusiast
Posts: 125
Joined: Wed May 20, 2020 5:19 pm
Location: The 3rd planet in the Solar System
Contact:

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by dibor »

Mac Studio M1Max, PB 6.03Arm64 and x64.
Macbook Air M2, PB 6.03Arm64 and x64.
Windows 10, PB 6.03 x64 and x86.
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by Shardik »

I had the same problem. I was using the latest version of Raspbian which still uses GLIBC_2.28. But Fred explicitly states that Raspberry Pi OS is necessary (which uses GLIBC_2.29):
Fred wrote:- Brand new Raspberry version ! You need to install Raspberry OS to use it, which should run on any Raspberry PI (used a PI 2 for the build)
So I took a new micro SD card, installed Raspberry Pi OS on it (using the Raspberry Pi imager), booted my Raspberry Pi 400 from that card, installed PureBasic 6.00 Beta 1 and it worked like a charm (after installing several additional libraries like described above)!
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by freak »

The bugs forum is not for questions. I have created a new subforum for Raspberry PI questions and moved the topic.
quidquid Latine dictum sit altum videtur
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by User_Russian »

This error also appeared.
I think need to use GLIBC_2.28 for compatibility with previous versions of the OS. I checked the previous version of Raspberry Pi OS 2021-03-04 use library Glibc_2.28.
That is, PB (and applications compiled in it) work only in the current version OS Raspberry Pi OS 2021-10-30.

Here are the previous versions Raspberry Pi OS. https://downloads.raspberrypi.org/raspios_armhf/images/
It would be nice if PB would work on all of them.

Here Raspbian https://downloads.raspberrypi.org/raspbian/images/
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by Joris »

A bit strange that the version I had will be the problem as itb was not that lately installed.
A few months ago. Besides trying to fix the PB-problem, I also did a sudo apt-get full upgrade.
Yet no change. So I'm gonna get me a new SD card and install from scratch that latest os.
If all works, I'll be happily busy for a while.

Thanks all.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by User_Russian »

Сurrent version of the Raspios 2021-10-30 is very slowly working on boards with 512 MB of RAM. When starting the OS, 380 MB RAM is used, from 450 MB available.
Need to used the previous version 2020-08-20 (250 MB RAM is used, from 450 MB available) or previous, but the PB does not work on it.
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by Joris »

Got me a new SD card and installed that latest os (and did those other sudo's stated above).

It works great. :D
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Raspberry PI needs the GLIBC_2.29 ?

Post by User_Russian »

Joris wrote: Fri Dec 03, 2021 1:18 pm pi@raspberrypi:~ $ purebasic
the same message in the terminal :
purebasic: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by purebasic)
I was able to run PB.
The solution is very simple - replace the libm.so.6 file and copy the libm-2.31.so file to the folder /lib/arm-linux-gnueabihf/
The files libm.so.6 and libm-2.31.so I took from Raspios_armhf-2021-11-08.
This is a global library replacement and it is applicable to all programs and OS, but a little testing has shown that there is no error.
This is a temporary workaround. Hopefully in PB 6 Beta 2, this error will not appear.
Post Reply