2

我在 osx 山狮上安装 caldecott 时遇到问题。我不断收到此错误:

$ sudo gem install caldecott --no-rdoc --no-ri

错误:安装 caldecott 时出错:错误:无法构建 gem 原生扩展。

    /Users/Jay/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb

检查 -lssl 中的 main()... * extconf.rb 失败 * 由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件。检查 mkmf.log 文件以获取更多详细信息。您可能需要配置选项。

/Users/Jay/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:369:in `try_do':编译器无法生成可执行文件。(RuntimeError) 你必须先安装开发工具。

这是我的宝石清单:

*当地宝石*

可寻址 (2.2.8) af (0.3.18.11) 捆绑器 (1.2.3) cfoundry (0.4.15) clouseau (0.0.2) 交互 (0.5.1, 0.4.8) json_pure (1.6.7) manifests-vmc- plugin (0.4.19) mime-types (1.19) Mothership (0.3.5) multi_json (1.4.0) multipart-post (1.1.5) rake (10.0.2) rb-readline (0.4.2) rest-client ( 1.6.7) ruby​​gems-bundler (1.1.0) ruby​​zip (0.9.9) rvm (1.11.3.5) terminal-table (1.4.5) tunnel-dummy-vmc-plugin (0.0.2) uuidtools (2.1.3) vmc (0.4.7)

关于如何让它发挥作用的任何想法。还是有另一种方法可以在 appfog 上通过隧道连接到我的 mongodb?

4

1 回答 1

1

First thing I notice is that your running gem install as root. If you're using RVM, you don't need to do this.

The likely issue here is that you don't have a C compiler installed, Caldecott uses native libraries and it requires them to be built. In the case of OS X, you need to install xcode. Do you have that installed?

于 2012-12-19T10:37:07.123 回答