[fpc-pascal] Re: Error: cannot find -lcurses
Greenblatt
greenblatt at inode.at
Mon Apr 25 16:36:14 CEST 2005
fpc-pascal-request at lists.freepascal.org wrote:
>Send fpc-pascal mailing list submissions to
> fpc-pascal at lists.freepascal.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>or, via email, send a message with subject or body 'help' to
> fpc-pascal-request at lists.freepascal.org
>
>You can reach the person managing the list at
> fpc-pascal-owner at lists.freepascal.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of fpc-pascal digest..."
>
>
>Today's Topics:
>
> 1. Error: cannot find -lcurses (Greenblatt)
> 2. Re: Error: cannot find -lcurses (John Coppens)
> 3. Re: Error: cannot find -lcurses (Marco van de Voort)
> 4. Re: fpMMap and FreeBSD (Marco van de Voort)
> 5. Re: Error: cannot find -lcurses (Florian Klaempfl)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sun, 24 Apr 2005 16:37:12 +0200
>From: Greenblatt <greenblatt at inode.at>
>Subject: [fpc-pascal] Error: cannot find -lcurses
>To: fpc-pascal at lists.freepascal.org
>Message-ID: <426BAF18.8020301 at inode.at>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Hi,
>
>I have a problem with FreePascal 1.0.10 under SuSE 9.1. If I want to
>compile source code, which makes use of the keyboard unit, I get the
>following error message:
>
> /usr/bin/ld: cannot find -lcurses
> Pong(46) Error: Error while linking
> Closing script ppas.sh
>
>Since I'm a beginner concerning Pascal and don't know the inner-working
>of the compiler, I ask you for help.
>
>Thanks in advance.
>Hans - Peter
>
>
>
>
>
>
>
>------------------------------
>
>Message: 2
>Date: Sun, 24 Apr 2005 15:14:39 -0300
>From: John Coppens <john at jcoppens.com>
>Subject: Re: [fpc-pascal] Error: cannot find -lcurses
>To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
>Message-ID: <20050424151439.633c5e0a.john at jcoppens.com>
>Content-Type: text/plain; charset=US-ASCII
>
>On Sun, 24 Apr 2005 16:37:12 +0200
>Greenblatt <greenblatt at inode.at> wrote:
>
>
>
>>Hi,
>>
>>I have a problem with FreePascal 1.0.10 under SuSE 9.1. If I want to
>>compile source code, which makes use of the keyboard unit, I get the
>>following error message:
>>
>> /usr/bin/ld: cannot find -lcurses
>> Pong(46) Error: Error while linking
>> Closing script ppas.sh
>>
>>Since I'm a beginner concerning Pascal and don't know the inner-working
>>of the compiler, I ask you for help.
>>
>>
>>
>Hallo Hans-Peter
>
>1) Do you have the ncurses library installed? (This is quite probable,
> it comes with most distributions)
> Try: locate libcurses
> or check in /usr/lib, /usr/local/lib for that lib.
> if no luck, install it.
>
>2) It's also possible you don't have the library in the search path,
>
>John
>
>
>
>------------------------------
>
>Message: 3
>Date: Sun, 24 Apr 2005 20:31:49 +0200 (CEST)
>From: marcov at stack.nl (Marco van de Voort)
>Subject: Re: [fpc-pascal] Error: cannot find -lcurses
>To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
>Message-ID: <20050424183149.BC3161CEAA at turtle.stack.nl>
>Content-Type: text/plain; charset=US-ASCII
>
>
>
>>Greenblatt <greenblatt at inode.at> wrote:
>>
>>
>>
>>>Hi,
>>>
>>>I have a problem with FreePascal 1.0.10 under SuSE 9.1. If I want to
>>>compile source code, which makes use of the keyboard unit, I get the
>>>following error message:
>>>
>>> /usr/bin/ld: cannot find -lcurses
>>> Pong(46) Error: Error while linking
>>> Closing script ppas.sh
>>>
>>>Since I'm a beginner concerning Pascal and don't know the inner-working
>>>of the compiler, I ask you for help.
>>>
>>>
>>>
>>Hallo Hans-Peter
>>
>>1) Do you have the ncurses library installed? (This is quite probable,
>> it comes with most distributions)
>> Try: locate libcurses
>> or check in /usr/lib, /usr/local/lib for that lib.
>> if no luck, install it.
>>
>>2) It's also possible you don't have the library in the search path,
>>
>>
>
> 3) there is no symlink from libcurses.so to libncurses.so
>
>
>
>
>------------------------------
>
>Message: 4
>Date: Sun, 24 Apr 2005 21:14:16 +0200 (CEST)
>From: marcov at stack.nl (Marco van de Voort)
>Subject: Re: [fpc-pascal] fpMMap and FreeBSD
>To: Xromov Kirill <kirill at maria.overta.ru>, FPC-Pascal users
> discussions <fpc-pascal at lists.freepascal.org>
>Message-ID: <20050424191416.E30981CEAA at turtle.stack.nl>
>Content-Type: text/plain; charset=US-ASCII
>
>
>
>> I try to use fpMMap function to access file data under FreeBSD 5.3-RELEASE
>> with fpc-1.9.8. But code from examle
>> (http://www.freepascal.org/docs-html/rtl/baseunix/fpmmap.html) not working.
>>
>>
>
>Fixed in CVS.
>
>Turned out mmap called via __syscall needs an extra parameter that must be 0 (?),
>due to stack layout the filedescriptor got passed in this space, which is ok for
>memory mapping of memory, but not for this example.
>
>There is not much one can easily do in 1.9.8 to get it to work easily, since
>the 9 param do_syscall call doesn't exist either.
>
>If you can't/won't use CVS, I could see if I can make a quick mock unit with
>a working mmap in it for 1.9.8.
>
>
>
>------------------------------
>
>Message: 5
>Date: Sun, 24 Apr 2005 23:22:21 +0200
>From: Florian Klaempfl <F.Klaempfl at gmx.de>
>Subject: Re: [fpc-pascal] Error: cannot find -lcurses
>To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
>Message-ID: <426C0E0D.4070303 at gmx.de>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Marco van de Voort wrote:
>
>
>>>Greenblatt <greenblatt at inode.at> wrote:
>>>
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>I have a problem with FreePascal 1.0.10 under SuSE 9.1. If I want to
>>>>compile source code, which makes use of the keyboard unit, I get the
>>>>following error message:
>>>>
>>>> /usr/bin/ld: cannot find -lcurses
>>>> Pong(46) Error: Error while linking
>>>> Closing script ppas.sh
>>>>
>>>>Since I'm a beginner concerning Pascal and don't know the inner-working
>>>>of the compiler, I ask you for help.
>>>>
>>>>
>>>>
>>>Hallo Hans-Peter
>>>
>>>1) Do you have the ncurses library installed? (This is quite probable,
>>> it comes with most distributions)
>>> Try: locate libcurses
>>> or check in /usr/lib, /usr/local/lib for that lib.
>>> if no luck, install it.
>>>
>>>2) It's also possible you don't have the library in the search path,
>>>
>>>
>> 3) there is no symlink from libcurses.so to libncurses.so
>>
>>
>
>4) there is no ncurses development library installed.
>
>
>
>
>------------------------------
>
>_______________________________________________
>fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
>End of fpc-pascal Digest, Vol 8, Issue 23
>*****************************************
>
>
>
Hi,
problem solved. On linuxquestions.org I found this command
ln -s libncurses.a /usr/lib/libcurses.a
and it worked. Thanks for advice.
Hans - Peter
More information about the fpc-pascal
mailing list