首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在OSX Mountain Lion (localmemcache)上安装Google-api-client Ruby失败

在OSX Mountain Lion (localmemcache)上安装Google-api-client Ruby失败
EN

Stack Overflow用户
提问于 2012-12-10 04:50:44
回答 1查看 222关注 0票数 1

尝试在Mountain Lion上安装Google-api-client for Ruby失败是因为localmemcache gem (我想)..下面是发生的情况:

代码语言:javascript
复制
Building native extensions.  This could take a while...
ERROR:  Error installing localmemcache:
    ERROR: Failed to build gem native extension.

        sh ./configure --prefix=/Users/rental/.rvm/gems/ruby-1.9.3-p125/gems/localmemcache-0.4.4/src/ruby-binding
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for apple OS X... 
->  Apple OS X is not supported because it doesn't have 
    sem_getvalue and sem_timedwait!
    You may set the environment variable LMC_FORCE_BUILD 
    to build a version of localmemcache that cannot recover 
    from crashes.

重要提示:当安装了--development时,会发生这种情况:

代码语言:javascript
复制
sudo gem install google-api-client --development --force --no-rdoc --no-ri
EN

回答 1

Stack Overflow用户

发布于 2012-12-11 08:04:42

不确定lmc从何而来,但它不是库的直接依赖,也不是正常使用所必需的。现在,建议跳过开发依赖项,只使用以下命令进行安装:

代码语言:javascript
复制
gem install google-api-client
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13791687

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档