Ошибка установки rdiscount в Windows 7
Я пытаюсь установить гем rdiscount, но столкнулся со следующей ошибкой.
Как я могу установить rdiscount в Windows 7?
C:\>gem install rdiscount --platform=ruby Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb checking for random()... no checking for srandom()... no checking for rand()... yes checking for srand()... yes checking size of unsigned long... 4 checking size of unsigned int... 4 creating Makefile
from c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../i
from c:/Ruby193/include/ruby-1.9.1/ruby/win32.h:40,
from c:/Ruby193/include/ruby-1.9.1/ruby/defines.h:223,
from c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:67,
from c:/Ruby193/include/ruby-1.9.1/ruby.h:32,
from rdiscount.c:3: c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:229:23 c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:238:23 c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:238:23 c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:241:24 rdiscount.c: In function 'rb_rdiscount_to_html': rdiscount.c:19:5: warning: implicit declaration of function 'rb_rdiscount__get_f rdiscount.c:19:5: warning: ISO C90 forbids mixed declarations and code rdiscount.c:32:5: warning: ISO C90 forbids mixed declarations and code rdiscount.c: In function 'rb_rdiscount_toc_content': rdiscount.c:68:5: warning: ISO C90 forbids mixed declarations and code make: *** [rdiscount.o] Error 1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount-2.0.7.1/ext/gem_
C:\>
2 ответа
Я до сих пор не могу заставить его работать, поэтому придется использовать старую версию.
gem install rdiscount -v=1.6.8 --platform=ruby
РЕДАКТИРОВАТЬ НА 2013 15 марта
Старый драгоценный камень дает мне другую ошибку.
Я перехожу на б
gem install RedCloth -v=4.2.9 –platform=ruby
Попробуйте обновить свой Ruby и / или RDiscount.
Последняя версия RDiscount (2.0.7.3) должна работать на Ruby 1.9.3 или более поздней версии.