<strong>Root Cause Analysis</strong>
- Incorrect LDLIBRARYPATH: The environment variable
LD_LIBRARY_PATH
was incorrectly set to/usr/local/openssl-3.4/lib
instead of/usr/local/openssl-3.4/lib64
. - Path Conflicts: The old OpenSSL version was still visible in the system path, causing conflicts.
Steps Taken to Resolve the Issue
- Identified the Incorrect LDLIBRARYPATH:
- The
LD_LIBRARY_PATH
was initially set as follows:
export LD_LIBRARY_PATH=/usr/local/openssl-3.4/lib:$LD_LIBRARY_PATH
- This was corrected to:
export LD_LIBRARY_PATH=/usr/local/openssl-3.4/lib64:$LD_LIBRARY_PATH
- The
- Resolved Path Conflicts:
- The system path was checked and found to contain multiple entries for the new OpenSSL version:
# echo $PATH /usr/local/openssl-3.4/bin:/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/openssl-3.4/bin:/usr/local/openssl-3.4/bin
- The
/etc/bashrc
file was edited to correctly set the path:
vi /etc/bashrc
- The path was rearranged as follows:
PATH=/usr/local/openssl-3.4/bin:$PATH LD_LIBRARY_PATH=/usr/local/openssl-3.4/lib64:$LD_LIBRARY_PATH export PATH LD_LIBRARY_PATH
- The changes were applied by sourcing the
bashrc
file:
# source /etc/bashrc
- Verified the New Path:
- The new path was confirmed to be:
# echo $PATH /root/.local/bin:/root/bin:/usr/local/openssl-3.4/bin:/usr/local/openssl-3.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
- Tested the OpenSSL Installation:
- The
openssl version
command was run to verify the installation:bash
# openssl version
OpenSSL 3.4.0 22 Oct 2024 (Library: OpenSSL 3.4.0 22 Oct 2024)
- The
Tech Junction Edited answer 1 day ago