5

I'm trying to compile emacs 28.2 (from https://ftp.gnu.org/gnu/emacs/) with json support on a Ubuntu-based system (Linux Mint). But I don't get it to work meaning that json-available-p is void and I cannot use the json-parse-string function.

I installed the libjansson-dev library and added --with-json as a parameter to configure. It shows Does Emacs use -ljansson? yes. But within emacs the json-support is not working. What else do I need or am I missing something?

6
  • 1
    @phils Ohh, yes! Thanks. I updated the problem ;-)
    – dmw64
    Commented Nov 30, 2022 at 10:15
  • 1
    When you do ldd `which emacs` | grep jans does libjansson show up? If not, you're going to have to recompile.
    – g-gundam
    Commented Nov 30, 2022 at 14:17
  • Also, out of curiosity, what happens when you do (require 'json) in your current emacs?
    – g-gundam
    Commented Nov 30, 2022 at 14:21
  • @g-gundam No, ldd which emacs` | grep jans` is empty. Not sure why since configure showing jansson to be used... Using (require 'json) does not complain and returns json.
    – dmw64
    Commented Dec 1, 2022 at 8:22
  • How did you start Emacs. Are you sure that you are using the newly built Emacs? Commented Dec 1, 2022 at 9:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.