Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.2.4 build fails on arch linux with openssl 1.0.2 #1094

Closed
tom-mayer opened this issue Jun 8, 2017 · 3 comments
Closed

Ruby 2.2.4 build fails on arch linux with openssl 1.0.2 #1094

tom-mayer opened this issue Jun 8, 2017 · 3 comments

Comments

@tom-mayer
Copy link

tom-mayer commented Jun 8, 2017

ruby-build.log.zip

Hey,

I'm trying to build ruby 2.2.4 on arch linux. I have openssl-1.1 and openssl-1.0 packages installed on my system.
Openssl 1.0 is located in /usr/lib/openssl-1.0.

Since 2.2.x requires openssl-1.0 I tried installing it like this:

PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
rbenv install 2.2.4

When I look through the attached logfile, there are a lot of warnings around openssl_pkey.h. Am I doing something wrong to build Ruby agains the openssl-1.0 lib?

Cheers

@tom-mayer
Copy link
Author

For completeness:

PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
CFLAGS+=" -I/usr/include/openssl-1.0"
LDFLAGS+=" -L/usr/lib/openssl-1.0 -lssl"
rbenv install 2.2.4

setting the compiler flags explicitely solved the issue for me (for the record: I don't know what PKG_CONFIG_PATH is or what it does, or if it is even needed, might also be some rvm specific thing)

@juxtin
Copy link

juxtin commented Nov 14, 2017

The above didn't quite work for me, but this did:

export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig;
export CFLAGS="$CFLAGS -I/usr/include/openssl-1.0";
export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0 -lssl";
rbenv install 2.2.4

@diegomorg
Copy link

diegomorg commented Oct 4, 2019

@juxtin It worked for me. Tks!! 👏
Ruby 2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants