2

I'm pretty sure I should be posting this here, but feel free to correct me if this belongs on something like Superuser.

Trying to setup this Ruby/Javascript app https://github.com/jamesu/tubehub - on my freshly formatted Linode.

Running: Ubuntu v10.04 LTS, Ruby v1.8.8dev, Rails v3.2.9, SQLite v3.6.22.

I appear to be close to successfully installing and launching this app after much troubleshooting, but the last bit I can't figure out yet is the "aborted" errors I get when running the rake commands, as shown in the README documentation.

root@li570-120:~/tubehub# rake db:seed
rake aborted!
/root/tubehub/util.rb:8: undefined (?...) sequence: /^(.*?)((?<!&)#|\#)(.*)$/
/root/tubehub/util.rb:9: undefined (?...) sequence: /(?:\#)(?<!&#)(?:\#)*(.*)$/
/root/tubehub/core.rb:37
/root/tubehub/core.rb:36:in `each'
/root/tubehub/core.rb:36
/root/tubehub/Rakefile:2
Tasks: TOP => db:seed => environment
(See full trace by running task with --trace)

root@li570-120:~# rake db:load                                                                                                                                                                                                               
rake aborted!                                                                                                                                                                                                                                
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)                                                                                                                                                                                                                                                                                                                                                                                                      
(See full trace by running task with --trace)        

This is my first foray into Ruby specifically, filtered through some "rake" docs but wasn't sure what I was looking at.

Any suggestions?

13
  • 1
    root@li570-120:~# rake db:load this one you run from home dir, not prroject dir. bundle install run successfully? Commented Dec 16, 2012 at 19:42
  • 1
    Please run all tasks in project dir. I don't see db:load task I only see db:schema:load github.com/jamesu/tubehub/blob/master/Rakefile#L30 Commented Dec 16, 2012 at 19:48
  • 2
    Looks like you are using wrong Ruby version. ruby -v to find version. I think you should use 1.9.3 Commented Dec 16, 2012 at 20:01
  • 1
    example with similar error stackoverflow.com/questions/7276324/ruby-regex-and-grouping Commented Dec 16, 2012 at 20:06
  • 1
    You'll notice if you toss your regex into rubular, it shows that error when using Ruby 1.8.7 but that the regex is fine using Ruby 1.9.2 Edit: Oh, I see that the other question linked to above mentions this. Commented Dec 16, 2012 at 21:33

2 Answers 2

1

I'll add an answer. Please use rake db:schema:load instead

Sign up to request clarification or add additional context in comments.

Comments

0

As per Anatoliy Kukul's suggestion - "rake db:schema:load" got everything working correctly, and loaded all of the tables needed into the local database.

worked a treat - thanks for the clarification!

1 Comment

Please add this comment under the comment section not as a answer. This may be misleading. Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.