View Single Post
  #44   Spotlight this post!  
Unread 26-10-2014, 18:32
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Team 254 Open-Source Release: Cheesy Parts

Quote:
Originally Posted by Jared View Post
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.