pastec icon indicating copy to clipboard operation
pastec copied to clipboard

Problem when installing pastec on ubuntu 18.04

Open hassanayoub85 opened this issue 5 years ago • 5 comments

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".

hassanayoub85 avatar Jul 26 '18 00:07 hassanayoub85

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)

loge5 avatar Aug 17 '18 12:08 loge5

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

bperel avatar Aug 17 '18 13:08 bperel

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

loge5 avatar Aug 17 '18 13:08 loge5

Maybe installing libcurl-dev would solve the problem then?

bperel avatar Aug 21 '18 11:08 bperel

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

ghost avatar Jun 13 '19 01:06 ghost