You are not logged in.

#1 2013-04-17 16:30:31

corban
Member
Registered: 2013-04-14
Posts: 26

Can't build pacman, says libarchive isn't found [SOLVED]

Hi all,

I'm trying to compile pacman from source. I cloned the git repo, ran autogen.sh, then did ./configure, and it says:

checking for LIBARCHIVE... no
configure: error: *** libarchive >= 2.8.0 is needed to compile pacman!

But if I do pacman -Qs libarchive I get:

local/libarchive 3.1.2-1
    library that can create and read several streaming archive formats

What can I do to get configure to see the package?

Last edited by corban (2013-04-17 21:38:20)

Offline

#2 2013-04-17 16:32:42

corban
Member
Registered: 2013-04-14
Posts: 26

Re: Can't build pacman, says libarchive isn't found [SOLVED]

The error message is not indicative of the problem, you just have to have pkgconfig installed.

(Yes, I'm answering my own question, sorry if that's not OK.)

Offline

#3 2013-04-17 16:34:43

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Can't build pacman, says libarchive isn't found [SOLVED]

corban wrote:

(Yes, I'm answering my own question, sorry if that's not OK.)

Its perfectly ok. Add solved to the thread title so others can benefit as well.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2013-04-17 16:41:45

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: Can't build pacman, says libarchive isn't found [SOLVED]

Incidentally, you should really have the base-devel group of packages installed if you're compiling packages, and you should use makepkg if you're intending to "install" the end product.

https://wiki.archlinux.org/index.php/Creating_Packages
https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/Makepkg


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2013-04-17 21:37:55

corban
Member
Registered: 2013-04-14
Posts: 26

Re: Can't build pacman, says libarchive isn't found [SOLVED]

WorMzy wrote:

Incidentally, you should really have the base-devel group of packages installed if you're compiling packages, and you should use makepkg if you're intending to "install" the end product.

https://wiki.archlinux.org/index.php/Creating_Packages
https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/Makepkg

Actually I'm building pacman itself, not a package, but thanks for the tip.

Offline

#6 2016-09-29 04:56:11

felix2016
Member
Registered: 2016-09-29
Posts: 1

Re: Can't build pacman, says libarchive isn't found [SOLVED]

Hi All:
I encounter the same problem, and i have resolved it. Just need install the libarchive-dev.
Then you can run ./configure again will pass.

Offline

#7 2016-09-29 06:41:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't build pacman, says libarchive isn't found [SOLVED]

Please don't necrobump, especially solved threads: https://wiki.archlinux.org/index.php/Co … bumping.22

And, to really take the cake, there is no libarchive-dev on Arch, you have the wrong distro...


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB