【问题标题】:make error when installing `ruby-1.8.7-p334` with `rvm` on Snow Leopard在雪豹上使用 rvm 安装 ruby​​-1.8.7-p334 时出错
【发布时间】:2011-08-23 21:58:51
【问题描述】:

安装 Snow Leopard (OS X 10.6) 后,我的一些 Ruby gem 停止工作。我还安装了 Xcode(以获取 make)并在使用 rvm 安装 ruby-1.8.7-p334 时出现以下错误。运行 Leopard 时,我能够成功安装它。任何帮助将不胜感激。

Macintosh:haloror patelc75$ rvm install ruby-1.8.7-p334

Installing Ruby from source to: /Users/patelc75/.rvm/rubies/ruby-1.8.7-p334, this may take a while depending on your cpu(s)...
ruby-1.8.7-p334 - #fetching
ruby-1.8.7-p334 - #extracted to /Users/patelc75/.rvm/src/ruby-1.8.7-p334 (already extracted)
ruby-1.8.7-p334 - #configuring
ruby-1.8.7-p334 - #compiling
ERROR: Error running 'make ', please read /Users/patelc75/.rvm/log/ruby-1.8.7-p334/make.log
ERROR: There has been an error while running make. Halting the installation.

Macintosh:haloror patelc75$ more /Users/patelc75/.rvm/log/ruby-1.8.7-p334/make.log

[2011-08-23 17:21:55] make
gcc -g -O2  -fno-common -pipe -fno-common    -DRUBY_EXPORT  -L.    main.o dmydln.o libruby-static.a -ldl -lobjc   -o miniruby
Undefined symbols:
"_Init_ext", referenced from:
  _require_libraries in libruby-static.a(ruby.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1

【问题讨论】:

  • 您是否尝试过 1.8.7 的任何其他补丁级别?例如 ruby​​-1.8.7-p352 ?

标签: ruby makefile installation rvm


【解决方案1】:

请检查 /Users/patelc75/.rvm/log/ruby-1.8.7-p334/make.log 的日志文件 readline 可能是大多数时候的问题。要解决这个问题,请做

rvm pkg install readline

在那之前你可能想做的事

rvm remove 1.8.7
rvm cleanup

【讨论】:

  • 谢谢,拉姆!这有效: rvm pkg install readline; rvm 清理所有; rvm install ruby​​-1.8.7-p334
猜你喜欢
  • 1970-01-01
  • 2013-02-17
  • 1970-01-01
  • 1970-01-01
  • 2011-10-06
  • 1970-01-01
  • 2013-07-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多