Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: nimday on January 17, 2018, 06:13:28 PM

Title: Ncurses 64
Post by: nimday on January 17, 2018, 06:13:28 PM
This is about ncurses for 64
I don't see libtinfo.so from ncurses.tcz(7.x)

Thanks.
Title: Re: Ncurses 64
Post by: Juanito on January 17, 2018, 09:09:01 PM
If you're speaking about the ncurses extension in CorePure64 7.x, you can always add a libtinfo symlink to libncurses if you have an app that requires it.
Title: Re: Ncurses 64
Post by: nimday on January 18, 2018, 04:44:36 PM
If you're speaking about the ncurses extension in CorePure64 7.x, you can always add a libtinfo symlink to libncurses if you have an app that requires it.

Thanks, Freebasic compiler needs libtinfo.
Title: Re: Ncurses 64
Post by: Juanito on January 18, 2018, 09:24:37 PM
Look for the error message from freebasic and create the symlink based on what you see - something like:
Code: [Select]
$ cd /usr/local/lib
$ sudo ln -s libncurses.so.5.9 libtinfo.so
Title: Re: Ncurses 64
Post by: nimday on January 19, 2018, 07:27:58 PM
Look for the error message from freebasic and create the symlink based on what you see - something like:
Code: [Select]
$ cd /usr/local/lib
$ sudo ln -s libncurses.so.5.9 libtinfo.so

I don't know if this only from my machine. I wasn't able to link it.
 "ldconfig: can't read header from ... libpanel.so" and so on.


Below is the screenshot.
Title: Re: Ncurses 64
Post by: Juanito on January 19, 2018, 11:45:10 PM
from your screenshot, it looks like you copied freebasic to tinycore from another distro?

did you try linking libtinfo.so to libncursesw.so.5.9 (note the "w")?
Title: Re: Ncurses 64
Post by: nimday on January 22, 2018, 04:47:30 PM
from your screenshot, it looks like you copied freebasic to tinycore from another distro?

did you try linking libtinfo.so to libncursesw.so.5.9 (note the "w")?

It's the official binary/installer.
http://downloads.sourceforge.net/fbc/FreeBASIC-1.05.0-linux-x86_64.tar.xz?download

Same result with linbnursesw.Can you check this ncurses?
For example, the content of libpanel.so = INPUT(-lpanelw)

I wanted to compile Freebasic by myself, but freebasic binary is required.
Title: Re: Ncurses 64
Post by: Juanito on January 22, 2018, 10:21:39 PM
Can you check this ncurses?
For example, the content of libpanel.so = INPUT(-lpanelw)

This is correct - some applications still expect the linker to be able to find non-wide-character ncurses libraries and this fools such applications into linking with wide-character libraries by means of symlinks and linker scripts.

This being said, ncurses was upgraded from v5 to v6 in CorePure64 8.x and does not use the above fudge, so maybe you would be better off using that?

Edit: and btw, the source code is available here:

https://sourceforge.net/projects/fbc/files/Source%20Code/FreeBASIC-1.05.0-source-bootstrap.tar.xz/download
Title: Re: Ncurses 64
Post by: Juanito on January 22, 2018, 10:46:36 PM
if you didn't already do it, you will also need a symlink /lib64 -> /lib
Title: Re: Ncurses 64
Post by: nimday on January 24, 2018, 05:06:32 PM
Thanks again, I have downloaded the bootstrap.
Will give a try.