A problem when initialization smart

Sriram Narayanan sriram at belenix.org
Mon Nov 8 11:45:16 PST 2010


On Tue, Nov 9, 2010 at 1:05 AM, Anders F Björklund <afb at algonet.se> wrote:
> Sriram Narayanan wrote:
>
>> I'm trying to initialize smart on my system. I get the following error:
>> smart install --data-dir=~/aaaa --log-level=debug
>> warning: The Smart library is already in use by another process.
>> warning: Configuration is in readonly mode!
>> Updating cache...
>> ############################################################### [100%]
>>
>> Computing transaction...
>>                                               debug:
>> debug: Tasks started: 0, completed: 0, pruned: 0, failed: 0.
>>
>> What am I doing wrong here ?
>
> You might want to give some more details, like versions and such.
>
>

Sorry ! I'm using smart 1.3
I've installed from source on an opensolaris based computer. The
install went fine.

> Normally you would need to use something like "sudo" for install ?
>

I've tried this in the sudo equivalent mode and that gives the same error

>> warning: Configuration is in readonly mode!
>
>
> That does not account for the "already in use" though, but anyway.
>
>> warning: The Smart library is already in use by another process.
>
>
> The --data-dir only affects the smart files (i.e. /var/lib/smart),
> the install root is set with other options: one per smart backend.
>
> There is one option to set the root, and one to set the pm db dir.
> It's a bit unfortunate that they are split, but that's how it is.
>
> "rpm-root", "/",
> "rpm-dbpath", "var/lib/rpm"
>
> "deb-root", "/",
> "deb-admindir", "var/lib/dpkg"
>
> "slack-root", "/",
> "slack-packages-dir", "var/log/packages"
>
> "arch-root", "/",
> "arch-packages-dir", "var/lib/pacman"
>

Ok, where do I specify these ?

My rpmdb is at /home/sriram/alt/var/lib/rpm

I'm using rpm5

> --anders
>
>



-- 
Belenix: www.belenix.org



More information about the Smart mailing list