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

rbenv fails to install 2.1.0 on ubuntu 14.04 #528

Closed
mspanc opened this Issue Mar 18, 2014 · 11 comments

Comments

Projects
None yet
9 participants
@mspanc

mspanc commented Mar 18, 2014

rbenv fails to install 2.1.0 on ubuntu 14.04

Output:

$ rbenv install 2.1.0
Downloading yaml-0.1.5.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/24f6093c1e840ca5df2eb09291a1dbf1
Installing yaml-0.1.5...
Installed yaml-0.1.5 to /home/marcin/.rbenv/versions/2.1.0

Downloading ruby-2.1.0.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/9e6386d53f5200a3e7069107405b93f7
Installing ruby-2.1.0...



BUILD FAILED

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

Last 10 log lines:
compiling ossl_pkey_dsa.c
compiling ossl_bn.c
compiling ossl_engine.c
compiling ossl_x509attr.c
compiling ossl.c
installing default openssl libraries
linking shared-object openssl.so
make[2]: Opuszczenie katalogu `/tmp/ruby-build.20140318155530.23511/ruby-2.1.0/ext/openssl'
make[1]: Opuszczenie katalogu `/tmp/ruby-build.20140318155530.23511/ruby-2.1.0'
make: *** [build-ext] Błąd 2

Log:
https://gist.github.com/saepia/9621808

I've checked as suggested here: rbenv/rbenv#565 (comment) and I have all packages in place.

@hsbt

This comment has been minimized.

Show comment
Hide comment
@hsbt

hsbt Mar 19, 2014

Contributor

Please use Ruby 2.1.1 or this instructions

Contributor

hsbt commented Mar 19, 2014

Please use Ruby 2.1.1 or this instructions

@mislav

This comment has been minimized.

Show comment
Hide comment
@mislav

mislav Mar 19, 2014

Member

@hsbt So those instructions are not necessarily exclusively for Fedora/Red Hat, but depending on the OpenSSL version on the system? I should rename the heading on the wiki then

Member

mislav commented Mar 19, 2014

@hsbt So those instructions are not necessarily exclusively for Fedora/Red Hat, but depending on the OpenSSL version on the system? I should rename the heading on the wiki then

@hsbt

This comment has been minimized.

Show comment
Hide comment
@hsbt

hsbt Mar 19, 2014

Contributor

@mislav @saepia oh. I'm sorry. I missed failure logs. this error caused by readline-6.3. Related to #526

Contributor

hsbt commented Mar 19, 2014

@mislav @saepia oh. I'm sorry. I missed failure logs. this error caused by readline-6.3. Related to #526

@mislav

This comment has been minimized.

Show comment
Hide comment
@mislav

mislav Mar 19, 2014

Member

@saepia Can you try applying the patch as described in #526 (comment) and report if it helps? I tried the patch with Ruby 2.1.1 but it should probably work with 2.1.0 as well

Member

mislav commented Mar 19, 2014

@saepia Can you try applying the patch as described in #526 (comment) and report if it helps? I tried the patch with Ruby 2.1.1 but it should probably work with 2.1.0 as well

@PaulOstazeski

This comment has been minimized.

Show comment
Hide comment
@PaulOstazeski

PaulOstazeski Mar 26, 2014

@mislav I updated the patch to apply to 2.1.0 here, and it built. Thanks!

It's a trivial repackaging of your patch.

PaulOstazeski commented Mar 26, 2014

@mislav I updated the patch to apply to 2.1.0 here, and it built. Thanks!

It's a trivial repackaging of your patch.

@mislav mislav added the x-platform label Apr 5, 2014

@xicreative

This comment has been minimized.

Show comment
Hide comment
@xicreative

xicreative Apr 8, 2014

@PaulOstazeski I believe there's a typo in your patch... I had to change r1_hook_func_t to rl_hook_func_t to get it to compile 2.1.1

xicreative commented Apr 8, 2014

@PaulOstazeski I believe there's a typo in your patch... I had to change r1_hook_func_t to rl_hook_func_t to get it to compile 2.1.1

@orendon

This comment has been minimized.

Show comment
Hide comment
@orendon

orendon May 1, 2014

thanks @mislav curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1 works on ubuntu 14.04

orendon commented May 1, 2014

thanks @mislav curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1 works on ubuntu 14.04

@hsbt

This comment has been minimized.

Show comment
Hide comment
@hsbt

hsbt May 9, 2014

Contributor

Ruby 2.1.2 is released now. Please build it.

Contributor

hsbt commented May 9, 2014

Ruby 2.1.2 is released now. Please build it.

@hsbt hsbt closed this May 9, 2014

@rusllonrails

This comment has been minimized.

Show comment
Hide comment
@rusllonrails

rusllonrails Jul 10, 2014

yeah, 2.1.2 works nice 👍

curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.2

rusllonrails commented Jul 10, 2014

yeah, 2.1.2 works nice 👍

curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.2
@g-ilham

This comment has been minimized.

Show comment
Hide comment
@g-ilham

g-ilham Jul 10, 2014

fix the problem:

curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.2

g-ilham commented Jul 10, 2014

fix the problem:

curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.2

@chrosciu

This comment has been minimized.

Show comment
Hide comment
@chrosciu

chrosciu Oct 13, 2014

If somebody still needs 2.1.0 version, then I prepared fixed version patch from @PaulOstazeski according to @xicreative notice.

curl -fsSL https://gist.githubusercontent.com/chrosciu/daa47f611104e6929c35/raw/a5054f2b3595c6464c280dd328ee03b9563f8c3c/readline.patch | rbenv install --patch 2.1.0

Works at least in Linux Mint 17 (and should also in Ubuntu 14.04)

chrosciu commented Oct 13, 2014

If somebody still needs 2.1.0 version, then I prepared fixed version patch from @PaulOstazeski according to @xicreative notice.

curl -fsSL https://gist.githubusercontent.com/chrosciu/daa47f611104e6929c35/raw/a5054f2b3595c6464c280dd328ee03b9563f8c3c/readline.patch | rbenv install --patch 2.1.0

Works at least in Linux Mint 17 (and should also in Ubuntu 14.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment