我在我的Windows 7機器上使用http://railsinstaller.org/安裝Rails。 我有mysql2寶石的問題,但它已經解決了通過下載MySQL的C類接口和使用自定義鍵:無法在Windows 7上安裝「saas-rails」寶石7
C:\Users\lenovo>gem install mysql2 -- --with-mysql-dir=c:\mysql-connector-c-6.1.
3-win32
現在我堅持這個錯誤:
C:\Dropbox\xcams\ror>ruby script\rails
←[31mCould not find gem 'sass-rails (~> 3.2.3) x86-mingw32' in the gems availabl
e on this machine.←[0m
←[33mRun `bundle install` to install missing gems.←[0m
如果我重新安裝寶石沒有錯誤:
C:\Dropbox\xcams\ror>gem install "sass-rails"
Successfully installed sass-rails-4.0.1
1 gem installed
Installing ri documentation for sass-rails-4.0.1...
Installing RDoc documentation for sass-rails-4.0.1...
檢查寶石列表:
C:\Dropbox\xcams\ror>gem list | findstr sass
sass (3.2.13)
sass-rails (4.0.1)
嘗試開始。再次出現同樣的錯誤:
C:\Dropbox\xcams\ror>ruby script\rails
←[31mCould not find gem 'sass-rails (~> 3.2.3) x86-mingw32' in the gems availabl
e on this machine.←[0m
←[33mRun `bundle install` to install missing gems.←[0m
在winodws上如何正確安裝這個gem? 我的環境:
C:\Users\lenovo>ruby -v
ruby 1.9.3p484 (2013-11-22) [i386-mingw32]
C:\Users\lenovo>gem -v
1.8.28
C:\Users\lenovo>rails -v
Rails 4.0.2