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 Answers1

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

Daddy the Runner
  • 391
  • 2
  • 10
  • 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](https://stackoverflow.com/questions/16248775/cmake-not-able-to-find-openssl). – 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