Odd Error While Installing Bzip2 in Chroot Environment
by archbtw from LinuxQuestions.org on (#52F1K)
Hey y'all. I'm building Bzip2 in Chapter 6 right now, and I'm getting an odd error on installation. Here's the output of "make PREFIX=/usr install".
Code:(lfs chroot) root:/sources/bzip2-1.0.8# make PREFIX=/usr install
if ( test ! -d /usr/bin ) ; then mkdir -p /usr/bin ; fi
if ( test ! -d /usr/lib ) ; then mkdir -p /usr/lib ; fi
if ( test ! -d /usr/share/man ) ; then mkdir -p /usr/share/man ; fi
if ( test ! -d /usr/share/man/man1 ) ; then mkdir -p /usr/share/man/man1 ; fi
if ( test ! -d /usr/share/doc/bzip2-1.0.8 ) ; then mkdir -p /usr/share/doc/bzip2-1.0.8; fi
if ( test ! -d /usr/include ) ; then mkdir -p /usr/include ; fi
cp -f bzip2 /usr/bin/bzip2
cp -f bzip2 /usr/bin/bunzip2
cp -f bzip2 /usr/bin/bzcat
cp -f bzip2recover /usr/bin/bzip2recover
chmod a+x /usr/bin/bzip2
chmod a+x /usr/bin/bunzip2
chmod a+x /usr/bin/bzcat
chmod a+x /usr/bin/bzip2recover
cp -f bzip2.1 /usr/share/man/man1
chmod a+r /usr/share/man/man1/bzip2.1
cp -f bzlib.h /usr/include
chmod a+r /usr/include/bzlib.h
cp -f libbz2.a /usr/lib
chmod a+r /usr/lib/libbz2.a
cp -f bzgrep /usr/bin/bzgrep
bzgrep /usr/bin/bzegrep
bzip2: I won't read compressed data from a terminal.
bzip2: For help, type: `bzip2 --help'.
make: *** [Makefile:94: install] Error 1I've looked online, and I'm still not sure what the line about reading compressed data is and what its significance is. What advice would y'all have here?
Specs (I'm using a VM running Manjaro, and have Arch as my host machine OS):
4 cores
12 GiB RAM
Drive 1 (for host OS): 20 GiB
Drive 2 (for LFS): 50 GiB
Drive 3 (swap partition): 16 GiB


Code:(lfs chroot) root:/sources/bzip2-1.0.8# make PREFIX=/usr install
if ( test ! -d /usr/bin ) ; then mkdir -p /usr/bin ; fi
if ( test ! -d /usr/lib ) ; then mkdir -p /usr/lib ; fi
if ( test ! -d /usr/share/man ) ; then mkdir -p /usr/share/man ; fi
if ( test ! -d /usr/share/man/man1 ) ; then mkdir -p /usr/share/man/man1 ; fi
if ( test ! -d /usr/share/doc/bzip2-1.0.8 ) ; then mkdir -p /usr/share/doc/bzip2-1.0.8; fi
if ( test ! -d /usr/include ) ; then mkdir -p /usr/include ; fi
cp -f bzip2 /usr/bin/bzip2
cp -f bzip2 /usr/bin/bunzip2
cp -f bzip2 /usr/bin/bzcat
cp -f bzip2recover /usr/bin/bzip2recover
chmod a+x /usr/bin/bzip2
chmod a+x /usr/bin/bunzip2
chmod a+x /usr/bin/bzcat
chmod a+x /usr/bin/bzip2recover
cp -f bzip2.1 /usr/share/man/man1
chmod a+r /usr/share/man/man1/bzip2.1
cp -f bzlib.h /usr/include
chmod a+r /usr/include/bzlib.h
cp -f libbz2.a /usr/lib
chmod a+r /usr/lib/libbz2.a
cp -f bzgrep /usr/bin/bzgrep
bzgrep /usr/bin/bzegrep
bzip2: I won't read compressed data from a terminal.
bzip2: For help, type: `bzip2 --help'.
make: *** [Makefile:94: install] Error 1I've looked online, and I'm still not sure what the line about reading compressed data is and what its significance is. What advice would y'all have here?
Specs (I'm using a VM running Manjaro, and have Arch as my host machine OS):
4 cores
12 GiB RAM
Drive 1 (for host OS): 20 GiB
Drive 2 (for LFS): 50 GiB
Drive 3 (swap partition): 16 GiB