cannott run on lubuntu 18.04 64bits curses

New to FreeBASIC? Post your questions here.
Post Reply
ptitjoz
Posts: 32
Joined: Jun 24, 2017 8:10
Location: France, centre
Contact:

cannott run on lubuntu 18.04 64bits curses

Post by ptitjoz »

Hello
i installed fbc

Code: Select all

fbc --version
FreeBASIC Compiler - Version 1.05.0 (01-31-2016), built for linux-x86_64 (64bit)
Copyright (C) 2004-2016 The FreeBASIC development team.
when I try to compile a sample hello.bas
print "hello.bas" i have this message (french) :

Code: Select all

fbc hello.bas
ld : ne peut trouver -lncurses
do yo have an idea ?

Regards
lizard
Posts: 440
Joined: Oct 17, 2017 11:35
Location: Germany

Re: cannott run on lubuntu 18.04 64bits curses

Post by lizard »

ptitjoz wrote:do yo have an idea ?
Whenever a lib is missing go to terminal and do

Code: Select all

sudo apt-cache search libncurses
or similar.

This shows a list of related packages. Mostly one with the ending "dev" is the right.

Maybe "libncurses5-dev" is the right in this case.

then try

Code: Select all

sudo apt-get install libncurses5-dev
if it not works uninstall and try another package.
Last edited by lizard on May 05, 2018 15:42, edited 3 times in total.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: cannott run on lubuntu 18.04 64bits curses

Post by MrSwiss »

You can find all required answers, in the documentation:
CompilerInstalling
CompilerRequirements
ptitjoz
Posts: 32
Joined: Jun 24, 2017 8:10
Location: France, centre
Contact:

Re: cannott run on lubuntu 18.04 64bits curses

Post by ptitjoz »

lizard wrote:
ptitjoz wrote:do yo have an idea ?
Whenever a lib is missing go to terminal and do

Code: Select all

sudo apt-cache search libncurses
or similar.

This shows a list of related packages. Mostly one with the ending "dev" is the right.

Maybe "libncurses5-dev" is the right in this case.

then try

Code: Select all

sudo apt-get install libncurses5-dev
if it not works uninstall and try another package.
Thank you. I have installed libncurses5-dev only an now FPC works !
Regards
MrSwiss wrote:You can find all required answers, in the documentation:
CompilerInstalling
CompilerRequirements
thanks you for the links !
Regards
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: cannott run on lubuntu 18.04 64bits curses

Post by D.J.Peters »

ptitjoz wrote:I have installed libncurses5-dev only an now FPC works !
Do you tried the Screen or Screenres command also ?
If it fails you need some more dev packages.

libx11, libxext, libxpm-dev, libxrandr, libxrender

note it must be the libxxx-dev packages and the right for your OS 32 vs 64-bit.

Joshy
lizard
Posts: 440
Joined: Oct 17, 2017 11:35
Location: Germany

Re: cannott run on lubuntu 18.04 64bits curses

Post by lizard »

You can try the installation srcipt from here

viewtopic.php?f=5&t=26349&p=246714#p246714

Then all dependencies are installed automatically, including libncurses5-dev.
marcov
Posts: 3462
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: cannott run on lubuntu 18.04 64bits curses

Post by marcov »

ptitjoz wrote:
Thank you. I have installed libncurses5-dev only an now FPC works !
(Oh, dear, FPC is a whole different forum)
ptitjoz
Posts: 32
Joined: Jun 24, 2017 8:10
Location: France, centre
Contact:

Re: cannott run on lubuntu 18.04 64bits curses

Post by ptitjoz »

sorry i put fpc in place of fbc
I like too FPC and I try FBC
Regards
Post Reply