libalpm on Raspberry Pi

Ask questions about Arch Linux ARM. Please search before making a new topic.

libalpm on Raspberry Pi

Postby P4tk4 » Mon Aug 18, 2014 11:23 am

Hello @all,
i have a problem with pacman.If you don't want to read the story goto "executive Summary".

I have installed nginx on my Raspberry Pi and after reading this
https://wiki.archlinux.org/index.php/ng ... n_a_chroot
i had copy everything to /srv/http like in the tutorial. nginx works perfekt but the problem is that pacman couldn't install updates for nginx and the needen libs.

i tryed to install nginx with pacman directly on /srv/http2 with
$this->bbcode_second_pass_code('', 'pacman -S nginx -r /srv/http2') but there comes the error "Fehler: Konnte alpm-Bibliothek nicht initialisieren (Konnte Verzeichniss nicht finden oder lesen)" in english "Error: Could not initialize alpm library (directory Could not find or read)". I looked now if alpm is installed with
$this->bbcode_second_pass_code('', 'pacman -Q|grep alpm') There was no lib or somthing else so i try $this->bbcode_second_pass_code('', 'pacman -Ss alpm') and found only pyalpm and pcurses. On archlinuxarm.org under packages i find again only pyalpm and pcurses.
So how can i fix the problem or where can i find the alpm lib?

executive Summary:


$this->bbcode_second_pass_code('', 'pacman -S nginx -r /srv/http2') returns "Fehler: Konnte alpm-Bibliothek nicht initialisieren (Konnte Verzeichniss nicht finden oder lesen)" in english "Error: Could not initialize alpm library (directory Could not find or read)".
How can i fix the problem or where can i find the alpm lib?

thx P4tk4
P4tk4
 
Posts: 3
Joined: Mon Aug 18, 2014 10:36 am

Re: libalpm on Raspberry Pi

Postby WarheadsSE » Mon Aug 18, 2014 1:57 pm

$this->bbcode_second_pass_code('', '-r, --root <path>
Specify an alternative installation root (default is /). This should not be used as a
way to install software into /usr/local instead of /usr. This option is used if you want
to install a package on a temporary mounted partition that is "owned" by another system.
NOTE: if database path or logfile are not specified on either the command line or in
pacman.conf(5), their default location will be inside this root path.
')
So, you're attempting to install software into what amounts to a chroot under /srv/http?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: libalpm on Raspberry Pi

Postby P4tk4 » Mon Aug 18, 2014 6:51 pm

Sry but i don't understand your answere :P
P4tk4
 
Posts: 3
Joined: Mon Aug 18, 2014 10:36 am

Re: libalpm on Raspberry Pi

Postby pepedog » Mon Aug 18, 2014 9:58 pm

You want your files in /srv/http2, don't you?
What you are doing is trying to install a whole system there
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: libalpm on Raspberry Pi

Postby P4tk4 » Mon Aug 18, 2014 10:12 pm

Oh okay xD i miss understand the man Page
P4tk4
 
Posts: 3
Joined: Mon Aug 18, 2014 10:36 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 16 guests