Quote:
Originally Posted by Jared
I'm having a hard time installing this. I've done it in the past on ubuntu, and everything worked the first time perfectly, but now I'm installing it on new machine, which doesn't have all the dependencies I usually work with.
When I run "bundle exec rake db:migrate", it fails, with the error "cannot load such file -- db". I've tried with ruby 1.9.1 and 1.9.3, and the same error happens. What am I missing?
|
Things are messed up with relative paths in the requires for some reason.
I solved it by removing line 16 in the Rakefile (require "db"), and replacing
Code:
Sequel::Migrator.run(DB, "db/migrations")
with
Code:
Sequel::Migrator.run(Sequel.mysql2({ :host => "**host**", :user => "**mysql user**", :password => "**mysql password**", :database => "**mysql database**" }), "db/migrations")
Replace the things surrounded by *'s with the actual values.
There was also an issue with require in the add starting user file. I needed to add a ./ before the path name.
Finally, the version of sequel (the ruby gem) that installed automatically was totally the wrong version and needed to be updated.