You are not logged in.

#1 2019-02-17 13:35:07

Lafriakh
Member
Registered: 2019-02-17
Posts: 4
Website

[SOLVED] Dependency libalpm not found when installing pamac-aur

Hello,

When I try to install pamac-aur I got an error that tell me I don't have libalpm dependency.
I run this command to install pamac-aur:

makepkg -s

And I got this message:

==> Making package: pamac-aur 7.3.4-2 (Sun 17 Feb 2019 03:24:04 AM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading pamac-7.3.4-2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  393k  100  393k    0     0   432k      0 --:--:-- --:--:-- --:--:--  432k
==> Validating source files with sha256sums...
    pamac-7.3.4-2.tar.gz ... Passed
==> Extracting sources...
  -> Extracting pamac-7.3.4-2.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
The Meson build system
Version: 0.49.2
Source dir: /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0
Build dir: /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0/builddir
Build type: native build
Project name: pamac
Project version: undefined
Appending CFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
Native C compiler: cc (gcc 8.2.1 "cc (GCC) 8.2.1 20181127")
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Native Vala compiler: valac (valac 0.42.5)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /home/linuxbrew/.linuxbrew/bin/pkg-config (0.29.2)
Dependency gobject-2.0 found: YES 2.58.3
Dependency gio-2.0 found: YES 2.58.3
Dependency gthread-2.0 found: YES 2.58.3
Found CMake: /home/linuxbrew/.linuxbrew/bin/cmake (3.13.4)
Dependency libalpm found: NO (tried pkgconfig and cmake)

src/meson.build:4:0: ERROR:  Dependency "libalpm" not found, tried pkgconfig and cmake

A full log can be found at /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0/builddir/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...

And this is the content of meson-log.text:

Build started at 2019-02-17T03:24:05.739728
Main binary: /usr/bin/python
Python system: Linux
The Meson build system
Version: 0.49.2
Source dir: /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0
Build dir: /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0/builddir
Build type: native build
Project name: pamac
Project version: undefined
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0/builddir/meson-private/sanitycheckc.c -o /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0/builddir/meson-private/sanitycheckc.exe
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0/builddir/meson-private/sanitycheckc.exe
Appending CFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
Native C compiler: cc (gcc 8.2.1 "cc (GCC) 8.2.1 20181127")
Running compile:
Working directory:  /tmp/tmpdxzodrgu
Command line:  valac /tmp/tmpdxzodrgu/testfile.vala -C 

Code:
 class MesonSanityCheck : Object { }
Compiler stdout:
 
Compiler stderr:
 
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Native Vala compiler: valac (valac 0.42.5)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /home/linuxbrew/.linuxbrew/bin/pkg-config (0.29.2)
Determining dependency 'glib-2.0' with pkg-config executable '/home/linuxbrew/.linuxbrew/bin/pkg-config'
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --modversion glib-2.0` -> 0
2.58.3
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --cflags glib-2.0` -> 0
-I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/include/glib-2.0 -I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib/glib-2.0/include -I/home/linuxbrew/.linuxbrew/Cellar/pcre/8.42/include
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config glib-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lglib-2.0
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config glib-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lglib-2.0
Running compile:
Working directory:  /tmp/tmpaaq_qgao
Command line:  cc /tmp/tmpaaq_qgao/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpaaq_qgao/output.exe -march=x86-64 -mtune=generic -O2 -fno-plt -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -O0 

Code:
 #include<stdio.h>
        
        int main(int argc, char **argv) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        };
Compiler stdout:
 
Compiler stderr:
 
Program stdout:

8

Program stderr:


Running compile:
Working directory:  /tmp/tmpyga8ig2l
Command line:  cc /tmp/tmpyga8ig2l/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpyga8ig2l/output.obj -march=x86-64 -mtune=generic -O2 -fno-plt -D_FORTIFY_SOURCE=2 -O0 --print-search-dirs 

Code:
 
Compiler stdout:
 install: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/
programs: =/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/:/lib/x86_64-pc-linux-gnu/8.2.1/:/lib/../lib/:/usr/lib/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../:/lib/:/usr/lib/

Compiler stderr:
 
