-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 16 not supporting nlohmann/json? #2184
Comments
I am not maintaining that Ubuntu package nor do I know who does and how to update it. |
From https://packages.ubuntu.com/bionic/nlohmann-json-dev I see that @murinicanor could help here. |
I am the one who created the package for Debian, but that package was superseded by nlohmann-json3-dev (https://tracker.debian.org/pkg/nlohmann-json3). I don't have any knowledge about Ubuntu or how packages get there from the Debian repositories... |
Thank you all for your help! I will check it out tonight and let you know! |
Any news on this? |
Sadly nothing worked. I installed Ubuntu 20.04 today and tommorow I'll try the casual installation commands for nlohmann (if it's not already preinstalled or sth). |
Not a direct solution to the problem, but I installed Ubuntu 20.04 on my laptop and I successfully installed nlohmann3 so I guess that's something. I'll try to dig deeper onto the ubuntu 16 case tho. |
There may be a way to accomplish the goal by installing the package that is used by 18.04 bionic, either through pinning or an alternative. For installation options on past Ubuntu releases, see https://help.ubuntu.com/community/PinningHowto Please note that there isn't an Ubuntu Backport available at the time of writing to provide support on 16.04 xenial for nlohmann/json. Like Tsuyo99, I'm also experimenting with the potential solutions and will update with what I find. |
Given the package for 18.04 bionic wasn't tested on 16.04 xenial, it is probably advisable to heed the warnings on the PinningHowto page. Regardless, I was able to successfully install the 18.04 bionic package onto 16.04 xenial by setting up pinning and installing with apt-get install nlohmann-json-dev. Afterward I verified the installation by compiling a C++ program that includes json.hpp and deserializes a JSON input. Steps:
Good luck, reader. |
What do you want to achieve?
I would like to install nlohmann-json on ubuntu 16.04 vps server.
My ubuntu info: https://imgur.com/a/uq2kNZG
What have you tried?
Tried almost every nlohmann installation command (from what I could find online) to install it from the terminal but nothing wont work.
Can you provide a small code example?
https://imgur.com/a/G4sF7d5
Which compiler and operating system are you using?
My ubuntu info: https://imgur.com/a/uq2kNZG
I use vpsag.com for a vps server and vnc viewer to view my os.
Which version of the library did you use?
develop
branchI'm quite sure I used the dev package command.
P.S: I'm quite new to the whole nlohmann/json thing so I hope I provided you with enough information. I'm here for whatever else you may need!
Thanks in advance,
Thanos
The text was updated successfully, but these errors were encountered: