Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

I am having a problem installing Ruby 2.0.0-p0 using rbenv install on Ubuntu 12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on Virtualbox.

I am getting this error and the build is failing. I think I read that the new RubyGems requires https.

I have tried rbenv install --with-openssl-dir=/usr/bin, but with no success.

The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

My suspicion is that ruby-build isn’t finding system openssl.

Would anyone know how to fix this problem?

Thanks in advance.

Could you give us more hints on what you have done, please? Which steps did you follow? What errors did you get?

Start by telling us what you have when you type rbenv install 2.0.0-p0

I don't know about rbenv (I use rvm) but for rails with rvm you need
sudo apt-get install openssl

In fact the full set you need when using ror with rvm is, I believe
build-essential bison openssl libreadline6 libreadline6-dev curl git-core
zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf
libc6-dev ncurses-dev automake
libtool

Colin

I have rbenv and ruby-build installed.

$ rbenv install 2.0.0-p0

This downloads ruby 2.0.0-p0. It is not compiling and complains with the following error

BUILD FAILED

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

Last 10 log lines:
installing default gems: /home/scott/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
bigdecimal 1.2.0
io-console 0.4.2
json 1.7.7
minitest 4.3.2
psych 2.0.0
rake 0.9.6
rdoc 4.0.0
test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

OpenSSL is definitely installed on the system.

$ openssl version

OpenSSL 1.0.1 14 Mar 2012

It isn’t clear to me how to tell rbenv to use this version of OpenSSL?

I am having a problem installing Ruby 2.0.0-p0 using rbenv install on Ubuntu

12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on

Virtualbox.

I am getting this error and the build is failing. I think I read that the

new RubyGems requires https.

I have tried rbenv install --with-openssl-dir=/usr/bin, but with no success.

The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

My suspicion is that ruby-build isn’t finding system openssl.

Would anyone know how to fix this problem?

I don’t know about rbenv (I use rvm) but for rails with rvm you need

sudo apt-get install openssl

In fact the full set you need when using ror with rvm is, I believe

build-essential bison openssl libreadline6 libreadline6-dev curl git-core

zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf

libc6-dev ncurses-dev automake

libtool

Colin

I have rbenv and ruby-build installed.

$ rbenv install 2.0.0-p0

This downloads ruby 2.0.0-p0. It is not compiling and complains with the following error

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20130311095340.2322

Results logged to /tmp/ruby-build.20130311095340.2322.log

Last 10 log lines:
installing default gems: /home/scott/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)

                          bigdecimal 1.2.0
                          io-console 0.4.2
                          json 1.7.7
                          minitest 4.3.2
                          psych 2.0.0


                          rake 0.9.6
                          rdoc 4.0.0
                          test-unit 2.0.0.0

The last 10 log lines do not help. Can you send post the log file if it is not too long or send it to me?

I have rbenv and ruby-build installed.

$ rbenv install 2.0.0-p0

This downloads ruby 2.0.0-p0. It is not compiling and complains with the
following error

BUILD FAILED

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

Last 10 log lines:
installing default gems:
/home/scott/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0 (build_info, cache,
doc, gems, specifications)
                              bigdecimal 1.2.0
                              io-console 0.4.2
                              json 1.7.7
                              minitest 4.3.2
                              psych 2.0.0
                              rake 0.9.6
                              rdoc 4.0.0
                              test-unit 2.0.0.0

The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

OpenSSL is definitely installed on the system.

$ openssl version

OpenSSL 1.0.1 14 Mar 2012

It isn't clear to me how to tell rbenv to use this version of OpenSSL?

Is libssl-dev installed?

Colin

Colin Law wrote in post #1101136: