最近需求要做一个和fckeditor差不多的文本编辑器,但是不需要那么多功能,只要和redmine差不多就行,自己动手写了一个text_tool,用到RedCloth插件,但是自从我把rails 更新到3.0后怎么也安装不上总是抱如下错误:
D:\work_space\bs>bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Installing RedCloth (4.2.3) with native extensions C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/installer.
onBuildError)
C:/Ruby/bin/ruby.exe extconf.rb
creating Makefile
make
'make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/RedCloth-4.2.3 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/RedCloth-4.2.3/ext/redcloth_scan/gem_make.out
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `each'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `build_extensions'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:198:in `install'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/source.rb:100:in `install'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/installer.rb:55:in `run'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/spec_set.rb:12:in `each'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/spec_set.rb:12:in `each'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/installer.rb:44:in `run'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/installer.rb:8:in `install'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/cli.rb:217:in `install'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/task.rb:22:in `send
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/task.rb:22:in `run'
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/invocation.rb:118:i
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor.rb:246:in `dispatch
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/base.rb:389:in `sta
from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/bin/bundle:13
from C:/Ruby/bin/bundle:19:in `load'
from C:/Ruby/bin/bundle:19
?
很是郁闷,网上页没搜到解决的办法。最后我在rubyforge上搜到gem 包居然安装成功
你可以下载: RedCloth-4.2.2-x86-mswin32-60.gem?到本地通过执行命令:
gem install -l RedCloth-4.2.2-x86-mswin32-60.gem
?安装完成之后,在environment.rb 中写入以下代码:
require "redcloth"
?