Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guixianren2 opened this issue Sep 23, 2024 · 9 comments
Open

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

guixianren2 opened this issue Sep 23, 2024 · 9 comments

Comments

@guixianren2
Copy link

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
Copy link

Bie401 commented Sep 23, 2024

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 for alpm 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
Copy link

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

@BishopWolf
Copy link

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
Copy link

BishopWolf commented Sep 26, 2024

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
Copy link

jmakov commented Oct 1, 2024

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
Copy link

geeflaxx commented Oct 1, 2024

we should wait

@BishopWolf
Copy link

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
Copy link

jmakov commented Oct 2, 2024

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

@BishopWolf
Copy link

Manjaro has upgraded pacman, so paru its back running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants