I have installed Ruby on Rails . rails -v=>3.0.7 gem -v=>1.3.6 ruby -v=>ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] when i tried to start the server by "rails s" or tried to do anything it gives the error Could not find gem ''sqlite3 (>= 0, runtime)'' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems. Please somebody help me to get rid of it...:P Thanks in advance amritpalpathakgne.wordpress.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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-sqlite3-ruby 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 On 27 Jun., 09:17, amritpal pathak <amritpalpath...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have installed Ruby on Rails . > rails -v=>3.0.7 > gem -v=>1.3.6 > ruby -v=>ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] > > when i tried to start the server by "rails s" > or tried to do anything it gives the error > > Could not find gem ''sqlite3 (>= 0, runtime)'' in any of the gem sources > listed in your Gemfile. > Run `bundle install` to install missing gems. > > Please somebody help me to get rid of it...:P > > Thanks in advance > > amritpalpathakgne.wordpress.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Do, what it says... run ''bundle install'' on your app. Or manually install sqlite3 gem -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/O0dz0sGQuJEJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Jun 27, 2011 at 4:33 AM, Chirag Singhal <chirag.singhal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> Do, what it says... run ''bundle install'' on your app. > Or manually install sqlite3 gem >I tried "bundle install" from app.I couldn''t work too.error persists. 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, try gem install sqlite3, or try this mysql db rails my_new_app --database=mysql Cheers, Sai On Mon, Jun 27, 2011 at 12:47 PM, amritpal pathak <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have installed Ruby on Rails . > rails -v=>3.0.7 > gem -v=>1.3.6 > ruby -v=>ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] > > when i tried to start the server by "rails s" > or tried to do anything it gives the error > > Could not find gem ''sqlite3 (>= 0, runtime)'' in any of the gem sources > listed in your Gemfile. > Run `bundle install` to install missing gems. > > Please somebody help me to get rid of it...:P > > Thanks in advance > > amritpalpathakgne.wordpress.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jun 27, 2011, at 1:16, Kevin wrote:> 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 anywayRails 3 and even 3.1.0rc4 work fine with ruby 1.8.7. Make sure the place you will eventually deploy to supports Ruby 1.9.2 before switching. I just had to downgrade to deploy to Dreamhost because their passenger won''t work with anything but 1.8.7. -- Teri Solow http://tekniklr.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Jun 27, 2011 at 4:16 AM, Kevin <defkef-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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-sqlite3-ruby > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Jun 27, 2011 at 4:16 AM, Kevin <def...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.