Skip to content
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

Problem when installing pastec on ubuntu 18.04 #66

Open
hassanayoub85 opened this issue Jul 26, 2018 · 5 comments
Open

Problem when installing pastec on ubuntu 18.04 #66

hassanayoub85 opened this issue Jul 26, 2018 · 5 comments

Comments

@hassanayoub85
Copy link

Hi,
I followed the setup guide, When i run cmake .. it shows tthis error:

-- Could NOT find libjsoncpp (missing: LIBJSONCPP_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindCURL.cmake:48 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:47 (find_package)

-- Configuring incomplete, errors occurred!
See also "/root/pastec/build/CMakeFiles/CMakeOutput.log".
See also "/root/pastec/build/CMakeFiles/CMakeError.log".

@loge5
Copy link

loge5 commented Aug 17, 2018

I got under Arch Linux the similar problem that the libjsoncpp can not been included.
I did not spend much time, but found in src/requesthandler.cpp the following lines:

#ifndef __APPLE__
#include <jsoncpp/json/json.h>
#else
#include <json/json.h>
#endif

Under Arch the json.h is located here: usr/include/json/json.h
So I removed the "APPLE" handling and it compiles :)

(Under Arch I had also to install hdf5 first)

@bperel
Copy link

bperel commented Aug 17, 2018

I think that this is fixed by the #36 PR, but it was never merged

@loge5
Copy link

loge5 commented Aug 17, 2018

I tested #36 - for me, the changes doesn't fix the include.

@bperel
Copy link

bperel commented Aug 21, 2018

Maybe installing libcurl-dev would solve the problem then?

@ghost
Copy link

ghost commented Jun 13, 2019

apt install libcurl4-openssl-dev fixed this on my ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants