Problem with creating a sample application.

Hi Community,

I'm new to rails. I was trying to install and run a sample ruby on rails application with database as mysql. I have followed the steps for the installation. However when I start the "rails server" I get the below error. "Could not find gem 'mysql2 (>= 0)' in any of the gem sources listed in your Gemfile."

I have the below version and application installed. ruby => 1.8.7 rails => 3.0.7 libraries gem =>1.8.2 mysql5.

My Gemfile looks as below. As per a suggestion in a website I have tried mysql 2.8.1 and changed in the yaml file still it didnot work " development:   adapter: mysql   encoding: utf8   reconnect: false   database: myapp_development   pool: 5   username: root   password:   socket: /var/run/mysqld/mysqld.sock " gem 'rails', '3.0.7'

gem 'mysql2' #gem 'mysql', '2.8.1'

# end

can you please help me ?

have you run bundle install?


gem list --local

to be able to see if the mysql gem is actually installed or not.

if not the bundle install should install it for you and you should then be able to proceed.