Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

jsoncpp issue in Debian/Ubuntu distros #3

Closed
ghost opened this issue Jul 21, 2019 · 4 comments
Closed

jsoncpp issue in Debian/Ubuntu distros #3

ghost opened this issue Jul 21, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2019

I have trouble building DisCpp, or with the json library. I get an error that says I don't have the json.h file, and it isn't on json's releases. I have also tried compiling json myself to see if I could get the file, but still there's only json.hpp.

My system is an Acer Aspire One D270; Debian 9.

@consnop
Copy link

consnop commented Jul 21, 2019

I think what you need is libjsoncpp-dev

@SeungheonOh
Copy link
Owner

SeungheonOh commented Jul 21, 2019

https://www.reddit.com/r/unixporn/comments/cfd64p/oc_new_cli_discord_client_discpp_that_is_purely/eu9xh70?utm_source=share&utm_medium=web2x
Seems like it's the problem with apt package manager, therefore you can link then the the directory where it should be.
Also if you are not comfortable with linking files, you can add flags to Makefile, to your directory of jsoncpp! Hope this works!

@SeungheonOh SeungheonOh pinned this issue Jul 21, 2019
@SeungheonOh SeungheonOh unpinned this issue Jul 21, 2019
@SeungheonOh SeungheonOh pinned this issue Jul 21, 2019
@SeungheonOh SeungheonOh changed the title How to install those external libraries? jsoncpp issue in Debian/Ubuntu distros Jul 21, 2019
@ghost
Copy link
Author

ghost commented Jul 22, 2019

@zilrich

root@shibe-debian:/home/geniek/Desktop# apt install libjsoncpp-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libjsoncpp-dev is already the newest version (1.7.4-3).
The following packages were automatically installed and are no longer required:
[A VEEERY LONG LIST]
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@shibe-debian:/home/geniek/Desktop# 

@ghost
Copy link
Author

ghost commented Jul 22, 2019

Fixed it with for file in $(fgrep -rl "<json/json.h>"); do sed -i "s/<json\/json.h>/<jsoncpp\/json\/json.h>/" $file; done.

@ghost ghost closed this as completed Jul 22, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants