You are not logged in.

#1 2023-12-11 14:16:21

mario0fan
Member
Registered: 2023-11-11
Posts: 4

[SOLVED] Cant compile paru

I tried compiling paru, and this is the output of the makepkg command

==> Making package: paru 2.0.1-1 (Mon Dec 11 15:05:36 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading paru-2.0.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 8036k  100 8036k    0     0  2270k      0  0:00:03  0:00:03 --:--:-- 3899k
==> Validating source files with sha256sums...
    paru-2.0.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting paru-2.0.1.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling libc v0.2.149
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling memchr v2.6.4
   Compiling pkg-config v0.3.27
   Compiling once_cell v1.18.0
   Compiling ppv-lite86 v0.2.17
   Compiling siphasher v0.3.11
   Compiling quote v1.0.33
   Compiling pin-project-lite v0.2.13
   Compiling cc v1.0.83
   Compiling getrandom v0.2.10
   Compiling syn v2.0.38
   Compiling rand_core v0.6.4
   Compiling bitflags v2.4.1
   Compiling rand_chacha v0.3.1
   Compiling futures-core v0.3.29
   Compiling serde v1.0.193
   Compiling rand v0.8.5
   Compiling log v0.4.20
   Compiling itoa v1.0.9
   Compiling bytes v1.5.0
   Compiling signal-hook-registry v1.4.1
   Compiling slab v0.4.9
   Compiling futures-sink v0.3.29
   Compiling vcpkg v0.2.15
   Compiling futures-task v0.3.29
   Compiling futures-channel v0.3.29
   Compiling mio v0.8.9
   Compiling num_cpus v1.16.0
   Compiling socket2 v0.5.5
   Compiling phf_shared v0.10.0
   Compiling futures-util v0.3.29
   Compiling phf_generator v0.10.0
   Compiling openssl-sys v0.9.93
   Compiling futures-io v0.3.29
   Compiling scopeguard v1.2.0
   Compiling pin-utils v0.1.0
   Compiling alpm-sys v2.1.2 (https://github.com/archlinux/alpm.rs?rev=8da396#8da39602)
   Compiling phf_codegen v0.10.0
   Compiling tracing-core v0.1.31
   Compiling indexmap v1.9.3
   Compiling syn v1.0.109
   Compiling openssl v0.10.57
   Compiling smallvec v1.11.1
   Compiling foreign-types-shared v0.1.1
   Compiling crossbeam-utils v0.8.16
   Compiling fnv v1.0.7
   Compiling adler v1.0.2
   Compiling tinyvec_macros v0.1.1
   Compiling miniz_oxide v0.7.1
   Compiling tinyvec v1.6.0
   Compiling tracing v0.1.37
   Compiling http v0.2.9
   Compiling foreign-types v0.3.2
   Compiling aho-corasick v1.1.2
   Compiling lock_api v0.4.10
   Compiling hashbrown v0.12.3
   Compiling percent-encoding v2.3.1
   Compiling parking_lot_core v0.9.8
   Compiling new_debug_unreachable v1.0.4
   Compiling crc32fast v1.3.2
   Compiling native-tls v0.2.11
   Compiling regex-syntax v0.8.2
   Compiling httparse v1.8.0
   Compiling form_urlencoded v1.2.1
   Compiling unicode-normalization v0.1.22
error: failed to run custom build command for `alpm-sys v2.1.2 (https://github.com/archlinux/alpm.rs?rev=8da396#8da39602)`

Caused by:
  process didn't exit successfully: `/home/mario0fan/paruthing/paru/src/paru-2.0.1/target/release/build/alpm-sys-6260dc231c3742ce/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=ALPM_LIB_DIR
  cargo:rerun-if-env-changed=LIBALPM_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /home/mario0fan/.cargo/git/checkouts/alpm.rs-a0070a235cf20bfa/8da3960/alpm-sys/build.rs:26:10:
  called `Result::unwrap()` on an `Err` value: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "libalpm" "libalpm >= 13.0.0"` did not exit successfully: exit status: 1
  error: could not find system library 'libalpm' required by the 'alpm-sys' crate

  --- stderr
  Package libalpm was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libalpm.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libalpm' found
  Package libalpm was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libalpm.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libalpm' found

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...

My system is up to date and i have base-devel installed.

Last edited by mario0fan (2023-12-11 14:56:46)

Offline

#2 2023-12-11 14:25:42

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

Re: [SOLVED] Cant compile paru

Are you trying to build this without having pacman? Do you maybe have PKG_CONFIG_PATH set (you shouldn't)? Or any other PKG_CONFIG* variables?

Last edited by Scimmia (2023-12-11 14:27:05)

Offline

#3 2023-12-11 14:52:16

mario0fan
Member
Registered: 2023-11-11
Posts: 4

Re: [SOLVED] Cant compile paru

Yeah, i did set that variable.I fixed it, it works now.
I just had to uninstall brew

Last edited by mario0fan (2023-12-11 14:56:31)

Offline

Board footer

Powered by FluxBB