Morganamilo / paru

Feature packed AUR helper
GNU General Public License v3.0
6.16k stars 237 forks source link

error: failed to run custom build command for `alpm v4.0.1` #1250

Open guixianren2 opened 2 weeks ago

guixianren2 commented 2 weeks ago

Encountered a problem, unable to install, please tell me how to solve it

Caused by: process didn't exit successfully: /home/guxin/.cache/yay/paru/src/paru-2.0.4/target/release/build/alpm-4dea8ea09155ec51/build-script-build (exit status: 101) --- stderr thread 'main' panicked at /home/guxin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alpm-4.0.1/build.rs:25:13: this version of alpm.rs does not support libalpm v14.0.0 only v15.x.x is supported note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish...

Bie401 commented 2 weeks ago

Facing the same issue, I am trying to install paru by following the below commands.

`sudo pacman -S --needed base-devel

git clone https://aur.archlinux.org/paru.git

cd paru

makepkg -si`

Error logs:

error: failed to run custom build command foralpm v4.0.1`

Caused by: process didn't exit successfully: /home/prithvi/AUR_repo/paru/src/paru-2.0.4/target/release/build/alpm-c86ec86fd681e05a/build-script-build (exit status: 101) --- stderr thread 'main' panicked at /home/prithvi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alpm-4.0.1/build.rs:25:13: this version of alpm.rs does not support libalpm v14.0.0 only v15.x.x is supported 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...`

Maherilaza commented 2 weeks ago

You can try installing directly with cargo cargo install --git https://github.com/Morganamilo/paru.git

BishopWolf commented 2 weeks ago

trying directly with cargo i get

error: failed to run custom build command for `alpm v4.0.1`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installvw5Zco/release/build/alpm-9c141fe3a5ca0c82/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /home/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alpm-4.0.1/build.rs:25:13:
  this version of alpm.rs does not support libalpm v14.0.0 only v15.x.x is supported
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `paru v2.0.4 (https://github.com/Morganamilo/paru.git#9177d820)`, intermediate artifacts can be found at `/tmp/cargo-installvw5Zco`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
BishopWolf commented 2 weeks ago

If your system is not yet updated (like Manjaro), then use

cargo install --git https://github.com/Morganamilo/paru.git --tag v2.0.3
jmakov commented 1 week ago

If your system is not yet updated (like Manjaro), then use

cargo install --git https://github.com/Morganamilo/paru.git --tag v2.0.3

On Manjaro, didn't work for me. The error remains.

geeflaxx commented 1 week ago

we should wait

BishopWolf commented 1 week ago

If your system is not yet updated (like Manjaro), then use

cargo install --git https://github.com/Morganamilo/paru.git --tag v2.0.3

On Manjaro, didn't work for me. The error remains.

You shall uninstall paru package from pacman first

jmakov commented 1 week ago

Thank you for the tip. But breaking things 1x/month is not for me, back to Ubuntu.

BishopWolf commented 6 days ago

Manjaro has upgraded pacman, so paru its back running