我在嘗試將我的Redmine安裝升級到最新版本。 我根據需要更新了ruby,rails和gem。在Windows上安裝Redmine的RMagick錯誤
current trunk | ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7 | Rails 3.2.6 | RubyGems <= 1.8
印發rake db:migrate
命令它給了我下面的錯誤:
C:\ruby-apps\RedMine>rake db:migrate RAILS_ENV=production
←[31mCould not find gem 'rmagick (>= 2.0.0) x86-mingw32' in the gems available on this machine.←[0m
←[33mRunbundle install
to install missing gems.←[0m
所以我安裝rmagick針對Win32和列出已安裝寶石我看到:
...
railties (3.2.6)
rake (0.9.2.2)
rdoc (3.12)
rmagick (2.12.0 mswin32)
ruby-openid (2.1.8)
rubygems-update (1.8.24)
...
但rake db:migrate
仍然給我同樣的錯誤,所以我試過bundle install
,但我得到:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.C:/Ruby193/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for stdint.h... * 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.
任何想法如何擺脫這個?