title: cannot load such file -- sqlite3/sqlite3_native after deploying rails app to a new Debian server
body: <p>I've started our deployment process to a production server based on Debian Squeeze.
  We've been developing this Rails application in a MacOS.</p>
  
  <ul>
  <li>Rails is version 3.2.8</li>
  <li>Ruby is version 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0]</li>
  </ul>
  
  <p>We have installed rvm since the beggining and the application works flawlessly in my computer.</p>
  
  <p>In order to understand what would be required and then make a script with Capistrano, I started with:</p>
  
  <ul>
  <li>Installed successfully Ruby.</li>
  <li>Installed successfully Rails.</li>
  <li>Installed SQLite3. (I won't use it in production)</li>
  <li>Installed successfully RVM.</li>
  <li>Copied the whole app directory and ran <strong>bundle install</strong> inside it.</li>
  </ul>
  
  <p>Then, ran <strong>rake about</strong> just to make sure that everything is ok getting the following error:</p>
  
  <pre><code>rake aborted!
  cannot load such file -- sqlite3/sqlite3_native
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6/lib/sqlite3.rb:6:in        `require'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6/lib/sqlite3.rb:6:in   `rescue in &lt;top (required)&gt;'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6/lib/sqlite3.rb:2:in `&lt;top (required)&gt;'
  /usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `require'
  /usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
  /usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `each'
  /usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `block in require'
  /usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `each'
  /usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `require'
  /usr/local/rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler.rb:128:in `require'
  /root/rails_app/depot/config/application.rb:7:in `&lt;top (required)&gt;'
  /root/rails_app/depot/Rakefile:5:in `require'
  /root/rails_app/depot/Rakefile:5:in `&lt;top (required)&gt;'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake- 0.9.2.2/lib/rake/rake_module.rb:25:in `load'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
  /root/rails_app/depot/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `&lt;top (required)&gt;'
  /usr/local/rvm/gems/ruby-1.9.3-p327/bin/rake:19:in `load'
  /usr/local/rvm/gems/ruby-1.9.3-p327/bin/rake:19:in `&lt;main&gt;'
  /usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
  /usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `&lt;main&gt;'
  </code></pre>
  
  <p>Every other command like, <em>rails server</em> or <em>rails console</em> shows the same error.</p>