After building Berkeley DB3 and gcc, compile rpm program now. Get rpm source code from one of the following two sources:
If you downloaded rpm*.tar.gz file:
bash$ mkdir my_temp_build bash$ cd my_temp_build bash$ tar zxvf rpm*.tar.gz bash$ cd rpm-4.0.2 bash$ export LIBS='-L/usr/local/BerkeleyDB.3.1/lib' bash$ export CPPFLAGS='-I/usr/local/BerkeleyDB.3.1/include' bash$ ./configure bash$ make
If you downloaded rpm source code file follow the steps below. But you may need rpm2cpio program, which is packaged in rpm package. Get rpm package (may be old version like 3.0) from Unix packages .
bash$ mkdir my_temp_build bash$ cd my_temp_build bash$ rpm2cpio rpm-4.0.2-8.src.rpm | cpio -dimv bash$ tar zxvf rpm*.tar.gz bash$ cd rpm-4.0.2 bash$ export LIBS='-L/usr/local/BerkeleyDB.3.1/lib' bash$ export CPPFLAGS='-I/usr/local/BerkeleyDB.3.1/include' bash$ ./configure bash$ make
If you encounter any problem in compiling rpm program, you may have to do some minor corrections.
In case of Solaris 8 and rpm v4.0.2, I got these problems:
bash# ln -s /usr/local/BerkeleyDB.3.1.17/include /usr/include/db3 Or edit the file lib/db3.c and change #include <db3/db.h> to #include <db.h>
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |