2012-12-09 183 views
1

試圖在Mountain Lion上安裝Ruby的Google-api-client失敗,原因是localmemcache gem(我認爲)..以下是發生了什麼事情:安裝Google-api-client Ruby在OSX Mountain Lion上失敗(localmemcache)

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安裝:

sudo gem install google-api-client --development --force --no-rdoc --no-ri 

回答

0

不知道從哪裏LMC是從哪裏來的,但它不是庫的直接依賴關係,也不是必需的正常使用。目前,建議跳過開發依賴關係,只需安裝:

gem install google-api-client 
相關問題