Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS

1,105 views
Skip to first unread message

AmateurCoder

unread,
Mar 11, 2013, 12:09:33 PM3/11/13
to rubyonra...@googlegroups.com
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.

Nicolas Desprès

unread,
Mar 11, 2013, 12:30:04 PM3/11/13
to rubyonra...@googlegroups.com
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

--
Nicolas Desprès

Colin Law

unread,
Mar 11, 2013, 12:32:24 PM3/11/13
to rubyonra...@googlegroups.com
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

AmateurCoder

unread,
Mar 11, 2013, 3:27:43 PM3/11/13
to rubyonra...@googlegroups.com
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?

AmateurCoder

unread,
Mar 11, 2013, 3:34:13 PM3/11/13
to rubyonra...@googlegroups.com, cla...@googlemail.com

Nicolas Desprès

unread,
Mar 11, 2013, 4:35:22 PM3/11/13
to rubyonra...@googlegroups.com
On Mon, Mar 11, 2013 at 8:27 PM, AmateurCoder <amateu...@insightbb.com> wrote:
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?
 
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?





On Monday, March 11, 2013 12:09:33 PM UTC-4, AmateurCoder wrote:
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.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/q3KtqtiU4RoJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Nicolas Desprès

Colin Law

unread,
Mar 11, 2013, 4:35:55 PM3/11/13
to rubyonra...@googlegroups.com
Is libssl-dev installed?

Colin

>
>
>
>
>
> On Monday, March 11, 2013 12:09:33 PM UTC-4, AmateurCoder wrote:
>>
>> 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.
>

Micha R.

unread,
May 29, 2013, 4:45:07 AM5/29/13
to rubyonra...@googlegroups.com
Colin Law wrote in post #1101136:
> On 11 March 2013 19:27, AmateurCoder <amateu...@insightbb.com>
> wrote:
>> Results logged to /tmp/ruby-build.20130311095340.2322.log
>> rake 0.9.6
>>
>>
>> It isn't clear to me how to tell rbenv to use this version of OpenSSL?
>
> Is libssl-dev installed?
>
> Colin

Thanks, installing libssl-dev worked for me (Rbenv on Ubuntu 12.04.2
LTS)
Micha

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages