Ruby on Rails Sunday, November 21, 2010

Hello Aicha!

Zero: check if your system have these DBs itelf, like sqlite3 and
mysql, update them, and all other components which will be used.

First you have to install the gem itself to your system (I think other
reply also asked about it, so it's not the Gemfile, it's in your
system):
(sudo) gem install sqlite3-ruby
then check if you can see it: "gem list", or "gem list s".

Also try to start the console with every DB, to be sure they works and
you know all passwords you will need later.

If it is ready, without error, then put the line to your Gemfile,
bundle install etc. as you did.

May I ask which versions do you use from:
Ruby, Rails, Gem, SQLite3, MySQL?
Which opertaing system?

As other commenter, I also advice to use RVM: http://rvm.beginrescueend.com/
later you will have less problems with updating.

Hard to start, I had terrible struggle in both systems, so if you need
further help feel free to write me in private.
Good luck,
Zoltán

On nov. 20, 12:28, Aicha Aicha <li...@ruby-forum.com> wrote:
> Hi everybody!!
> I use rails 3.0  In my new created project I tried to run it by the
> command rails -s but it show me that
> Could not find gem 'sqlite3-ruby (>= 0, runtime)' in any of the gem
> sources.Try running `bundle install`.    even after doing bundle install
> I've already exactly installed gem Why this error occurred! In my
> Gemfile in the project I've  the line gem 'sqlite3-ruby', :require =>
> 'sqlite3'.
> I tried to create project with mysql like>> rails new project -d mysql
> but the problem stay still  Could not find gem 'mysql2 (>= 0, runtime)'
> in any of the gem sources.Try running `bundle install`.
>
> What's  wrong please???
> Thanks to be pleased to help me, i really need it!!!
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment