4

I keep getting this same error when trying to install various packages:

make: error while loading shared libraries: libunistring.so.0:
cannot open shared object file: No such file or directory

It's occurred while trying to install the Ruby gem Gosu as well as some free Linux games like Alien Arena. I even tried re-installing libunistring with pacman to no avail.

  • Please post the output of `pacman -Q libunistring` – jasonwryan Feb 14 '15 at 02:01
  • Output for pacman -Q libunistring: libunistring 0.9.4-1 – Forrest Wilkins Feb 14 '15 at 02:48
  • That PKGBUILD (ruby-gosu) is out of date, but with a small modification it builds fine. Is your glibc up-to-date? Are you using yaourt (because you should build manually if it fails)? Also, please don't paste truncated error output: it makes it too hard to guess what is going on, paste the whole thing. – jasonwryan Feb 14 '15 at 03:01
  • I think the issue is with make itself. For example, if I just type `make` or `make -v`, I get the following output (non-truncated): `make: error while loading shared libraries: libunistring.so.0: cannot open shared object file: No such file or directory` – Forrest Wilkins Feb 14 '15 at 03:09
  • 1
    Then your system is likely out-of-date, or you have borked it somehow. Run `pacman -Syyu`. – jasonwryan Feb 14 '15 at 03:19
  • What was this supposed to do? I can't even connect to WiFi now – Forrest Wilkins Feb 15 '15 at 21:04
  • It force syncs your mirror and updates your system: it is how Arch works... As for your wifi issue, that is a separate question. – jasonwryan Feb 15 '15 at 21:35
  • Okay, thanks for the help! Everything is working fine now. – Forrest Wilkins Feb 15 '15 at 21:40
  • 1
    It's ridiculous: I install a fresh `base/arch` image, I run `pacman -S make`, it succeeds, I run `make` and it says `make: error while loading shared libraries: libunistring.so.2`. Arch Linux sux. – rustyx May 29 '18 at 09:30

1 Answers1

0
pacman -Syyu

Fixed the issue as provided by jasonwryan.