Mint 18.3 and PB 5.72 +

Post bugreports for the Linux version here
jogo
New User
New User
Posts: 3
Joined: Wed Nov 18, 2020 6:10 pm
Location: Mecklenburg Germany

Mint 18.3 and PB 5.72 +

Post by jogo »

Hi,

I work with Mint 18.3 (ubuntu 16.04)
from PB 5.72 (incl. 5.73b4) on I get this message when I want to start the IDE in the terminal:

jogo@jogo-ThinkPad-T61 ~/purebasic/compilers $ ./purebasic
./purebasic: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by ./purebasic)


I replaced the old 'libz.so.1.2.8' with the current 'libz.so.1.2.11'.
The IDE worked then.

Now I get this message when using the function 'UsePNGImageEncoder()':

/home/jogo/purebasic/purelibraries/linux/libraries/libpbpng.a(pngrutil.o): In Funktion `png_inflate_claim':
pngrutil.c:(.text+0x343): Nicht definierter Verweis auf `inflateValidate'
collect2: error: ld returned 1 exit status


With Mint 19.3 (ubuntu 18.04) the IDE and also 'UsePNGImageEncoder()' works.

Greeting Jörg
Greeting Jörg
jogo
New User
New User
Posts: 3
Joined: Wed Nov 18, 2020 6:10 pm
Location: Mecklenburg Germany

Re: Mint 18.3 and PB 5.72 +

Post by jogo »

in the directory ~/purebasic/purelibraries/linux/libraries/ I renamed the file zlib.a to libz.a
After that "UsePNGImageEncoder()" worked.
But why is the name of the lib the wrong way round?

Greeting Jörg
Greeting Jörg
User avatar
useful
Enthusiast
Enthusiast
Posts: 262
Joined: Fri Jul 19, 2013 7:36 am
Location: Novosibirsk

Re: Mint 18.3 and PB 5.72 +

Post by useful »

jogo wrote: I replaced the old 'libz.so.1.2.8' with the current 'libz.so.1.2.11'.
Please. Can we have a little more detail? How to update zlib correctly?
jogo
New User
New User
Posts: 3
Joined: Wed Nov 18, 2020 6:10 pm
Location: Mecklenburg Germany

Re: Mint 18.3 and PB 5.72 +

Post by jogo »

hi,
download zlib:
http://archive.ubuntu.com/ubuntu/pool/m ... _amd64.deb

create a script 'purebasic':

Code: Select all

    #!/bin/sh
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/USER-NAME/zlib/lib/x86_64-linux-gnu ~/purebasic/compilers/purebasic_new
1. copy the directory 'zlib' to /home/USER-NAME/
2. /home/USER-NAME/purebasic/compilers/purebasic -> rename to 'purebasic_new'.
3. copy the script 'purebasic' to /home/USER-NAME/purebasic/compilers/
4. change the USER-NAME there.

After that you can start your IDE as usual.

This solution does not change the global 'libz.so.1.2.8' in the system, but the PureBasic IDE uses the new 'libz.so.1.2.11' in the /home/USER-NAME/zlib/ directory at runtime.

It worked for me.
Mint 18.3 // PureBasic 5.73

Good luck :-)
Greeting Jörg
Post Reply