LFS Hint: Compiling RPM

Ian Chilton mailinglist at ichilton.co.uk
Wed Nov 1 10:27:11 PST 2000


Hello,

TITLE: Compiling RPM on LFS
LFS Version: any
AUTHOR: Ian Chilton <ian at ichilton.co.uk>

SUMMARY: I am not an RPM expert, and have hardly used RedHat, but I needed to unpack some SRPM's, so got RPM working...here's how I did it..

HINT:

Required Files:

ftp://ftp.info-zip.org/pub/infozip/zlib/zlib-1.1.3.tar.gz
http://www.sleepycat.com/update/3.1.17/db-3.1.17.tar.gz
ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/rpm-3.0.6.tar.gz


Step 1:

Check if you have: /usr/lib/libz.a
If not, download and unpack: ftp://sourceware.cygnus.com/pub/bzip2/v100/bzip2-1.0.1.tar.gz
Then copy libz.a to /usr/lib


Step 2 - Install zlib:
tar zxvf zlib-1.1.3.tar.gz
cd  zlib-1.1.3
../configure --shared
make
make install
 

Step 3 - Install Db:
tar zxvf db-3.1.17.tar.gz
cd db-3.1.17/build_unix
.../dist/configure --prefix=/usr
make
make install


Step 4 - Install RPM:
tar zxvf rpm-3.0.6.tar.gz
../configure --prefix=/usr
make
make install




Bye for Now,

Ian


                     \|||/ 
                     (o o)
 /----------------ooO-(_)-Ooo----------------\
 |  Ian Chilton                              |
 |  E-Mail : ian at ichilton.co.uk              |
 \-------------------------------------------/



-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list