[Fwd: Re: [fedora-arm] Request info: yum arm problem]
by Lorenzo Giardina
Have you any idea?
Thanks in advance
--------------------------------------------------------------
Hi,
I'm try to build yum from source.
Once I've compiled "yum", I've oteined the same results:
sh-3.2# yum
rpmdb: mmap: Invalid argument
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 82, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 206, in getOptionsConfig
errorlevel=opts.errorlevel)
File "__init__.py", line 132, in doConfigSetup
File "config.py", line 598, in readMainConfig
File "config.py", line 661, in _getsysver
TypeError: rpmdb open failed
I'm suspecting missing some file/program/service....but what??
Thanks
Lorenzo
> On Fri, May 30, 2008 at 07:18:23PM +0200, Lorenzo Giardina wrote:
>
>> Hi,
>
> Hi,
>
>
>> I'm newbie in arm linux! :(
>> I'm try to use fedora arm FS.
>> I've a problem on YUM, in particular on rpm; when I invoke rpm or yum
>> I'm
>> obtain:
>>
>> rpmdb: mmap: Invalid argument
>> error: db4 error(22) from dbenv->open: Invalid argument
>> error: cannot open Packages index using db3 - Invalid argument (22)
>> error: cannot open Packages database in /var/lib/rpm
>> Traceback (most recent call last):
>> File "/usr/bin/repoquery", line 808, in <module>
>> main(sys.argv)
>> File "/usr/bin/repoquery", line 721, in main
>> repoq.doConfigSetup(debuglevel=initnoise, init_plugins=opts.plugins)
>> File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in
>> doConfigSetup
>> errorlevel=errorlevel)
>> File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 159, in
>> _getConfig
>> self._conf = config.readMainConfig(startupconf)
>> File "/usr/lib/python2.5/site-packages/yum/config.py", line 613, in
>> readMainConfig
>> yumvars['releasever'] = _getsysver(startupconf.installroot,
>> startupconf.distroverpkg)
>> File "/usr/lib/python2.5/site-packages/yum/config.py", line 680, in
>> _getsysver
>> idx = ts.dbMatch('provides', distroverpkg)
>> TypeError: rpmdb open failed
>>
>> I'm just try to delete DB and rebuild it by "rpm --rebuilddb" but the
>> problem remain.
>>
>> After "rpm --rebuilddb" my /var/lib/rpm contest is:
>>
>> -rw-r--r-- 1 root root 684032 Jan 10 19:32 Basenames
>> -rw-r--r-- 1 root root 12288 Jan 10 19:32 Conflictname
>> -rw-r--r-- 1 root root 135168 Jan 10 19:32 Dirnames
>> -rw-r--r-- 1 root root 655360 Jan 10 19:32 Filemd5s
>> -rw-r--r-- 1 root root 12288 Jan 10 19:32 Group
>> -rw-r--r-- 1 root root 8192 Jan 10 19:32 Installtid
>> -rw-r--r-- 1 root root 12288 Jan 10 19:32 Name
>> -rw-r--r-- 1 root root 4149248 Jan 10 19:32 Packages
>> -rw-r--r-- 1 root root 90112 Jan 10 19:32 Providename
>> -rw-r--r-- 1 root root 28672 Jan 10 19:32 Provideversion
>> -rw-r--r-- 1 root root 12288 Jan 10 19:29 Pubkeys
>> -rw-r--r-- 1 root root 45056 Jan 10 19:32 Requirename
>> -rw-r--r-- 1 root root 28672 Jan 10 19:32 Requireversion
>> -rw-r--r-- 1 root root 12288 Jan 10 19:32 Sha1header
>> -rw-r--r-- 1 root root 12288 Jan 10 19:32 Sigmd5
>> -rw-r--r-- 1 root root 12288 Jan 10 19:32 Triggername
>> -rw-r--r-- 1 root root 0 May 30 08:43 __db.000
>> -rw-r--r-- 1 root root 24576 May 30 08:43 __db.001
>>
>>
>> Can You help me?
>
> Can you try:
>
> rm -f /var/lib/rpm/__db.00?
>
> and then re-do 'rpm --rebuilddb'?
>
15 years, 4 months
Cross compiling setup
by Jeff Picciotti
Hello, having a little trouble remembering what I did in the past and
thought someone out there might have a suggestion.
A little background... My small company has developed an arm board in
house and we have already setup up a couple of rootfs, one for runtime,
one for debugging and we also setup a cross compiling machine which is a
fedora 8 box.
We decided we were going to move our cross compiling machine to another
server and start fresh and I am having trouble linking the libraries I
need (the libraries do not exist in my new toolchain, where they do
exist on the old machine). I was obviously successful before but I
can't seem to find my notes.
I am having trouble remembering if I did anything special to manually
install the following libraries in /usr/armv5tel-red.../sys-root/lib
and /usr/armv5tel-red.../sys-root/usr/lib
libglibc-2.0
libgssapi_krb5
libk5crypto
libssl
libkeyutils
some others to.
I have this feeling I used some rpm tool to do this but maybe not.
Should these libraries be there by default or can I install the rpms for
them from the arm repository or how s the correct way to do this?
Did I copy these files from a rootfs?
I have tried to install to the new toolchain using rpm but I get "cannot
relocated this rpm".
The guy who setup both machines said that he did not make the new system
type "sw development" as he did the one we have working so we are
wondering if this may be an issue that some things are not getting
installed properly (We feel this is probably not the case).
As for now I simply tar'd up the old toolchain and copied it to the new
machine and I can compile, but I do need to figure this out for our wiki
setup pages so any help or thoughts would be greatly appreciated.
Hopefully you are able to understand my issue...
Also the Fedora-arm wiki is missing a lot of commands, if you click the
discussion tab the missing parts can be found there. Not sure what that
is about.
Thanks in advance,
Jeff
15 years, 4 months