rbenv 构建在 Ubuntu 14.04 上失败 [英] rbenv build failed on Ubuntu 14.04

查看:69
本文介绍了rbenv 构建在 Ubuntu 14.04 上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 Ubuntu 14.04 桌面上成功安装了 rbenv(以及构建工具),这似乎工作正常,但是一旦我尝试安装 ruby​​ 2.1.1,构建就会失败:

I've successfully installed rbenv (along with the build tools) on my Ubuntu 14.04 desktop, and that appears to be working fine, but as soon as I try to install ruby 2.1.1, the build fails:

daniel@grape:~$ rbenv install 2.1.1
Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /home/daniel/.rbenv/versions/2.1.1

Downloading ruby-2.1.1.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2
Installing ruby-2.1.1...

BUILD FAILED

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

Last 10 log lines:
installing default ripper libraries
compiling ossl_pkcs7.c
compiling ossl_ssl.c
installing default openssl libraries
linking shared-object openssl.so
make[2]: Leaving directory `/tmp/ruby-build.20140418142258.3543/ruby-2.1.1/ext/openssl'
linking shared-object ripper.so
make[2]: Leaving directory `/tmp/ruby-build.20140418142258.3543/ruby-2.1.1/ext/ripper'
make[1]: Leaving directory `/tmp/ruby-build.20140418142258.3543/ruby-2.1.1'
make: *** [build-ext] Error 2

日志文件的内容可以在这里找到:http://pastebin.com/SXxTeCJY

The contents of the log file can be found here: http://pastebin.com/SXxTeCJY

我已经搜索了一些关于这个问题的帮助,包括遵循这里所说的:https://github.com/sstephenson/ruby-build/wiki - 但我没有任何乐趣.

I've done some searching for help with this issue, including following what is said here: https://github.com/sstephenson/ruby-build/wiki - but I've not had any joy.

推荐答案

UPDATE:使用 Ruby 2.1.2,它修复了这个问题.

UPDATE: Use Ruby 2.1.2, it fixes this issue.

14.04 可能与 readline 6.3 一起发布,它使用 rl_hook_func_t 而不是 Function.

14.04 is probably shipping with readline 6.3, which uses rl_hook_func_t instead of Function.

此错误已在 Ruby 中报告并修复 (https://bugs.ruby-lang.org/issues/9578),但尚未发布.

This bug has already been reported and fixed in Ruby (https://bugs.ruby-lang.org/issues/9578), but not released yet.

在 Ruby 2.1.2 发布之前(我认为它将包含此修复程序),您可以使用 补丁 正确支持新的 rl_hook_func_t 方法.使用它来安装 Ruby 2.1.1:

Until Ruby 2.1.2 comes out (which I assume will contain this fix), you can use a patch to properly support the new rl_hook_func_t method. Use this to install Ruby 2.1.1:

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

(来源:http://gorails.com/setup/ubuntu/14.04)

这篇关于rbenv 构建在 Ubuntu 14.04 上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