Content
You are here:
Installation on AlmaLinux Fails on OpenSSL Version
Added by Steve Kiss almost 2 years ago
Hi there,
Trying to deploy OperProject on AlmaLinux 9 and I am stumped on an SSL error. It seems to related to the version of SSL Ruby is expecting.
The initial error message showed:
[openproject] ./bin/postinstall
rake aborted!
LoadError: libssl.so.1.1: cannot open shared object file: No such file or directory - /opt/openproject/vendor/ruby-3.1.2/lib/ruby/3.1.0/x86_64-linux/openssl.so
I tried to solve the problem by linking to libssl.so:
ln -s libssl.so libssl.so.1.1
This gives the same error but for libcrypto.
LoadError: libcrypto.so.1.1: cannot open shared object file: No such file or directory - /opt/openproject/vendor/ruby-3.1.2/lib/ruby/3.1.0/x86_64-linux/openssl.so
Tried another link:
ln -s libcrypto.so libcrypto.so.1.1
Now getting this:
LoadError: /lib64/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /opt/openproject/vendor/ruby-3.1.2/lib/ruby/3.1.0/x86_64-linux/openssl.so) - /opt/openproject/vendor/ruby-3.1.2/lib/ruby/3.1.0/x86_64-linux/openssl.so
My OpenSSL version is:
openssl version
OpenSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec 2021)
Seems that Ruby wants version 1.1. I'd prefer not to install an older version as we have other sites on this server.
Any suggestions on how to solve this?
Replies (4)
Solved this by manually compiling OpenSSL 1.1 in a different location and linking libssl.so.1.1 and libcrypto.so.1.1 to the new location.
Hi,
I'm facing the same problem as you on a Debian. Can you tell me how you solved the problem.
Here is the initial problem
LoadError: libssl.so.1.1: cannot open shared object file: No such file or directory - /opt/openproject/vendor/ruby-3.2.1/lib/ruby/3.2.0/x86_64-linux/openssl.so
<internal:/opt/openproject/vendor/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
Like you, I installed an old version of OpenSSL here
/opt/openssl/openssl-1.1.1u/
I've created symbolic links, but in my opinion not in the right place
/opt/openproject/vendor/ruby-3.2.1/lib/ruby/3.2.0/x86_64-linux/libcrypto.so.1.1 -> /opt/openssl/openssl-1.1.1u/libcrypto.so.1.1
and
/opt/openproject/vendor/ruby-3.2.1/lib/ruby/3.2.0/x86_64-linux/libssl.so.1.1 -> /opt/openssl/openssl-1.1.1u/libssl.so.1.1
but I still get the same error.
Can you tell me how and where you created your symbolic links?
Thank you very much.
I managed to install it on Debian 12 by adding the old stable repository to the apt sources:
Then just installed
libssl1.1
.The simplest solution is to install the compat-libssl11 package on Almalinux with
sudo dnf install compat-libssl11