

Although the source of cmake is available in the Ubuntu standard warehouse, the version is too old. Like openssl, cmake also needs to be upgraded. Then enter openssl version to see the version number: openssl versionĪt this point, openssl is compiled successfully. The reason is that when the system looks for the keyword openssl, it first finds anaconda3 in the system environment variable, but Anaconda still uses the old openssl, So we need to replace it: ln -s /usr/bin/openssl /home/xxx/anaconda3/bin/openssl And if the user in the anaconda environment replaces / usr/bin/openssl above, after entering the openssl version, it will report xxxx/anaconda3/bin/openssl: there is no such file or directory. This is because / usr/lib is not added to libc Conf link configuration, just add it. Ln -s /usr/local/include/openssl /usr/include/opensslĮcho "/usr/lib" > /etc/ld.so.conf.d/nfīin/openssl: relocation error: bin/openssl: symbol EVP_mdc2 version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference You can select the above method to compile and then directly overwrite: ln -s /usr/local/bin/openssl /usr/bin/openssl
Update cmake linux verification#
It should be noted here that it is best not to directly remove openssl, because if the above is not configured, the subsequent verification of HTTPS network will fail. The main problem is to start or view the version number after compilation. Generally, there is no problem with the above. Although I seem to see 3 on the official website, too new is not necessarily good, so the following is based on 1.1.1k: # Download the openssl installation package and unzip it According to the online tutorial, it is generally 1.1.1k. For example, I enter openssl version on a server, and its version number is 1.0.2 in 2016: # openssl versionĪt present, openssl adapted to cmake is updated.

Here, the lower version refers to those below 1.1.0. Generally, openssl is updated because the host version is too old to be compatible with the new version of cmake. After going through some pits, open a blog to record it. There is a project that needs high versions of boost and cmake. So that's the purpose and summary of my blog post. Ld returned 1 exit status Utilities/cmcurl/CMakeFiles. If you encounter the following errors: collect2: error: ld returned 1 exit status
Update cmake linux install#
If you need to install a new version of cmake above 3.16, you generally need to upgrade OpenSSL, statically compile OpenSSL and use it as a cmake third-party library. CMake is a cross platform build tool, which can describe the compilation process of all platforms with simple statements.
Update cmake linux software#
OpenSSL is a fully functional software library, which contains open source implementations of transport layer security (TLS) and secure socket layer (SSL) protocols to protect information transmitted through computer networks.
