2012-07-14 22 views
0

因此,長話短說,我有o格式並重新安裝我的操作系統,因此我所有的開發工具。 git env排序。 DevKit很好。 Sphinx/mysql很好。 Bundle安裝完美。 一切都是肉汁,直到我去耙db:創建和建立我的數據庫。Ruby on Rails:rb_class_superclass不在msvcrt-ruby191.dll(ruby-prof錯誤?)

環境: OS:Win7的64位 Ruby192 寶石-v 1.8.24 軌3.1.3

現在的問題,當我耙什麼我得到一個彈出窗口

ruby.exe - Entry Point Not Found 

The procedure entry point rb_class_superclass could not be located in the dynamic link library msvcrt-ruby191.dll 

我試着乾淨安裝紅寶石,清理寶石和重新安裝。陷入下一步做什麼。

跟蹤輸出:

rake aborted! 
no such file to load -- ruby/prof 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:74:in `require' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:74:in `rescue in block in require' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:62:in `block in require' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:55:in `each' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:55:in `require' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler.rb:119:in `require' 
E:/Documents/Websites/rails-app /trunk/config/application.rb:7:in `<top (required)>' 
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
E:/Documents/Websites/rails-app/trunk/Rakefile:4:in `<top (required)>' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' 
C:/Ruby192/bin/rake:23:in `load' 
C:/Ruby192/bin/rake:23:in `<main>' 

我見過,但在不同的dll線和有關的sqlite3提出了類似的問題。雖然我根本沒有使用sqlite3。我在mysql2上使用mysql2連接器。

任何幫助?

回答

1

我想我明白了這一點。

在Gemfile中我換成:

gem "ruby-prof" 

有:

gem "ruby-prof", "0.10.8" 

,突然我被滾動到下一個問題,這是我的指定版本耙的。我認爲這兩個問題都與寶石和我的rubygems verson之間的不兼容性有關(我猜測??)。這是我在我的筆記本電腦環境,我的桌面環境和我的生產服務器之間唯一的區別。

無論哪種方式。排序!