gpt4 book ai didi

ruby-on-rails-3 - 任何人在 OSX lion 中安装 bson_ext gem 时遇到问题

转载 作者:行者123 更新时间:2023-12-03 00:45:53 26 4
gpt4 key购买 nike

OSX Lion、Xcode 4.2、GCC 4.2

安装 bson_ext 1.4.1 时出现以下错误

Building native extensions.  This could take a while...
ERROR: Error installing bson_ext:
ERROR: Failed to build gem native extension.

/Users/user/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for asprintf()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

最佳答案

我刚刚遇到了这个。您应该查看 mkmf.log 文件。很可能,它在错误的位置寻找 GCC。我必须:

cd /usr/bin
sudo ln -s i686-apple-darwin11-llvm-gcc-4.2 i686-apple-darwin11-gcc-4.2.1

一切都很好。

关于ruby-on-rails-3 - 任何人在 OSX lion 中安装 bson_ext gem 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7813079/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com