how can i install rpm-4.4.6 on lfs system?
i have lfs 6.2 system and now i want to install rpm-4.4.6 but i get this error :
Code:
r/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes |
RPM produces a Berkley Database. Did you also have db installed? Check if you have libdb-4.4.so and libdb_cxx-4.4.so. The error message says something about rpmgen failed. You should have rpmgen installed as part of your glibc installation. I use SuSE, so package names like db-devel and glibc-devel probably would have little meaning for you, as you have been installing from source and should have the headers already.
Read through the README, INSTALL, the config.log and "./configure --help" very carefully because you might need to indicate where the source files are for some of the other packages you installed. |
i could solve that error, but i don't have glibc-devel and db-devel.
now i have this problem in configure: .... checking for munmap... yes checking for shmget... yes checking "rpcgen -C" build of db_server.h... no checking "rpcgen" build of db_server.h... no configure: error: Unable to build RPC support: rpcgen failed. |
Hi,
You don't mention it, so this could be 'old news', but there is a RPM LFS Hint that deals with installing RPM on a LFS box (All prerequisites and dependencies are also mentioned). Hope this helps. |
I do that ,but i get the following error for Neon configure.
.... checking expat.h presence... no checking for expat.h... no checking for xml2-config... no configure: error: no XML parser was found: expat or libxml 2.x required I do config with "./configure --prefix=/usr --enable-share --whitout-libxml2" but i get the same error. now, what can i do? |
I searched for this error, and once found a response that i should
ensure that expat.h is in my $path, which it is. I install expat-2.0.0 ,then install neon. but about rpm configure i get the following error again .... checking "rpcgen -C" build of db_server.h... no checking "rpcgen" build of db_server.h... no configure: error: Unable to build RPC support: rpcgen failed. make: *** No rule to make target `listobjs'. Stop. configure: error: /bin/sh './configure' failed for db3 |
Hi,
Looks like xml2 isn't (correctly) installed. Its one of the prerequisites (BLFS libxml2). You do need to check if dependencies and prerequisites are met, otherwise all sorts of things can (and will) go wrong....... Hope this helps. |
I do that and then config rpm-4.4.6 .
i get the following error . .... checking for munlock... yes checking for mmap... yes checking for munmap... yes checking for shmget... yes checking "rpcgen -C" build of db_server.h... no checking "rpcgen" build of db_server.h... no configure: error: Unable to build RPC support: rpcgen failed. now, what should i do? |
Hi,
db_server.h is part of the Berkeley DB-4.4.20 package (which is one of the rpm prerequisites). Did you install this package? If not: Like I stated before, you need to check and satisfy _ALL_ dependencies and prerequisites! |
yes ,i install Berkeley DB-4.4.20 package for LFS.
i install all packages in lfs-6.2 ebook. |
Hi,
What does the following command show you: which rpcgen? It should come back with: /usr/bin/rpcgen (and maybe some other lines, but this is the important one). |
command
$find / -name rpcgen shows me /tools/bin/rpcgen /usr/bin/rpcgen |
Hi,
That's great, but that wasn't my question. What about which rpcgen ............ |
this command dosen't work in lfs system.I get following error for it.
root:/# which rpcgen bash: which: command not found but in host answer is: [root@localhost ~]# which rpcgen /usr/bin/rpcgen |
i solve the problem by:
chmod u+x ./configure sed -i 's@\(RPCGEN="rpcgen \)\-C"@\1\-Y /usr/bin \-C"@g' ./configure but now i have following error in make : ..... /sources/rpm-4.4.6/db3/gen_db_server.c:1186: undefined reference to `__txn_discard_proc_rpmdb' gen_db_server.o: In function `__db_txn_prepare_4004_svc': /sources/rpm-4.4.6/db3/gen_db_server.c:1201: undefined reference to `__txn_prepare_proc_rpmdb' collect2: ld returned 1 exit status make[2]: *** [berkeley_db_svc] Error 1 make[2]: Leaving directory `/sources/rpm-4.4.6/db3' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/sources/rpm-4.4.6' make: *** [all] Error 2 |
All times are GMT -5. The time now is 03:21 PM. |