LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   -current missing ncurses package in /a series (https://www.linuxquestions.org/questions/slackware-14/current-missing-ncurses-package-in-a-series-4175698528/)

igadoter 07-30-2021 09:14 PM

-current missing ncurses package in /a series
 
I posted here about my recent troubles with default installer.

One of problems was that I couldn't chroot to target directory. I think I found guilty.

Link
Code:

# cd lib64
# ln -sf libtinfo.so.6.2 libtinfo.so.6

is created during execution of doinst.sh script for ncurses package. But ncurses is missing in basic /a series. Due to missing link installer can't chroot to target directory. In order it is not possible to set password for root user, create new user.

Simplest solution is to add ncurses to /a series of packages.

MDKDIO 07-30-2021 11:50 PM

Isn't ncurses in /l ?

l/ncurses-6.2_20201219-x86_64-4.txz

igadoter 07-31-2021 02:32 AM

Well libtinfo.x is in aaaa_libraries- Actually is in both aaa_libraries* and ncurses*
Code:

$ cd /var/log/packages
$ grep libtinfo *
aaa_libraries-15.0-x86_64-3:lib64/libtinfo.so.6.2
ncurses-6.2_20201219-x86_64-4:lib64/libtinfo.so.6.2

But link is created only by doinst.sh of ncurses*
Code:

$ cd ../scripts
$ grep libtinfo *
ncurses-6.2_20201219-x86_64-4:( cd lib64 ; rm -rf libtinfo.so.6 )
ncurses-6.2_20201219-x86_64-4:( cd lib64 ; ln -sf libtinfo.so.6.2 libtinfo.so.6 )
ncurses-6.2_20201219-x86_64-4:( cd usr/lib64 ; rm -rf libtinfo.so )
ncurses-6.2_20201219-x86_64-4:( cd usr/lib64 ; ln -sf libtinfo.so.6 libtinfo.so )
ncurses-6.2_20201219-x86_64-4:( cd usr/lib64 ; rm -rf libtinfo.so.6 )
ncurses-6.2_20201219-x86_64-4:( cd usr/lib64 ; ln -sf ../../lib64/libtinfo.so.6 libtinfo.so.6 )

doinst.sh for aaa_libraries.* is just missing. Look inside package. It seems that there should be doinst.sh script for aaa_libraries*. At least containing this line
Code:

he
( cd lib64 ; rm -rf libtinfo.so.6 )
( cd lib64 ; ln -sf libtinfo.so.6.2 libtinfo.so.6 )

Without it chroot to /mnt fails. Due to bash in chroot jail can't find libtinfo.so.6

For me creating the link fixed the issue.

Alien Bob 07-31-2021 04:01 AM

The slackware-current installer contains both of them:
Code:

# ls -l lib64/libtinfo.so.6*
lrwxrwxrwx 1 root root    15 Jul 31 10:54 lib64/libtinfo.so.6 -> libtinfo.so.6.2*
-rwxr-xr-x 1 root root 184792 Feb 13 08:25 lib64/libtinfo.so.6.2*

Your problem must be originating elsewhere, or you are perhaps not using the real Slackware installer.

igadoter 07-31-2021 05:09 AM

Ok perhaps we are talking about two different things.
Code:

1) installation system on RAM disk
2) /mnt          #    <--- here is mounted target partition

So at some point of installation process one should have
Quote:

/mnt/bin
/mnt/boot
/mnt/dev
........
/mnt/tmp
/mnt/usr
/mnt/var
where say target /dev/sda1 is mounted on /mnt. And /mnt/proc /mnt/sys are binds to /proc /sys.
In next stage all packages from /a are installed with --ROOT=/mnt prefix. Final stage is
Code:

# chroot /mnt
which fails due to bash claiming missing libtinfo.so.6. Looking into /mnt/lib64 you see there is no link libtinfo.so.6 pointing to libtinfo.so.6.2 Manual fix is
Code:

# cd /mnt/lib64
# ln -sf libtinfo.so.6.2 libtinfo.so.6

Now chroot works
Code:

# chroot /mnt
#/

and one can continue with installation.

Petri Kaukasoina 07-31-2021 05:37 AM

The installer should run ldconfig which makes the link.
Code:

+--------------------------+
Thu Apr 22 16:56:28 UTC 2021
  setup: fix running ldconfig. Thanks to alienBOB and MoZes.
+--------------------------+
Tue Apr 20 18:46:38 UTC 2021
  setup: run ldconfig after the packages are installed.
  Thanks to average_user.
+--------------------------+



All times are GMT -5. The time now is 07:14 AM.