MisterTea / EternalTerminal

Re-Connectable secure remote shell
https://mistertea.github.io/EternalTerminal/
Apache License 2.0
3.02k stars 171 forks source link

Troubleshooting Installation on Centos 7 #388

Closed Overload119 closed 3 years ago

Overload119 commented 3 years ago

I ran into this error when running this command: scl enable devtoolset-8 'cmake3 ../

-- SENTRY_TRANSPORT=curl
-- SENTRY_BACKEND=breakpad
-- SENTRY_LIBRARY_TYPE=STATIC
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake3/Modules/FindCURL.cmake:169 (find_package_handle_standard_args)
  external/sentry-native/CMakeLists.txt:237 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/deployer/EternalTerminal/build/CMakeFiles/CMakeOutput.log".
See also "/home/deployer/EternalTerminal/build/CMakeFiles/CMakeError.log".

I resolved this with sudo yum install libcurl-devel

Then I got this error:

/home/deployer/EternalTerminal/external/cpp-httplib/httplib.h:222:2: error: #error Sorry, OpenSSL versions prior to 1.1.1 are not supported
 #error Sorry, OpenSSL versions prior to 1.1.1 are not supported

I used this guide to update my OpenSSL. https://cloudwafer.com/blog/installing-openssl-on-centos-7/

[deployer@sapco build]$ openssl version
OpenSSL 1.1.1c  28 May 2019
[deployer@sapco build]$ scl enable devtoolset-8 'make && sudo make install'
[ 16%] Built target breakpad_client
[ 18%] Built target generated-code
[ 18%] Building CXX precompiled header cotire/TerminalCommon_CXX_prefix.hxx.gch
In file included from /home/deployer/EternalTerminal/src/base/Headers.hpp:7,
                 from /home/deployer/EternalTerminal/build/cotire/TerminalCommon_CXX_prefix.cxx:4,
                 from /home/deployer/EternalTerminal/build/cotire/TerminalCommon_CXX_prefix.hxx:4:
/home/deployer/EternalTerminal/external/cpp-httplib/httplib.h:222:2: error: #error Sorry, OpenSSL versions prior to 1.1.1 are not supported
 #error Sorry, OpenSSL versions prior to 1.1.1 are not supported
  ^~~~~
CMake Error at external/cotire/CMake/cotire.cmake:1990 (message):
  cotire: error 1 precompiling
  /home/deployer/EternalTerminal/build/cotire/TerminalCommon_CXX_prefix.hxx.
Call Stack (most recent call first):
  external/cotire/CMake/cotire.cmake:3694 (cotire_precompile_prefix_header)

make[2]: *** [CMakeFiles/TerminalCommon.dir/build.make:84: cotire/TerminalCommon_CXX_prefix.hxx.gch] Error 1
make[1]: *** [CMakeFiles/Makefile2:593: CMakeFiles/TerminalCommon.dir/all] Error 2
make: *** [Makefile:183: all] Error 2
[deployer@sapco build]$

This is as far as I got. For some reason the SSL version is still not up to date.

MisterTea commented 3 years ago

When you run cmake, you need to manually override the curl variables so they point to your new installation:

https://cmake.org/cmake/help/latest/module/FindCURL.html

Overload119 commented 3 years ago

error Sorry, OpenSSL versions prior to 1.1.1 are not supported

This is actually the last error I got.

MisterTea commented 3 years ago

Can you try using the new vcpkg way of building?

MisterTea commented 3 years ago

https://github.com/MisterTea/EternalTerminal/blob/master/.github/workflows/vcpkg_build.yml