On 4/7/19 4:00 PM, Edwin Helbert Aponte Angarita wrote:
Hi everyone,
I found this error in
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/zlib.html
The last command should not be
ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so
but instead
ln -sfv ../../lib/$(readlink /lib/libz.so.*) /usr/lib/libz.so
Because the first command generates the wrong link (because the readlink
command obviously produces nothing)
/usr/lib/libz.so -> ../../lib
I was getting the following error:
/usr/lib/../lib/libz.so: file not recognized: Is a directory
The book is correct.
mv -v /usr/lib/libz.so.* /lib
moves /lib/libz.so.1 and /lib/libz.so.1.2.11, but not /usr/lib/libz.so.
ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so
reads the old link (libz.so.1.2.11) and recreates the link as
../../lib/libz.so.1.2.11
It is a little tricky, but it works.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style