Determining dependency 'gobject-2.0' with pkg-config executable '/home/linuxbrew/.linuxbrew/bin/pkg-config'
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --modversion gobject-2.0` -> 0
2.58.3
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --cflags gobject-2.0` -> 0
-I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/include/glib-2.0 -I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib/glib-2.0/include -I/home/linuxbrew/.linuxbrew/Cellar/pcre/8.42/include
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config gobject-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lgobject-2.0 -lglib-2.0
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config gobject-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lgobject-2.0 -lglib-2.0
Dependency gobject-2.0 found: YES 2.58.3
Determining dependency 'gio-2.0' with pkg-config executable '/home/linuxbrew/.linuxbrew/bin/pkg-config'
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --modversion gio-2.0` -> 0
2.58.3
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --cflags gio-2.0` -> 0
-pthread -I/home/linuxbrew/.linuxbrew/Cellar/util-linux/2.32.1_2/include/libmount -I/home/linuxbrew/.linuxbrew/Cellar/util-linux/2.32.1_2/include/blkid -I/home/linuxbrew/.linuxbrew/Cellar/util-linux/2.32.1_2/include/uuid -I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/include/glib-2.0 -I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib/glib-2.0/include -I/home/linuxbrew/.linuxbrew/Cellar/pcre/8.42/include
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config gio-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config gio-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
Dependency gio-2.0 found: YES 2.58.3
Determining dependency 'gthread-2.0' with pkg-config executable '/home/linuxbrew/.linuxbrew/bin/pkg-config'
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --modversion gthread-2.0` -> 0
2.58.3
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --cflags gthread-2.0` -> 0
-pthread -I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/include/glib-2.0 -I/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib/glib-2.0/include -I/home/linuxbrew/.linuxbrew/Cellar/pcre/8.42/include
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config gthread-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lgthread-2.0 -pthread -lglib-2.0
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config gthread-2.0 --libs` -> 0
-L/home/linuxbrew/.linuxbrew/Cellar/glib/2.58.3/lib -lgthread-2.0 -pthread -lglib-2.0
Dependency gthread-2.0 found: YES 2.58.3
Determining dependency 'libalpm' with pkg-config executable '/home/linuxbrew/.linuxbrew/bin/pkg-config'
Called `/home/linuxbrew/.linuxbrew/bin/pkg-config --modversion libalpm` -> 1

Found CMake: /home/linuxbrew/.linuxbrew/bin/cmake (3.13.4)

Determining dependency 'libalpm' with CMake executable '/home/linuxbrew/.linuxbrew/bin/cmake'
Try CMake generator: auto
Called `/home/linuxbrew/.linuxbrew/bin/cmake --trace-expand -DNAME=libalpm .` in /home/lafriakh/Downloads/pamac-aur/src/pamac-71fc9ae24a09f025a0bf0e6b1d66544a7e65b7e0/builddir/meson-private/cmake_libalpm -> 0
Dependency libalpm found: NO (tried pkgconfig and cmake)

src/meson.build:4:0: ERROR:  Dependency "libalpm" not found, tried pkgconfig and cmake

I think that libalpm is part of pacman, I did some research in google and I can't find anything about this issue.

Thank you,

Last edited by Lafriakh (2019-02-17 13:55:27)

Offline

#2 2019-02-17 13:40:18

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

Re: [SOLVED] Dependency libalpm not found when installing pamac-aur

Found pkg-config: /home/linuxbrew/.linuxbrew/bin/pkg-config

What on earth is that?  You are defaulting to "linuxbrew" binaries and dependencies rather than your system's native ones.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2019-02-17 13:42:59

Lafriakh
Member
Registered: 2019-02-17
Posts: 4
Website

Re: [SOLVED] Dependency libalpm not found when installing pamac-aur

Trilby wrote:
Found pkg-config: /home/linuxbrew/.linuxbrew/bin/pkg-config

What on earth is that?  You are defaulting to "linuxbrew" binaries and dependencies rather than your system's native ones.

I used Homebrew to install some packages from there, is this can cause the problem?

Last edited by Lafriakh (2019-02-17 13:43:28)

Offline

#4 2019-02-17 13:46:11

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

Re: [SOLVED] Dependency libalpm not found when installing pamac-aur

Apparently.  Why on earth would you use Homebrew on linux ... especially on arch linux?

Exactly what steps did you follow to use homebrew?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2019-02-17 13:54:15

Lafriakh
Member
Registered: 2019-02-17
Posts: 4
Website

Re: [SOLVED] Dependency libalpm not found when installing pamac-aur

Thank you Trilby for your help I removed the pkg-config from Homebrew and it's works.

Trilby wrote:

Exactly what steps did you follow to use homebrew?

I used it to install some packages from there. You can find it Here, they officially support Linux.

Offline

#6 2019-02-17 14:21:44

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

Re: [SOLVED] Dependency libalpm not found when installing pamac-aur

That's a horrible guide to follow - you'll break all sorts of things.

Removing homebrew's pkg-config allowed you to build pamac, but now homebrew builds will likely fail and you have a bunch of other homebrew nonsense that will take precedence over your system binaries.

I doubt there'd be anything in homebrew that isn't already in the AUR - and even if there was, it'd be trivial to make a PKGBUILD for it.

I'd really not call this thread SOLVED as you merely brushed one symptom of horrible breakage under the rug, nothing was actually fixed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2019-02-17 15:37:22

Lafriakh
Member
Registered: 2019-02-17
Posts: 4
Website

Re: [SOLVED] Dependency libalpm not found when installing pamac-aur

I remove Homebrew entirely, since it's added many dependencies that conflict with Arch Linux.

So, what I learned from this issue is Don't use two package manager at the same time.

Thank you again for your help,

Offline

#8 2019-02-17 15:47:09

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

Re: [SOLVED] Dependency libalpm not found when installing pamac-aur

Well, technically there are safe ways to use multiple package managers.  Many archers use pip for python stuff or gem (I think that's what it's called) for ruby.  I recently started using tlmgr for my LaTeX tools.

But I can't imagine what benefit using homebrew on linux could possibly have.  It is not domain specific and doesn't add a greater level of control than existing methods of installing source packages.  But far more importantly than this, is that the instructions you followed to use Homebrew are just bad.  It could be possible to use Homebrew safely in arch, but that tutorial is definitely not the way to do so.

EDIT: there are of course harmful ways of using pip, gem, or tlmgr.  Any use of them as root using the same root filesystem will be a problem.  You did not do this with homebrew, but the problem there was that it replaced countless core elements of a linux system with it's own, and placed those tools higher in your PATH.

Last edited by Trilby (2019-02-17 15:48:34)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB