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

Can't build on Ubuntu 18.04 (bionic64) #1199

kewubenduben opened this Issue Apr 28, 2018 · 5 comments


None yet
6 participants

kewubenduben commented Apr 28, 2018

I'm getting this error.

➜  REPO git:(develop) rbenv install
Downloading ruby-2.3.4.tar.bz2...
Installing ruby-2.3.4...

BUILD FAILED (Ubuntu 18.04 using ruby-build 20180424)

Inspect or clean up the working tree at /tmp/ruby-build.20180428105931.21933
Results logged to /tmp/ruby-build.20180428105931.21933.log

Last 10 log lines:
installing rdoc:              /home/vagrant/.rbenv/versions/2.3.4/share/ri/2.3.0/system
installing capi-docs:         /home/vagrant/.rbenv/versions/2.3.4/share/doc/ruby
The Ruby openssl extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libssl-dev` to fetch missing dependencies.

Configure options used:
➜  REPO git:(develop) 

Even though I have libssl-dev package installed.

➜  REPO git:(develop) sudo apt install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version (1.1.0g-2ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
➜  REPO git:(develop)

This comment has been minimized.

tristanrobert commented Apr 29, 2018

Ruby < 2.4 is not compatible with openssl 1.1.
You need to install libssl1.0-dev.

@hsbt hsbt closed this May 5, 2018


This comment has been minimized.

moa7ed commented May 16, 2018

@tristanrobert Million thanks it solved my problem.


This comment has been minimized.

MisterEnzo commented May 30, 2018

@tristanrobert @hsbt Thanks guys this solved the issue for me.


This comment has been minimized.

GoodJob commented Jun 15, 2018

Here is how to install older package with apt-get:

sudo apt-cache policy libssl-dev

Installed: (none)
Version table: 500
500 xenial/main amd64 Packages
1.0.2g-1ubuntu4.12 500
500 xenial-updates/main amd64 Packages
500 xenial-security/main amd64 Packages
1.0.2g-1ubuntu4 500
500 xenial/main amd64 Packages

Choose an older version from table, for me it worked with:

sudo apt-get install libssl-dev=1.0.2g-1ubuntu4.12

Thanks to @tristanrobert

rclarkburns added a commit to castiron/puppet-rbenv that referenced this issue Jul 17, 2018

[B] Install libssl1.0-dev for Ubuntu 18.04
Ruby <= 2.4 is not compatible with openssl 1.1 installed on Ubuntu 18.04
by default. (rbenv/ruby-build#1199)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment