LinuxQuestions.org
Review your favorite Linux distribution.
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 02-13-2021, 12:15 PM   #1
slackwhere
LQ Newbie
 
Registered: Jul 2018
Distribution: c'mon.... Slackware!
Posts: 25

Rep: Reputation: Disabled
slackware64-current can't locate libzstd.so.1 during boot


Just installed slackware64-current and getting these messages during boot:

--------------------------------------------------------------------------------
Sat Feb 13 12:28:34 2021: mount: proc mounted on /proc.
Sat Feb 13 12:28:34 2021: Creating static nodes in /dev.
Sat Feb 13 12:28:34 2021: kmod: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory
Sat Feb 13 12:28:34 2021: grep: /run/static-nodes: No such file or directory

Sat Feb 13 12:28:34 2021: grep: /run/static-nodes: No such file or directory
Sat Feb 13 12:28:34 2021: Starting udevd: /sbin/udevd --daemon
Sat Feb 13 12:28:34 2021: /sbin/udevd: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory
Sat Feb 13 12:28:34 2021: Triggering udev events: /sbin/udevadm trigger --action=add
Sat Feb 13 12:28:34 2021: /sbin/udevadm: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory
Sat Feb 13 12:28:34 2021: /sbin/udevadm: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory
Sat Feb 13 12:28:34 2021: /sbin/udevadm: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory

Sat Feb 13 12:28:34 2021: Initializing LVM (Logical Volume Manager):
Sat Feb 13 12:28:34 2021: Found volume group "vg01" using metadata type lvm2
Sat Feb 13 12:28:34 2021: Found volume group "vg00" using metadata type lvm2
Sat Feb 13 12:28:34 2021: 0 logical volume(s) in volume group "vg01" now active
Sat Feb 13 12:28:34 2021: 4 logical volume(s) in volume group "vg00" now active
Sat Feb 13 12:28:34 2021: Setting the system clock rate: /sbin/adjtimex --tick 10000 --frequency 0
Sat Feb 13 12:28:34 2021: Setting system time from the hardware clock (UTC): Sat Feb 13 17:28:34 UTC 2021
Sat Feb 13 12:28:34 2021: Testing root filesystem status: read-only filesystem
Sat Feb 13 12:28:34 2021: Checking root filesystem:
Sat Feb 13 12:28:34 2021: fsck from util-linux 2.36.2
Sat Feb 13 12:28:34 2021: /sbin/fsck.xfs: XFS file system.
Sat Feb 13 12:28:34 2021: Remounting root device with read-write enabled.
Sat Feb 13 12:28:34 2021: mount: /dev/mapper/vg00-root mounted on /.
Sat Feb 13 12:28:34 2021: Updating module dependency list for 5.10.15: /sbin/depmod --quick
Sat Feb 13 12:28:34 2021: /sbin/depmod: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory
Sat Feb 13 12:28:34 2021: Configuring kernel parameters: /sbin/sysctl -e --system
Sat Feb 13 12:28:34 2021: Checking non-root filesystems:
Sat Feb 13 12:28:34 2021: fsck from util-linux 2.36.2
Sat Feb 13 12:28:34 2021: /dev/sda5: clean, 909/131072 files, 31580/524288 blocks
Sat Feb 13 12:28:34 2021: /sbin/fsck.xfs: XFS file system.
Sat Feb 13 12:28:34 2021: /sbin/fsck.xfs: XFS file system.
Sat Feb 13 12:28:34 2021: /sbin/fsck.xfs: XFS file system.
--------------------------------------------------------------------------------

The file is installed.

root@darkstar:/usr/lib64# ls -l /usr/lib64/libzstd*
lrwxrwxrwx 1 root root 16 Nov 21 00:09 /usr/lib64/libzstd.so -> libzstd.so.1.4.8*
lrwxrwxrwx 1 root root 16 Nov 21 00:09 /usr/lib64/libzstd.so.1 -> libzstd.so.1.4.8*
-rwxr-xr-x 1 root root 713344 Jan 20 16:49 /usr/lib64/libzstd.so.1.4.8*


I presume this is happening because /usr is not mounted at this stage in the boot. I believe I could copy the library to /lib64 but I'm wondering if anyone else is seeing this or if there is a cleaner solution.

Thanks,
Wayne
 
Old 02-13-2021, 12:33 PM   #2
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 620

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
/usr on separate partition is not recommended!
 
Old 02-13-2021, 12:37 PM   #3
slackwhere
LQ Newbie
 
Registered: Jul 2018
Distribution: c'mon.... Slackware!
Posts: 25

Original Poster
Rep: Reputation: Disabled
That's news to me. I've always built Slackware systems, up through 14.2, with a separate /usr partition and had not any problems. This generally holds true for other distributions as well.
 
Old 02-14-2021, 07:10 PM   #4
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Hi slackwhere,

I'm also a separate /usr partition user and the last time this happened was for libsigsegv back in Dec. 28 2018.

Quote:
l/libsigsegv-2.12-x86_64-3.txz: Rebuilt.
Moved shared library into /lib{,64} to avoid problems when /usr is on a
separate partition. Thanks to TommyC7.
But please note: that has never been a recommended configuration (it was
always a bad idea prone to corner-case bugs), and with basically everyone
else moving everything into /usr, no upstream is developing with this
scenario in mind these days. Some of the problems caused by separate /usr
are simply not possible to fix in a straightforward fashion. Consider it a
completely unsupported configuration choice. While it's not my style to
make the installer refuse to allow it, I won't be bending over backwards
to try to fix bugs related to this in the future. If I recall properly,
the original rationale was to make it possible for /usr to reside on a
shared network partition, which might have made sense back when 40MB was
a typical hard drive size. I can think of no good rationale now (and no,
I don't think making /usr read-only helps security in any tangible way).
I sent a patch to "fix" (not sure if we can say it was really broken to begin with) this and it was accepted, but as the message from Mr. Volkerding points out, he won't be bending over backwards to fix bugs related to this in the future.

I somewhat recently provided the patches and the newly rebuilt zstd package in the sticky thread for what people want to see in -current (revision 1, not the second revision we have during the date of this post) with the libraries and binaries under / instead of /usr.

I've left the documentation under their respective /usr directories.

Although I submitted them on LQ.org and via e-mail to Mr. Volkerding, they haven't been accepted and I don't know if they ever will be.

If you still desire them, I provide the package (and a sha256 sum for it) along with the patch to the SlackBuild if you want to build it yourself, here:

http://slackware.uk/~tommyc/zstd/
 
Old 02-15-2021, 11:04 AM   #5
slackwhere
LQ Newbie
 
Registered: Jul 2018
Distribution: c'mon.... Slackware!
Posts: 25

Original Poster
Rep: Reputation: Disabled
Tommy, thank you for the info, the quote and the link. I'll check it out.

I suppose I'll need to adjust how I build my Slackware systems from now on. I understand leaving the flexibility in the installer but this definitely merits a warning or note on the partition selection during install that separating /root from /usr is not supported.

Thanks again.
Wayne
 
Old 02-17-2021, 06:11 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by slackwhere View Post
this definitely merits a warning or note on the partition selection during install that separating /root from /usr is not supported.
I don't foresee a warning in the installer happening. Pat has always left the installer pretty basic and expects that you know what you're doing.
 
1 members found this post helpful.
Old 02-18-2021, 04:40 AM   #7
joghi
Member
 
Registered: Jun 2011
Distribution: Slackware64 15.0 Slackware 14.2 Slackware64 14.2
Posts: 33

Rep: Reputation: Disabled
Hm,

instead of a warning in the installer there is this entry in Tuesday's ChangeLog:

Quote:
Tue Feb 16 20:57:36 UTC 2021
a/aaa_libraries-15.0-x86_64-3.txz: Rebuilt.
Moved libzstd to /lib{,64}. Thanks to slackwhere and TommyC7.
 
Old 02-18-2021, 06:22 PM   #8
slackwhere
LQ Newbie
 
Registered: Jul 2018
Distribution: c'mon.... Slackware!
Posts: 25

Original Poster
Rep: Reputation: Disabled
Coolio! Thank you for posting that. I neglect to check that as often as I should.
 
  


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
Brightness function keys not working on Slackware64 & Slackware64 current Andersen Slackware 7 01-15-2018 04:27 AM
[SOLVED] ConsoleKit deamon startup causes Slackware64-current to hang during boot bogzab Slackware 3 12-26-2015 08:45 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM
Can't locate locate hindenbergbaby Linux - Newbie 3 10-22-2003 04:13 PM

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

All times are GMT -5. The time now is 06:53 PM.

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