Artix Linux Forum

Artix Linux => Package management => Topic started by: alium on 13 May 2018, 20:08:01

Title: [GIMP] 2.10.0 does not work
Post by: alium on 13 May 2018, 20:08:01
gimp: error while loading shared libraries: libjson-c.so.3: cannot open shared object file: No such file or directory

The problem make a newest package of json-c 0.13.1 in artix, which provides libjson-c.so.4, but archlinux package contains only   0.13, wich provides libjson-c.so.3.

Solution (not exactly recommended) is: # ln -s /usr/lib64/libjson-c.so.4 /usr/lib64/libjson-c.so.3 - after gimp works normaly (tested gimp-2.10.0-5) or recompile gimp or downgrade artix package of json-c...
Title: Re: [GIMP] 2.10.0 does not work
Post by: dreieck on 17 May 2018, 10:28:37
Same problem here.

Can Artix' developers include the older libjson-c.so into system/json-c? Otherwise, things break ...
Title: Re: [GIMP] 2.10.0 does not work
Post by: dreieck on 17 May 2018, 12:08:22
Somehow compiling gimp locally does not solve the issue, so I made a customizepkg-hook for json-c which incorporates the dirty fix by ALIUM.

My local patch to the PKGBUILD of json-c:
Code: [Select]
--- PKGBUILD.orig      2018-05-17 12:06:30.456501667 +0200
+++ PKGBUILD    2018-05-17 12:07:46.109555874 +0200
@@ -32,2 +32,4 @@
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  cd "${pkgdir}/usr/lib"
+  ln -s libjson-c.so libjson-c.so.3 # Dirty workaround for gimp (and maybe others) requiring libjson-c.so.3.
 }
Title: Re: [GIMP] 2.10.0 does not work
Post by: mandog on 17 May 2018, 13:56:30
gimp: error while loading shared libraries: libjson-c.so.3: cannot open shared object file: No such file or directory

The problem make a newest package of json-c 0.13.1 in artix, which provides libjson-c.so.4, but archlinux package contains only   0.13, wich provides libjson-c.so.3.

Solution (not exactly recommended) is: # ln -s /usr/lib64/libjson-c.so.4 /usr/lib64/libjson-c.so.3 - after gimp works normaly (tested gimp-2.10.0-5) or recompile gimp or downgrade artix package of json-c...

That works fine
Title: Re: [GIMP] 2.10.0 does not work
Post by: Dudemanguy on 17 May 2018, 19:58:15
You could also just force install json-c from core (of course, you'd have to ignore it on every update).

Actually this is interesting. The latest PKGBUILD in Arch is on 0.13.1 just like Artix, but it's not actually served in any publicly available repository. I didn't know they could do that. It fooled me too and I thought the versions were the same at first.