Error with `rbenv install 2.2.0`

Try Setting Up Ruby On Rails on Ubuntu 14.04 Trusty Tahr

Console Error:

rbenv install 2.2.0 Downloading ruby-2.2.0.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc Installing ruby-2.2.0... BUILD FAILED (Ubuntu 14.04 using ruby-build 20150112) Inspect or clean up the working tree at /tmp/ruby-build.20150113142305.19357 Results logged to /tmp/ruby-build.20150113142305.19357.log Last 10 log lines: compiling ossl_digest.c compiling ossl_x509name.c compiling ossl_bio.c compiling ossl_config.c compiling ossl_asn1.c installing default openssl libraries linking shared-object openssl.so make[2]: Leaving directory `/tmp/ruby-build.20150113142305.19357/ruby-2.2.0/ext/openssl' make[1]: Leaving directory `/tmp/ruby-build.20150113142305.19357/ruby-2.2.0' make: *** [build-ext] Error 2 

The ruby-build.20150113142305.19357.log log file.

+6
source share
4 answers

Ruby 2.2.0 requires the devel version of libffi, so this should help:

sudo apt-get install libffi-dev

+15
source

I tried to answer Tomáš Dundáček, but that did not work for me. I have to install the following to make it work.

 sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev 
0
source

As a note: I had this problem with rbenv install 2.2.1 (and the libffi-dev installation was resolved), but not with version 2.2.2, which is currently missing. You should use the latest hotfix anyway to resolve this issue. I am interested to know if I have the only problem with 2.2.1, not 2.2.2.

0
source

I think I would add this here, as the error is the same, but the reason is different (OpenSSL). The only thing that worked (after several hours of trying a bunch of things) was to uninstall the old version of OpenSSL using homebrew.

0
source

Source: https://habr.com/ru/post/980908/


All Articles