【问题标题】:Compile Ruby Enterprise Edition on Mac OS X在 Mac OS X 上编译 Ruby 企业版
【发布时间】:2010-12-13 21:16:38
【问题描述】:

嗨 尝试编译 Ruby Enterprise Edition 2010.02 时

readline.c: In function ‘username_completion_proc_call’:
readline.c:734: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:734: error: (Each undeclared identifier is reported only once
readline.c:734: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1

我还尝试指定选项 -c '--with-readline-path=/usr/local'(我安装了 readline 库),但我遇到了同样的问题。

我尝试使用port安装readline并删除我的手动编译,但问题仍然存在。

在 Linux(我习惯的系统)下,我从来没有遇到过 ldconfig 等问题......

帮助! :)

谢谢

【问题讨论】:

  • 什么版本的 OS X?雪豹还是无雪豹?

标签: ruby macos compilation


【解决方案1】:

您是否尝试过使用 RVM (Ruby Version Manager)?

【讨论】:

  • 接下来我要做的是看看如果我尝试使用 RVM 安装其他 rubies 会发生什么,看看它是否特定于 REE。
  • 另外,你在 Ruby 论坛上遇到过this post 吗?
  • 是的,我看到了。稍后或明天有时间时,我会再试一次,清理 readline 库,再试一次,用 rvm 尝试另一个 ruby​​ 版本,看看结果如何。还是谢谢
【解决方案2】:

好的,我是这样解决的:

我按照本指南编译了 readline 5.2 http://techdebug.com/blog/2009/01/03/compiling-readline-on-an-osx-105-intel-x86_64/

readline 6.1 不适用于 ree。

使用以下命令进行安装:

./installer -c '--with-readline-dir=PATH' 

工作正常

【讨论】:

    猜你喜欢
    • 2011-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多