2010-08-27 10 views
1

Je joue avec un projet open source et j'ai un problème avec le "memcached".Problème "pas de fichier à charger - memcached"

En fait, je reçois une erreur "pas de tel fichier à charger - memcached" quand je fais un "rake db: migrate". Il me semble que je devrais l'installer d'une manière ou d'une autre, mais malheureusement, un "gem install memcached" laisse tomber une erreur.

Ceci est mon journal de la console:

D:\BitNami RubyStack projects\spot-us>rake db:migrate 
(in D:/BitNami RubyStack projects/spot-us) 
rake aborted! 
no such file to load -- memcached 

(See full trace by running task with --trace) 

D:\BitNami RubyStack projects\spot-us>gem install memcached 
Building native extensions. This could take a while... 
ERROR: Error installing memcached: 
     ERROR: Failed to build gem native extension. 

C:/web/BitNami_RubyStack/ruby/bin/ruby.exe extconf.rb 
Building libmemcached. 
tar xzf libmemcached-0.32.tar.gz 2>&1 
Patching libmemcached source. 
patch -p1 -Z < libmemcached.patch 
patching file libmemcached-0.32/libmemcached/memcached_response.c 
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354 

This application has requested the Runtime to terminate it in an unusual way. 
Please contact the application's support team for more information. 
*** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/lib 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=C:/web/BitNami_RubyStack/ruby/bin/ruby 
extconf.rb:52:in `check_libmemcached': 'patch -p1 -Z < libmemcached.patch' faile 
d (RuntimeError) 
     from extconf.rb:34:in `chdir' 
     from extconf.rb:34:in `check_libmemcached' 
     from extconf.rb:101 


Gem files will remain installed in C:/web/BitNami_RubyStack/ruby/lib/ruby/gems/1 
.8/gems/memcached-0.20.1 for inspection. 
Results logged to C:/web/BitNami_RubyStack/ruby/lib/ruby/gems/1.8/gems/memcached 
-0.20.1/ext/gem_make.out 

D:\BitNami RubyStack projects\spot-us> 

Comment puis-je résoudre le problème d'installation "memcached"?

Thx.

+0

Votre problème a été résolu? J'ai un même numéro –

Répondre

0

Installez "Memcahed for Windows"

+0

Merci Swanand. J'ai installé "Memcached pour Windows", mais malheureusement l'erreur "pas de tel fichier à charger - memcached" persiste. Y a-t-il autre chose que je devrais faire? – ugachakaa

Questions connexes