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

苏森

我正在尝试安装可在我的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时,此问题自行解决。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

当宿主站点使用RequireJS时,将KnockoutJS作为第三方软件包的一部分加载时出错

将标题作为CURL的一部分

将非OSGi jar转换为OSGi捆绑包,这是Maven构建过程的一部分

以及以独立工作方式将Python导入模块作为包的一部分

即使将 jq 作为 dockerfile 的一部分安装后,也无法在 docker 容器中使用 jq

将R中的列名作为函数的一部分更新时出现问题

如何将一个UIViewController作为屏幕的一部分

Vue:将软件包的一部分注册为组件

作为函数的一部分,如何将小数转换为等效时间?

如何将背景色仅作为选择的一部分?的CSS

将 null 作为 vararg 参数的一部分从 Kotlin 传递给 Java 方法

将参数作为查询字符串或 url 的一部分传递?

将json插入postgres作为celery任务的一部分

将图像拖到pygame中作为网格一部分的图块上

强制将Windows作为双启动的一部分的情况?

将cookie作为node.js请求的一部分传递

Haskell:是否可以将类型作为程序的一部分输出?

为什么将ffmpeg作为x11的一部分删除?

将VARCHAR转换为SMALLDATETIME作为UPDATE语句的一部分

如何使用CoordinatorLayout将视图作为RecyclerView的一部分移动

NSNotificationCenter将结构作为UserInfo的一部分传递

将输出文本作为命令按钮的一部分

Terraform无法将模块作为jenkins管道的一部分拉出

合并多个列,将变量名作为数据的一部分

Javascript将HTML标签作为innerHTML输出到屏幕的一部分

Swift-变量在if语句中作为更新的一部分,但随后将还原

将 --form 文件作为 ROBOT 框架的一部分传递

将数组作为对象的一部分传递给Ajax调用

如何将特定表作为迁移的一部分 - Laravel 5?