Ruby on Rails Monday, June 27, 2011

Teri you are right, ruby 1.8.7 works fine.

You can check with "gem list" which gems are installed. Probably you
have a newer version installed (0.9.2) as required in your Gemfile
(0.8.7).
So try running "bundle exec rake" instead of just rake.
See here for example: http://stackoverflow.com/questions/6205377/confused-with-rake-error-in-rails-3

I encourage you to use the ruby version manager. It enables you to
switch between different gem sets really easy and you can install
different gem versions for different projects.

On 27 Jun., 19:26, amritpal pathak <amritpalpath...@gmail.com> wrote:
> On Mon, Jun 27, 2011 at 4:16 AM, Kevin <def...@googlemail.com> wrote:
> > Hi,
>
> > first you need to install sqlite3.
> > In Ubuntu: sudo apt-get install libsqlite3-dev
>
> > Second install the sqlite gem
> > gem install sqlite3-ruby
>
> > see here for example
> >http://stackoverflow.com/questions/2305920/rails-3-can-not-find-sqlit...
>
> > I am not sure if rails 3 works with ruby 1.8.7 but I would recommend
> > you to switch to version 1.9.2 anyway
>
> > It worked.
>
>    Thank you very much.
>
>               one thing left .now i can start old rail app but it gives the
> error of rake when i did "rake db:create"
>
>   rake aborted!
> You have already activated rake 0.9.2, but your Gemfile requires rake 0.8.7.
> Consider using bundle exec.
>
> (See full trace by running task with --trace)
>
>  thanks

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