Skip to content

make install: json.hpp: No such file or directory #4

@pdurbin

Description

@pdurbin

I'm on commit 7c43093 on CentOS 7 in Vagrant (here's my Vagrantfile) and when I run sudo make install as explained in the README, it fails with fatal error: json.hpp: No such file or directory as shown below. Did I miss a step? A dependency?

[vagrant@standalone prov-cpl]$ cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 
[vagrant@standalone prov-cpl]$ sudo make install
  CXX     cpl-standalone/build/release/cpl-standalone.o
In file included from cpl-private.h:38:0,
                 from cpl-standalone.cpp:36:
cpl-standalone/../include/cplxx.h:50:20: fatal error: json.hpp: No such file or directory
 #include <json.hpp>
                    ^
compilation terminated.
make[3]: *** [build/release/cpl-standalone.o] Error 1
make[2]: *** [build/release/cpl-standalone.o] Error 2
make[1]: *** [release] Error 2
make: *** [install] Error 1
[vagrant@standalone prov-cpl]$ 

I suspect the project might be using https://github.com/nlohmann/json because I'm seeing some references to it. For example, nlohmann_json is mentioned under "Please make sure that the following packages are installed" at

prov-cpl/INSTALL.Linux

Lines 16 to 23 in 7c43093

Please make sure that the following packages are installed:
unixodbc
unixodbc-dev
odbcinst
odbc-postgresql (for PostgreSQL)
nlohmann_json
boost
but I'm not sure how to install it. Can the docs be clarified, please? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions