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

paru: error while loading shared libraries: libalpm.so.14: cannot open shared object file: No such file or directory #1243

Open
dehlong opened this issue Sep 18, 2024 · 10 comments

Comments

@dehlong
Copy link

dehlong commented Sep 18, 2024

Affected Version

paru -V
Cannot output, I get the error in the title

Description

Have you checked previous issues?
Yes, I have also tried re-building paru again. However, that is broken, too. Is there anything we can do about it?

error: failed to run custom build command for `alpm v3.0.4 (https://github.com/archlinux/alpm.rs?rev=306342#306342ef)`

Caused by:
  process didn't exit successfully: `/home/samo/paru/src/paru-2.0.3/target/release/build/alpm-fe8130be9696cf00/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /home/samo/.cargo/git/checkouts/alpm.rs-a0070a235cf20bfa/306342e/alpm/build.rs:25:13:
  this version of alpm.rs does not support libalpm v15.0.0 only v14.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...
@edwloef
Copy link

edwloef commented Sep 18, 2024

paru-git should build fine: #1239 (comment)

@furrykef
Copy link

An update to the paru package has been pushed and is working fine for me.

@NxtTAB
Copy link

NxtTAB commented Sep 20, 2024

image

@NxtTAB
Copy link

NxtTAB commented Sep 20, 2024

image

@furrykef
Copy link

Symlinking the .so file that way is a bad idea because it's not compatible with the one paru was built with. That's the reason why paru broke in the first place. paru not running when the .so file is incompatible is not a bug, it's a feature.

There's also no need to do it because the paru package has already been updated. Just download paru's PKGBUILD from the AUR, then run makepkg, then use and pacman -U on the generated package, the same way you probably installed paru in the first place.

@NxtTAB
Copy link

NxtTAB commented Sep 20, 2024

THX this works

@mykhail0
Copy link

AUR repository is in a detached HEAD state so it's not possible to update paru with paru, or with using git pull in a previously cloned repository.

@seanmceligot
Copy link

Symlinking the .so file that way is a bad idea because it's not compatible with the one paru was built with. That's the reason why paru broke in the first place. paru not running when the .so file is incompatible is not a bug, it's a feature.

There's also no need to do it because the paru package has already been updated. Just download paru's PKGBUILD from the AUR, then run makepkg, then use and pacman -U on the generated package, the same way you probably installed paru in the first place.

Maybe you didn't notice that the symlink was removed right after updating paru. This isn't a permanent change. it's It a temporary hack. If it blows up , no big deal, fall back to download and makepkg. If it works, then delete the symlink and you're good.

@furrykef
Copy link

It's a temporary hack with undefined behavior. It shouldn't be done for any amount of time.

@Sapeu
Copy link

Sapeu commented Oct 5, 2024

Symlinking the .so file that way is a bad idea because it's not compatible with the one paru was built with. That's the reason why paru broke in the first place. paru not running when the .so file is incompatible is not a bug, it's a feature.

There's also no need to do it because the paru package has already been updated. Just download paru's PKGBUILD from the AUR, then run makepkg, then use and pacman -U on the generated package, the same way you probably installed paru in the first place.

Thanks it works.
The libalpm.so.14 file cannot be found on my computer.
Just run

sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si

If you have installed rustup manually and do not want to install it through pacman, can use the makepkg -sdi command.

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

7 participants