rb_class_superclass not located in msvcrt-ruby191.dll

So, long story short, I had o format and reinstall my OS hence all my dev utilities.

git env sorted.

DevKit was fine.

Sphinx/mysql fine.

Bundle installed perfectly.

Everything is gravy until I go to rake db:create and build my database.

Environment:

OS: Win7 64-bit

Ruby192

gem -v 1.8.24

rails 3.1.3

Now the problem, when I rake anything I get a pop-up window

"

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

"

I’ve tried clean installing ruby, clearing the gems and reinstalling. Stuck on what to do next.

trace output:

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 `’

I’ve seen similar issues raised but for different lines in the dll and relating to sqlite3. I’m not using sqlite3 at all though. I’m on mysql with the mysql2 connector.

Any help?

I don’t see gem install rake in the list of tasks you ran after reinstalling ruby et. al.

Rick

Rake was included as a dependency in gem install rails -v 3.1.3. It was also one of the first in the bundle.

Do I need to specifically install rake? I don’t remember doing it in the past few times I’ve set up development environments, I’ve just gone with the bundled rake and everything usually works.

Looks like the problem was an incompatible gem version for ruby-prof.

In the gemfile:

gem “ruby-prof”, “0.10.8”

fixed it just right.

The only difference between my laptop, my desktop and my production server that I can see is the rubygems version, so I guess that is where the problem originates.