Skip to content

"error: 'RSA_SSLV23_PADDING' undeclared" while installing Ruby 2.6.5 on Ubunut 24.04 despite explicitly using OpenSSL 1.1 #2381

Discussion options

You must be logged in to vote

Hi, are you using a recent version of ruby-build?

export CONFIGURE_OPTS="--with-open-ssl-dir=$RBENV_ROOT/deps/lib/openssl"

I see two potential problems here. First is that --with-openssl-dir flag was misspelled (there was an extra dash). Second is that it should be export RUBY_CONFIGURE_OPTS=... instead of just CONFIGURE_OPTS to ensure that the flags only apply to Ruby and not to compiling any other software.

If you are using an older version of ruby-build, then explicitly setting this might help:

export PKG_CONFIG_PATH="$RBENV_ROOT/deps/lib/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"

Ref. #2125 (comment)

Newer versions of ruby-build automatically set this for you to help with compiling Rub…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BrainStone
Comment options

Answer selected by BrainStone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants