Skip to main content
Topic: [GIMP] 2.10.0 does not work (Read 2450 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[GIMP] 2.10.0 does not work

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...

Re: [GIMP] 2.10.0 does not work

Reply #1
Same problem here.

Can Artix' developers include the older libjson-c.so into system/json-c? Otherwise, things break ...

Re: [GIMP] 2.10.0 does not work

Reply #2
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.
 }

Re: [GIMP] 2.10.0 does not work

Reply #3
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

Re: [GIMP] 2.10.0 does not work

Reply #4
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.