You are not logged in.

#1 2014-10-05 18:20:44

james13
Member
Registered: 2014-10-05
Posts: 2

pacman looking for pacman.conf in the wrong place?

When using yaourt, I had been getting an error message to do with pacman.conf not being found. I fixed this by creating my own and saving it in
/usr/local/etc/pacman.conf
(it's the only file in /usr/local/etc)

I then got the error message:
failed to initialize alpm library (could not find or read directory)

After some googling and learning about the find command, I found the following files:
/usr/lib/libalpm.so
/usr/lib/libalpm.so.8
/usr/lib/pkgconfig/libalpm.pc
/usr/lib/libalpm.so.8.0.2

So I'm guessing that I do have the alpm library, but pacman (or Yaourt?) isn't finding it.

Further use of 'find' found the following versions of pacman:
/usr/local/etc/pacman.conf
/etc/pacman.conf

Which then lead me to believe that I have the necessary files but they are in the wrong place or there is a config file (or something) that I need to alter.

Any ideas what I've done wrong and how to correct it?

Thanks, James

Offline

#2 2014-10-05 18:32:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: pacman looking for pacman.conf in the wrong place?

Forget about yaourt for the moment - does pacman work as it should?

Offline

#3 2014-10-05 18:49:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: pacman looking for pacman.conf in the wrong place?

Sounds to me like you manually installed yaourt and screwed it up.

Offline

#4 2014-10-05 18:52:55

james13
Member
Registered: 2014-10-05
Posts: 2

Re: pacman looking for pacman.conf in the wrong place?

I've just tried
pacman -S man-pages
as a test, and it worked ok.

So, Bug Wrangler is probably right. Any ideas how I fix it, or is the solution to start again? If I need to start again, is there an easy way to remove yaourt?

Last edited by james13 (2014-10-05 18:57:00)

Offline

#5 2014-10-05 19:00:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: pacman looking for pacman.conf in the wrong place?

The solution is to not use yaourt.  How to remove it depends on how you installed it.  What does `pacman -Qs yaourt` return?  How did you install yaourt?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2014-10-05 20:00:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: pacman looking for pacman.conf in the wrong place?

Presumably, you used `make; make install` to install it, which means you need to go back to the build dir and run `make uninstall`. After that, install it from the AUR if you want to use it.

Offline

Board footer

Powered by FluxBB