aws/aws-iot-device-sdk-cpp

Getting github access error while running cmake (AWS IoT C++ SSDK)

lsarangi1 opened this issue · 1 comments

I followed the steps to clone the repo and install the dependencies. However while trying to run cmake ../. from the build directory I get the following error:

$ cmake ../.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lopa/aws_iot/aws-iot-device-sdk-cpp/build/third_party/rapidjson/download
[ 11%] Performing download step for 'rapidjson'
Cloning into '.'...
ssh@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
CMakeFiles/rapidjson.dir/build.make:89: recipe for target 'rapidjson-prefix/src/rapidjson-stamp/rapidjson-download' failed
make[2]: *** [rapidjson-prefix/src/rapidjson-stamp/rapidjson-download] Error 128
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rapidjson.dir/all' failed
make[1]: *** [CMakeFiles/rapidjson.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
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)
tests/unit/CMakeLists.txt:59 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/lopa/aws_iot/aws-iot-device-sdk-cpp/build/CMakeFiles/CMakeOutput.log".
See also "/home/lopa/aws_iot/aws-iot-device-sdk-cpp/build/CMakeFiles/CMakeError.log".

Can someone please help ? I'm kind of stuck on this issue

I got this fixed..by fixing my .gitconfig to not use ssh.