4

After downloading and extracting Geany's JSON Prettifier, and installing yajl, the make command does raise this error:

/bin/sh: 1: pkg-config: not found
./geany_json_prettifier.c:32:25: fatal error: geanyplugin.h: No such file or directory
compilation terminated.
Makefile:16: recipe for target 'build' failed
make: *** [build] Error 1

What is left in the system's configuration or Makefile to make it work?

Update: under Lubuntu 16.04.

4
  • Please add to your question Unix version/Linux distribution you are using and version. Commented May 7, 2017 at 15:24
  • @RuiFRibeiro Done: Lubuntu 16.04 Commented May 7, 2017 at 15:30
  • Does apt install geany-plugin-devhelp solves your problem? Not quite sure about it. Commented May 7, 2017 at 16:42
  • @RuiFRibeiro Not really, the error persists after this install. JSON Prettifier is a third-party plugin, you have to deal with it on your own. Commented May 8, 2017 at 6:56

3 Answers 3

2

Not exactly the answer, but: You can use external formatter: Edit > Format > Send Selection to > Set Custom Command like python -m json.tool

idea stolen from

2

Try with :

apt install libgtk2.0-dev

That's working for me

2

using ubuntu 20.10 and geany is gtk3 oriented, libgtk2.0-dev doesn't work so install libgtk-3-dev instead:

sudo apt-get install build-essential libgtk-3-dev

from here

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.