LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't Use Rpm No More (https://www.linuxquestions.org/questions/linux-software-2/cant-use-rpm-no-more-165171/)

ababkin 04-01-2004 08:32 PM

Can't Use Rpm No More
 
Hi

I am relatively new to linux
I installed RH9 and wanted to upgrade and play around with new 2.6.4 kernel.
But first i decided to upgrade RPM to version 4.1, and downloaded not an rpm package but the source.
After I compiled and installed it, (./configure; make; make install) i cannot use RPM no more as it complains about db3 and db4, for example:
error: cannot open Packages index using db3 - Function not implemented (38)

What is a sure way to make RPM work again? I tried to reinstall RPM packages from distro but that did not work

I tried to find answer on google and forums but no luck thus far

Also I read somwhere that its better to install packages and apps, compiling them on my machine rather than using rpm packages. Is that true? and why.

Please help
I dont want to reinstall the whole linux again

Thanks
Alex

PS:
the RPM 4.1 does not compile for some reason
here are the messages it gives right before terminating build:

legacy.c:12:18: gelf.h: No such file or directory
legacy.c: In function `open_dso':
legacy.c:75: `Elf' undeclared (first use in this function)
legacy.c:75: (Each undeclared identifier is reported only once
legacy.c:75: for each function it appears in.)
legacy.c:75: `elf' undeclared (first use in this function)
legacy.c:76: `Elf_Scn' undeclared (first use in this function)
legacy.c:76: `scn' undeclared (first use in this function)
legacy.c:77: `Elf_Data' undeclared (first use in this function)
legacy.c:77: `data' undeclared (first use in this function)
legacy.c:78: `GElf_Ehdr' undeclared (first use in this function)
legacy.c:78: parse error before "ehdr"
legacy.c:79: `GElf_Shdr' undeclared (first use in this function)
legacy.c:80: `GElf_Dyn' undeclared (first use in this function)
legacy.c:83: warning: implicit declaration of function `elf_version'
legacy.c:83: `EV_CURRENT' undeclared (first use in this function)
legacy.c:85: warning: implicit declaration of function `elf_begin'
legacy.c:85: `ELF_C_READ' undeclared (first use in this function)
legacy.c:86: warning: implicit declaration of function `elf_kind'
legacy.c:87: `ELF_K_ELF' undeclared (first use in this function)
legacy.c:87: warning: implicit declaration of function `gelf_getehdr'
legacy.c:87: `ehdr' undeclared (first use in this function)
legacy.c:88: warning: comparison between pointer and integer
legacy.c:88: `ET_DYN' undeclared (first use in this function)
legacy.c:88: `ET_EXEC' undeclared (first use in this function)
legacy.c:93: warning: implicit declaration of function `elf_nextscn'
legacy.c:94: warning: implicit declaration of function `gelf_getshdr'
legacy.c:94: `shdr' undeclared (first use in this function)
legacy.c:95: `SHT_DYNAMIC' undeclared (first use in this function)
legacy.c:97: warning: implicit declaration of function `elf_getdata'
legacy.c:102: warning: implicit declaration of function `gelf_getdyn'
legacy.c:102: `dyn' undeclared (first use in this function)
legacy.c:142: warning: implicit declaration of function `elf_end'
make[3]: *** [legacy.lo] Error 1
make[3]: Leaving directory `/home/ababkin/archive/rpm-4.1/rpmdb'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ababkin/archive/rpm-4.1/rpmdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ababkin/archive/rpm-4.1'
make: *** [all] Error 2


Can anyone tell me what is the problem here?

Pwnz3r 04-01-2004 08:44 PM

Do you have the sources for your current kernel and a sym link to them called /usr/linux? It seems as if that's the problem.

ababkin 04-01-2004 09:21 PM

so i actually have to have the source for my current kernel in order to compile RPM?

i have the kernel source at usr/src

how exactly should i make a soft link ?

Thanks
Alex

ababkin 04-01-2004 10:08 PM

nothing


All times are GMT -5. The time now is 12:11 AM.