Artix Linux Forum

Artix Linux => Package management => Topic started by: kur-ka on 22 April 2022, 16:04:39

Title: libSDL
Post by: kur-ka on 22 April 2022, 16:04:39
lincity-ng: error while loading shared libraries: libSDL_gfx.so.16: cannot open shared object file: No such file or directory

Am right this library is not currently available as a package?
Any other sources to get it?
Title: Re: libSDL
Post by: strajder on 22 April 2022, 16:10:14
Code: [Select]
$ LC_ALL=C pacman -Si lincity-ng | grep Depends
Depends On      : sdl_mixer  sdl_ttf  sdl_image  physfs  libxml2  sdl_gfx  libgl
$ pacman -Fl sdl_gfx | grep so.16
sdl_gfx usr/lib/libSDL_gfx.so.16
sdl_gfx usr/lib/libSDL_gfx.so.16.9.1
Don't skip the dependencies for the package.
Title: Re: libSDL
Post by: kur-ka on 22 April 2022, 20:39:34
Thank you for the answer, however I need some more info. I have no response for
$ pacman -Ss sdl_gfx lincity-ng
  so would like to  learn where  I can get these packages from (not from artix I suppose  :o )
Title: Re: libSDL
Post by: strajder on 22 April 2022, 21:56:39
Both packages are in Arch repository community. Check if you have added Arch repositories properly (https://wiki.artixlinux.org/Main/Repositories#Arch_repositories) and run
Code: [Select]
pacman -Syyuu
Afterwards you should get:
Code: [Select]
$ pacman -Ss lincity-ng
community/lincity-ng 2.0-10
    A city simulation game
$ pacman -Ss sdl_gfx
community/sdl_gfx 2.0.26-5
    SDL graphics drawing primitives and other support functions
How did you install lincity-ng? pamac and octopi are unsupported and not recommended, as well as AUR helpers (https://wiki.archlinux.org/title/AUR_helpers) and partial upgrades (https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported).
Title: Re: libSDL
Post by: kur-ka on 23 April 2022, 15:10:29
How did you install lincity-ng? pamac and octopi are unsupported and not recommended, as well as AUR helpers (https://wiki.archlinux.org/title/AUR_helpers) and partial upgrades (https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported).
Manually from a tarball without dependencies linked to some mirror [1] at pkgs.org. I almost found all the dependencies, except the ones present only in arch repos.
ftp5.gwdg.de/pub/linux/archlinux/community/os/x86_64/lincity-ng-2.0-10-x86_64.pkg.tar.zst
Title: Re: libSDL
Post by: strajder on 23 April 2022, 16:41:38
Thank you for the answer, however I need some more info. I have no response for
$ pacman -Ss sdl_gfx lincity-ng
  so would like to  learn where  I can get these packages from (not from artix I suppose  :o )
I think the problem is in your use of the -s option. The manual page for pacman states:
Quote
       -s, --search <regexp>
           Search each locally-installed package for names or
           descriptions that match regexp. When including multiple search
           terms, only packages with descriptions matching ALL of those
           terms are returned.
Since no package satisfies both of the search terms you gave, the command returns nothing. If instead the command is supplied a different regexp:
Code: [Select]
pacman -Ss '(sdl_gfx|lincity-ng)'
both packages are listed in the result.
Title: Re: libSDL
Post by: kur-ka on 24 April 2022, 12:45:04
I think the problem is in your use of the -s option.
(...)
both packages are listed in the result.
Yes, they are listed, but only after I added Arch repositories properly. BTW the reason the appropriate entries were missing in my pacman.conf was that I was misguided by the last pacman's message to paste it into, which I took for the confirmation of an automatic update of pacman.conf by pacman -S artix-archlinux-support.
Title: Re: libSDL
Post by: strajder on 24 April 2022, 17:29:12
BTW the reason the appropriate entries were missing in my pacman.conf was that I was misguided by the last pacman's message to paste it into, which I took for the confirmation of an automatic update of pacman.conf by pacman -S artix-archlinux-support.
The message is there precisely to remind the user to update /etc/pacman.conf, and the wording (https://gitea.artixlinux.org/packagesA/artix-archlinux-support/src/branch/master/trunk/arch-repos-hook.script#L31) is:
Code: [Select]
==> Add the arch repos in pacman.conf:
followed by an example pacman.conf layout.