WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Ncurses 64  (Read 4286 times)

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Ncurses 64
« on: January 17, 2018, 09:13:28 PM »
This is about ncurses for 64
I don't see libtinfo.so from ncurses.tcz(7.x)

Thanks.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: Ncurses 64
« Reply #1 on: January 18, 2018, 12:09:01 AM »
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.

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: Ncurses 64
« Reply #2 on: January 18, 2018, 07: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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: Ncurses 64
« Reply #3 on: January 19, 2018, 12:24:37 AM »
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

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: Ncurses 64
« Reply #4 on: January 19, 2018, 10: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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: Ncurses 64
« Reply #5 on: January 20, 2018, 02:45:10 AM »
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")?

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: Ncurses 64
« Reply #6 on: January 22, 2018, 07: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.
« Last Edit: January 22, 2018, 08:01:02 PM by nimday »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: Ncurses 64
« Reply #7 on: January 23, 2018, 01:21:39 AM »
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
« Last Edit: January 23, 2018, 08:06:53 AM by Juanito »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: Ncurses 64
« Reply #8 on: January 23, 2018, 01:46:36 AM »
if you didn't already do it, you will also need a symlink /lib64 -> /lib
« Last Edit: January 23, 2018, 02:33:07 AM by Juanito »

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: Ncurses 64
« Reply #9 on: January 24, 2018, 08:06:32 PM »
Thanks again, I have downloaded the bootstrap.
Will give a try.