Problem with FB on Geany in Linux Mint 20 [SOLVED]

New to FreeBASIC? Post your questions here.
Post Reply
Mynaardt
Posts: 8
Joined: May 07, 2020 1:04

Problem with FB on Geany in Linux Mint 20 [SOLVED]

Post by Mynaardt »

Hi there!

I recently got an almost new computer that I've put Linux Mint 20 on as the OS. Installed FB, and also did this:

Code: Select all

~ $ sudo apt-get install libc6-i386 lib32ncurses5-dev gcc-multilib g++-multilib
... because I had problems the first time I tried to get FB working.

But this time, I've got another problem, which I hope is a quick fix. When I try to compile FB through Geany, I get this errror message:
fbc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I did try to install libtinfo5 in the terminal, but that didn't help, got the same error message.

Is there a quick fix for this one?

Thanks in advance!
Last edited by Mynaardt on Aug 31, 2020 3:59, edited 1 time in total.
srvaldez
Posts: 3379
Joined: Sep 25, 2005 21:54

Re: Problem with FB on Geany in Linux Mint 20

Post by srvaldez »

did you succeed in installing libtinfo5 ?
if so, then a sudo ldconfig may solve your problem
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Problem with FB on Geany in Linux Mint 20

Post by badidea »

Mynaardt wrote:Is there a quick fix for this one?
"sudo apt-get instal libtinfo5" will probably fix it.
The problem is not related to Geany, just the freebasic compiler itself. Never versions of Debian, Ubuntu, Mint seem to require installing "libtinfo5" explicitly. The problem / question has been posted before (many times), see forum search on "libtinfo5".
Mynaardt
Posts: 8
Joined: May 07, 2020 1:04

Re: Problem with FB on Geany in Linux Mint 20

Post by Mynaardt »

Hi srvaldez and badidea.

Got the latest version of libtinfo5 installed, and sudo ldconfig didn't work either.

Will consult the other numerous messages...

Thanks for responding!
robert
Posts: 169
Joined: Aug 06, 2019 18:45

Re: Problem with FB on Geany in Linux Mint 20

Post by robert »

Mynaardt wrote:Hi srvaldez and badidea.

Got the latest version of libtinfo5 installed, and sudo ldconfig didn't work either.

Will consult the other numerous messages...

Thanks for responding!
Try

sudo apt-get install libncurses5-dev

You need all the following for relatively problem free programming

gcc
make
libncurses5-dev
libtinfo5 (if not already installed as dependency of ncurses)
libgpm-dev
libx11-dev
libxext-dev
libxpm-dev
libxrandr-dev
libxrender-dev
libgl1-mesa-dev
libffi-dev
Mynaardt
Posts: 8
Joined: May 07, 2020 1:04

Re: Problem with FB on Geany in Linux Mint 20

Post by Mynaardt »

Hi Robert!
robert wrote:
Mynaardt wrote:Hi srvaldez and badidea.

Got the latest version of libtinfo5 installed, and sudo ldconfig didn't work either.

Will consult the other numerous messages...

Thanks for responding!
Try

sudo apt-get install libncurses5-dev

... (trimming a bit)
That didn't work either, unfortunately.

On the other hand, I did find a solution here that worked a treat:

Code: Select all

sudo apt-get install libtinfo5:i386
Which probably (as in definitely) meant I didn't realize I installed the 32 bit version. Oh well, live and learn. At least it's working properly now...
.
Post Reply