繁体   English   中英

将Hitimes gem作为Rails捆绑包的一部分安装时出错

[英]Error installing hitimes gem as part of Rails bundle

我正在尝试安装可在我的2009 iMac和2012 MacBook Pro上运行的Rails捆绑包,但不能在我朋友的2011 MacBook Pro上运行。 所有这些系统都在运行Mavericks,并安装了Xcode和最新的命令行工具(反复验证)。 安装Hitimes和Nokogiri时,Bundler出错。 hitimes错误在这里:

Installing hitimes (1.2.2) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/name/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb 
creating Makefile

make "DESTDIR="
compiling hitimes.c
compiling hitimes_instant_clock_gettime.c
compiling hitimes_instant_osx.c
compiling hitimes_instant_windows.c
compiling hitimes_interval.c
compiling hitimes_stats.c
linking shared-object hitimes/2.0/hitimes.bundle
ld: warning: directory not found for option '-L/Users/mpapis/.sm/pkg/active/lib'
ld: framework not found CoreServices
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [hitimes.bundle] Error 1

Gem files will remain installed in /Users/name/.rvm/gems/ruby-2.0.0-p247/gems/hitimes-1.2.2 for inspection.
Results logged to /Users/name/.rvm/gems/ruby-2.0.0-p247/gems/hitimes-1.2.2/ext/hitimes/c/gem_make.out

An error occurred while installing hitimes (1.2.2), and Bundler cannot continue.
Make sure that gem install hitimes -v '1.2.2' succeeds before bundling.

尝试显示“ gem install hitimes -v'1.2.2'”时,我们得到:

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

/Users/name/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling hitimes.c
compiling hitimes_instant_clock_gettime.c
compiling hitimes_instant_osx.c
compiling hitimes_instant_windows.c
compiling hitimes_interval.c
compiling hitimes_stats.c
linking shared-object hitimes/2.0/hitimes.bundle
ld: warning: directory not found for option '-L/Users/mpapis/.sm/pkg/active/lib'
ld: framework not found CoreServices
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [hitimes.bundle] Error 1

对我来说,看来我们仍然没有安装Xcode或命令行工具。 但是,我们已经重新安装了这两个。 可能是什么问题?

我看到过类似问题的帖子,但是都没有包含解决方案。 看到这里这里

当我们升级到Ruby 2.2.1时,此问题自行解决。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM