LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2021, 09:14 PM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
-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.
 
Old 07-30-2021, 11:50 PM   #2
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
Isn't ncurses in /l ?

l/ncurses-6.2_20201219-x86_64-4.txz
 
Old 07-31-2021, 02:32 AM   #3
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.
 
Old 07-31-2021, 04:01 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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.
 
Old 07-31-2021, 05:09 AM   #5
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.
 
Old 07-31-2021, 05:37 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,855

Rep: Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523
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.
+--------------------------+
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Ncurses bug or ncurses program error. errigour Programming 2 01-24-2013 08:36 AM
how to print text in color by ncurses without opening a ncurses window Greatrebel Programming 0 12-20-2006 09:15 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration