Error in OpenSSL when compiling code locally for raspberry pie
Error content
/usr/lib/gcc/arm-linux-gnueabihf/6/../../../libcurl.so: undefined reference to `SSL_CTX_set_keylog_callback@OPENSSL_1_1_1'
/usr/lib/gcc/arm-linux-gnueabihf/6/../../../libcurl.so: undefined reference to `SSL_CTX_set_post_handshake_auth@OPENSSL_1_1_1'
/usr/lib/gcc/arm-linux-gnueabihf/6/../../../libcurl.so: undefined reference to `SSL_CTX_set_ciphersuites@OPENSSL_1_1_1'
Raspberry pie still reports an error when querying the OpenSSL version number locally
openssl version
Error content:
openssl: /usr/lib/arm-linux-gnueabihf/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by openssl)
openssl: /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by openssl)
Problem source:
After inquiry, it is mainly LD_LIBRARY_environment variable path is not specified, so OpenSSL is using the old system OpenSSL library
Solution:
Temporary solution: the terminal enters the following command to temporarily add the environment variables of OpenSSL library, but this method can only ensure that the current terminal is valid. If a new terminal is opened, an error will still be reported
export LD_LIBRARY_PATH=/usr/local/lib
Permanent solution: modify the. Bashrc hidden file in the working directory, taking raspberry pie as an example
vi /home/pi/.bashrc
export LD_LIBRARY_PATH=/usr/local/lib
source .bashrc
sudo reboot
You can also enter the following command
echo "export LD_LIBRARY_PATH=/usr/local/lib" >> ~/.bashrc
After completing the above series of operations, you can enter the following commands to check whether it is normal
pi@raspberrypi:~ $ openssl
OpenSSL> version
OpenSSL 1.1.1l 24 Aug 2021
OpenSSL> q
Finally, the problem is solved and the compiled code is an error
Read More:
- How to set fixed IP address for Raspberry Pie
- Error in compiling Android AOSP by Ubantu [How to Solve]
- [Solved] Raspberry Pi Error: You don’t have enough free space in /var/cache/apt/archives/
- ERROR: configuration failed for package ‘openssl’ [How to Solve]
- How to open X Display on the server side (locally operable remote interface)
- [Solved] Git Error: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- [Solved] fatal error: openssl/hmac.h: No such file or directory
- [Solved] openssl error: libcrypto.so.1.0.0: cannot open shared object file: Error 40
- [Solved] Raspberry Pi Error: VNC error “No configured security type is supported by 3.3 VNC Viewer“
- [Solved] ubuntu Run jupyter Error: print(‘Error in generated code:‘, file=sys.stderr) SyntaxError: invalid syntax
- [Solved] Git Error: OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- How to Solve Mujoco Install Error in Ubuntu (Pycharm Run Error)
- [Solved] Clone Linux Code Error: server certificate verification failed. CAfile: none CRLfile: none
- Solutions to errors in installing xunsearch engine in centos8.0
- [Solved] UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 3-9: ordinal not in range(128)
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation