I am failing to build Ruby 2.3.1 on my version of Ubuntu that I just set up. Here is my error message:
goose@HP-Spectre-x360-Convertible:~$ rbenv install 2.3.1
Installing ruby-2.3.1…
BUILD FAILED (Ubuntu 18.04 using ruby-build 20180618-5-gad8f3a4)
Inspect or clean up the working tree at /tmp/ruby-build.20180711133240.24908
Results logged to /tmp/ruby-build.20180711133240.24908.log
Last 10 log lines:
installing rdoc: /home/goose/.rbenv/versions/2.3.1/share/ri/2.3.0/system
installing capi-docs: /home/goose/.rbenv/versions/2.3.1/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:
–prefix=/home/goose/.rbenv/versions/2.3.1
LDFLAGS=-L/home/goose/.rbenv/versions/2.3.1/lib
CPPFLAGS=-I/home/goose/.rbenv/versions/2.3.1/include
However, when I install libSSL as directed, I get the same error message when I try to build Ruby.
Any help is appreciated!