-1

I am new to Ruby, previously I installed an older Ruby and gem versions and I create one sample project.

Now I...

  • uninstall the Ruby and all using uninstall program via control panel.
  • install new versions of ruby and all.
  • run the server - it throws a lot of errors.

I solved some problems but I am not able to solve the Gem::LoadError and rake db:migrate errors.

enter image description here

Please help me. Thanks in advance.

LittleBobbyTables - Au Revoir
  • 32,008
  • 25
  • 109
  • 114
selvam
  • 1,177
  • 4
  • 18
  • 40

1 Answers1

0

Try to add gem sqlite3 into your Gemfile and then run bundle in console.

It should look something like this

Gemfile

source 'https://rubygems.org'

# Use sqlite3 as the database for Active Record
gem 'sqlite3'
Community
  • 1
  • 1
mark10
  • 571
  • 2
  • 7
  • 14
  • gem 'sqlite3' throw error like ERROR: While executing gem ... (Gem::CommandLineError) Unknown command sqlite3 – selvam Aug 21 '13 at 12:43
  • and i use $ gem install sqlite3 it's throw different error ERROR: Could not find a valid gem 'sqlite3' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A (https ://rubygems.org/latest_specs.4.8.gz) – selvam Aug 21 '13 at 12:45
  • Where is your `Gemfile` located? It should be in the root of your project.Have a look on this working code, [sample app in rails](https://github.com/mhartl/sample_app/blob/master/Gemfile) – mark10 Aug 21 '13 at 12:49
  • From strating i am using Aptana3 IDE in Eclipse and i use the first command your post like gem 'rails', '3.2.3' it's always throw ERROR: While executing gem ... (Gem::CommandLineError) Unknown command rails, – selvam Aug 21 '13 at 13:05
  • and i execute these all commands in my application terminal using Aptana3 IDE – selvam Aug 21 '13 at 13:07
  • I am using Aptana IDE, When i create a new rail application, that i automatically create all files like these are my files $ ls Gemfile Gemfile.lock README.rdoc Rakefile app bin config config.ru db lib log public test tmp vendor All files are under my application name only. – selvam Aug 21 '13 at 13:11