When attempting to run: rake test_plugins PLUGIN=acts_as_attachment Fails with: /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- sqlite (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' Figured I was just missing SQLite so I installed everything (I think). Using Ubuntu Dapper, I used this: ''sudo apt-get install swig sqlite3 libsqlite3-dev ruby1.8-dev'' ''sudo gem install sqlite3-ruby'' Not sure what could still be missing. Any idea what is causing this error? 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I''m getting the same error. I''ll keep looking into it. On 9/12/06, Jeff <jeff.cabaniss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > When attempting to run: > rake test_plugins PLUGIN=acts_as_attachment > > Fails with: > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require__'': no such file to load -- sqlite (MissingSourceFile) > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require'' > > Figured I was just missing SQLite so I installed everything (I think). > Using Ubuntu Dapper, I used this: > > ''sudo apt-get install swig sqlite3 libsqlite3-dev ruby1.8-dev'' > ''sudo gem install sqlite3-ruby'' > > Not sure what could still be missing. Any idea what is causing this > error? > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Damn, I feel stupid now. Go to the file database.yml in the plugin/acts_as_attachment/test directory. You''ll see configurations for different databases. Comment out the stuff you don''t need (i.e. if you''re using mysql, comment out the sqlite, sqlite3, and postgresql blocks). Comments in YAML are the same as ruby ( "#" at the beginning of the line). Also, write in the password for your database (if you''re using one). Save that file. Then, go to your database and create a database called acts_as_attachment_plugin_test. Now run the plugin test and everything will be peachy :-) (unless you''re not running edge, in which case it''ll throw a bunch of errors, but at least it''ll run the tests) Regards, Louis On 9/13/06, Louis Simoneau <simoneau.louis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I''m getting the same error. I''ll keep looking into it. > > > On 9/12/06, Jeff <jeff.cabaniss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > When attempting to run: > > rake test_plugins PLUGIN=acts_as_attachment > > > > Fails with: > > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > > `require__'': no such file to load -- sqlite (MissingSourceFile) > > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in > > `require'' > > > > Figured I was just missing SQLite so I installed everything (I think). > > Using Ubuntu Dapper, I used this: > > > > ''sudo apt-get install swig sqlite3 libsqlite3-dev ruby1.8-dev'' > > ''sudo gem install sqlite3-ruby'' > > > > Not sure what could still be missing. Any idea what is causing this > > error? > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---