views:

110

answers:

1

My Gem file looks like this:

source 'http://rubygems.org'

gem 'rails', '3.0.0'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

#gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'

group :development do
  gem 'rspec-rails', '2.0.0.beta.18'
end

group :test do
  gem 'rspec', '2.0.0.beta.18'
end

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'

# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
#   gem 'webrat'
# end

I get that error message when I try to go to /pages/home.

I am following the railstutorial guide and am at this point: http://railstutorial.org/chapters/static-pages#code:pages_routes

Btw, I am using sqlite3 as my db for now - if you were wondering.

Any ideas?

Edit: When I load the page, I am seeing a windows error message that says "ruby.exe - Entry point not found: The procedure entry point rb_str2cstr could not be located in the dynamic link library msvcrt-ruby191.dll".

Then it shows the error message in the browser.

+1  A: 

I fixed this by re-creating my app, and in the initial bundle install, I changed the gem file to just have:

gem 'sqlite3-ruby', :require => 'sqlite3'

and not:

gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'

This seems to work. For whatever reason, that version of sqlite3 was not agreeing with my setup.

marcamillion
This worked for me. I wonder if there is some kind of bug with version 1.2.5? I noticed that when I removed the version specification it changed to 1.3.1, which works!
Jaco Pretorius