You are not logged in.

#1 2011-01-26 21:05:23

urgoshvarrog
Member
Registered: 2011-01-26
Posts: 14

pacman uninstalled

Hi everybody!

Two days ago, I updated pacman to version 3.4.3-1. At the end of the installation, pacman broke down, and I downloaded the source code from ftp://ftp.archlinux.org/other/pacman/ and installed it with ./configure, make and make install. Unfortunataly, pacman still doesen't work, I get the error:

 pacman: error while loading shared libraries: libalpm.so.5: cannot open shared object file: No such file or directory 

libalpm.so.5 (in /usr/local/lib) is a link to libalpm.so.5.0.3. It seems to me that there is something wrong with my libalpm, but I have no idea what.

The script from https://bbs.archlinux.org/viewtopic.php?id=95007 broke down with 404 Error,

Could you please help me?

Last edited by urgoshvarrog (2011-01-26 21:15:59)

Offline

#2 2011-01-26 21:19:57

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: pacman uninstalled

I don't think you should have any libs in /usr/local/lib, just in /usr/lib. Use

http://www.archlinux.org/packages/core/i686/pacman/download/

(change i686 to x86_64 if that's the architecture you use) to download the pacman package, unpack it and make sure all the things, including libs, are in proper places.

Offline

#3 2011-01-26 21:20:50

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: pacman uninstalled

You shouldn't have anything to do with pacman in /usr/local/lib.  You most likely didn't configure it correctly (i.e --prefix=/usr).

Try getting the pacman package from the cache and exracting it to your file system,  remove the stuff from /usr/local and see if that helps.

If it works reinstall pacman and then do your full system upgrade.

Last edited by loafer (2011-01-26 21:23:38)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2011-01-26 21:37:18

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: pacman uninstalled

Any reason why you compiled instead of just untarring the binary package to / ?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2011-01-26 21:53:00

urgoshvarrog
Member
Registered: 2011-01-26
Posts: 14

Re: pacman uninstalled

I configured pacman with

 ./configure --prefix=/usr 

(thx @ loafer) and installed pacman. Now I get the error message

 sudo pacman -Syu
Password: 
error: no usable package repositories configured.

Here (https://bbs.archlinux.org/viewtopic.php?id=33826) someone had the same problem, and solved it by copying the pacman.conf to /etc.
In /etc I have the pacman.conf from the tar, which referes to the correct mirrorlist.


.:B:. wrote:

Any reason why you compiled instead of just untarring the binary package to / ?

There is no reason, but I wanted to be sure that it will work.

Last edited by urgoshvarrog (2011-01-26 21:55:03)

Offline

#6 2011-01-27 00:08:21

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: pacman uninstalled

The config line used in the package is:

./configure --prefix=/usr [b]--sysconfdir=/etc[/b] --localstatedir=/var --enable-doc

Untaring the package to root is the easiest/safest way to do this IMHO.

Offline

#7 2011-01-27 06:40:33

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: pacman uninstalled

I wasn't suggesting you compiled it again, just giving an example of why it ended up installing to /usr/local.  As hokasch pointed out there are more options to configure and it is probably looking for pacman.conf in /usr/local/etc now.

Remove everything installed to /usr/local and untar the pacman package as suggested.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#8 2011-01-27 13:34:29

urgoshvarrog
Member
Registered: 2011-01-26
Posts: 14

Re: pacman uninstalled

.:B:. wrote:

Any reason why you compiled instead of just untarring the binary package to / ?

Now I untarred it to /, and get the error message

 
pacman -Syu
error: directive 'Server' with a value not recognized
error: config file /etc/pacman.d/mirrorlist, line 91: problem in options section
error: no usable package repositories configured.

Do pacman think my mirrorlist is the config file? (My mirrorlist is the one copied from the package and should be rigth in line 91 it begin with Server = http .... )

mv pacman.d/mirrorlist pacman.d/mirrorlist_save
cp pacman.conf pacman.d/
pacman -Syu
error: config file /etc/pacman.d/mirrorlist could not be read.
error: no usable package repositories configured.

Now he cant read the config file. Or was the error he cant read the mirrorlist?

Offline

#9 2011-01-27 13:46:26

urgoshvarrog
Member
Registered: 2011-01-26
Posts: 14

Re: pacman uninstalled

loafer wrote:

I wasn't suggesting you compiled it again, just giving an example of why it ended up installing to /usr/local.  As hokasch pointed out there are more options to configure and it is probably looking for pacman.conf in /usr/local/etc now.

Remove everything installed to /usr/local and untar the pacman package as suggested.

You're were right, there were directorys like /usr/local/etc usw. To test ist, I copiey my pacman.conf to /usr/local/etc and my mirrorlist to /usr/local/etc/pacman.d/, but it still doesn't work. (Same error as above.)

btw: Sorry for my bad english, unfortunately I'm not a native speaker.

Offline

Board footer

Powered by FluxBB