0

I have used link1 and link2 and keep getting errors on cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release.

Error:

CMake Error at /usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.6/Modules/FindOpenSSL.cmake:380 (find_package_handle_standard_args)
src/cpp/core/CMakeLists.txt:204 (find_package)

CMakeError.log:

Determining if the function getpeereid exists failed with the following output:
Change Dir: /home/pi/Downloads/rstudio/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_d7cd2/fast"
/usr/bin/make -f CMakeFiles/cmTC_d7cd2.dir/build.make 
CMakeFiles/cmTC_d7cd2.dir/build
make[1]: Entering directory '/home/pi/Downloads/rstudio/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d7cd2.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=getpeereid   -o 
CMakeFiles/cmTC_d7cd2.dir/CheckFunctionExists.c.o   -c /usr/share$
Linking C executable cmTC_d7cd2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d7cd2.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=getpeereid    
CMakeFiles/cmTC_d7cd2.dir/CheckFunctionExists.c.o  -o cmTC_d7cd2 -rd$
CMakeFiles/cmTC_d7cd2.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x14): undefined reference to `getpeereid'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_d7cd2.dir/build.make:97: recipe for target 'cmTC_d7cd2' failed
make[1]: *** [cmTC_d7cd2] Error 1
make[1]: Leaving directory '/home/pi/Downloads/rstudio/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d7cd2/fast' failed
make: *** [cmTC_d7cd2/fast] Error 2
  • 1
    And... what is the question? – Bex Jul 10 '17 at 7:36
0

The second line of your error message tells you that you need OpenSSL If it's already installed then set the environment variables as mentioned in the error message. Otherwise you need to install OpenSSL

  • Thank you. OpenSSL is already installed (I forgot to mention that I had already checked). I had forgotten to Google the error. I will try for now what I found at StackOverflow. – n8atkinson Jul 11 '17 at 14:50
  • I tried what I could understand (the basic install suggestions), but I am confused on the context of the environment variables. What files and I supposed to edit? – n8atkinson Jul 11 '17 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.