PrintLogo

Base: bzip2-1.0.2




Source code is available here.

Run these commands:

cd /sources/  &&
rm -rf bzip2-1.0.2 &&
tar -xjf bzip2-1.0.2.tar.bz2 &&
cd bzip2-1.0.2 &&
make -f Makefile-libbz2_so &&
make &&
make install &&
cp bzip2-shared /bin/bzip2 &&
cp -a libbz2.so* /lib &&
rm /usr/bin/{bunzip2,bzcat,bzip2} &&
mv /usr/bin/{bzip2recover,bzless,bzmore} /bin 

The output should look something like this:

gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c blocksort.c
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c huffman.c
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c crctable.c
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c randtable.c
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c compress.c
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c decompress.c
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -c bzlib.c
gcc -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
gcc -fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -D_FILE_OFFSET_BITS=64 -o bzip2-shared bzip2.c libbz2.so.1.0.2
bzip2.c: In function `uncompressStream':
.
.
.
chmod a+r /usr/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
ln /usr/bin/bzgrep /usr/bin/bzegrep
ln /usr/bin/bzgrep /usr/bin/bzfgrep
chmod a+x /usr/bin/bzgrep
cp -f bzmore /usr/bin/bzmore
ln /usr/bin/bzmore /usr/bin/bzless
chmod a+x /usr/bin/bzmore
cp -f bzdiff /usr/bin/bzdiff
ln /usr/bin/bzdiff /usr/bin/bzcmp





This article comes from NoNIC:
http://nonic.org/

The URL for this story is:
http://nonic.org/art32.html



Copyright 2006-2008 NoNIC.org. Read our Terms of Use.