【问题标题】:Error trying to install rinku gem on mac尝试在 Mac 上安装 rinku gem 时出错
【发布时间】:2014-11-19 04:27:53
【问题描述】:

我在 Mavericks 上安装 rinku gem 版本“1.7.3”时遇到问题。我遵循了另一篇建议安装 apple-gcc42 的帖子的建议,但这并没有帮助。我也试过搜索谷歌和堆栈溢出,但找不到这个确切的问题。这是错误:

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

    /Users/home/.rvm/rubies/ruby-1.9.3-p429/bin/ruby extconf.rb                  
creating Makefile                                                                

make  clean                                                                      

make                                                                             
compiling autolink.c                                                             
In file included from autolink.c:17:                                             
buffer.h:23:20: error: stdint.h: No such file or directory                       
In file included from autolink.c:17:                                             
buffer.h:41: error: expected specifier-qualifier-list before 'uint8_t'           
In file included from autolink.c:18:                                             
autolink.h:31: warning: type defaults to 'int' in declaration of 'uint8_t'       
autolink.h:31: error: expected ';', ',' or ')' before '*' token                  
autolink.h:35: error: expected declaration specifiers or '...' before 'uint8_t'  
autolink.h:39: error: expected declaration specifiers or '...' before 'uint8_t'  
autolink.h:43: error: expected declaration specifiers or '...' before 'uint8_t'  
autolink.c:20:20: error: string.h: No such file or directory                     
autolink.c:21:20: error: stdlib.h: No such file or directory                     
autolink.c:22:19: error: stdio.h: No such file or directory                      
autolink.c:23:19: error: ctype.h: No such file or directory                      
autolink.c:30: warning: type defaults to 'int' in declaration of 'uint8_t'   

... 不得不省略一些错误,因为它不会让我在没有较低代码与文本比率的情况下发布此内容。

autolink.c: At top level:
autolink.c:256: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.c: In function 'sd_autolink__url':
autolink.c:263: error: 'data' undeclared (first use in this function)
autolink.c:266: warning: implicit declaration of function 'isalpha'
autolink.c:269: warning: implicit declaration of function 'sd_autolink_issafe'
autolink.c:272: warning: incompatible implicit declaration of built-in function 'strlen'
make: *** [autolink.o] Error 1

make failed, exit code 2

【问题讨论】:

  • 通过升级到 ruby​​ 2.0.0 来安装它,仍然不知道如何让它在 1.9.3 上工作

标签: ruby-on-rails ruby macos gem osx-mavericks


【解决方案1】:

这最终修复了 1.9.3

xcode-select --install

【讨论】:

    猜你喜欢
    • 2021-05-01
    • 2020-01-19
    • 2020-03-01
    • 2016-01-01
    • 1970-01-01
    • 2014-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多