Content
"rake db:create:all" failed by installation on ubuntu 14.04
Added by kefeng chen over 10 years ago
Dear all,
the command “rake db:create:all” failed as I tried to install the OpenProject in ubuntu 14.04.
the error report looks like:
(in /home/kefeng/openproject)
rake aborted!
SyntaxError: /home/kefeng/openproject/config/application.rb:131: syntax error, unexpected tLPAREN_ARG, expecting keyword_do_LAMBDA or tLAMBEG
config.assets.precompile.unshift -> (path) {
^
/home/kefeng/openproject/config/application.rb:131: syntax error, unexpected tLAMBEG, expecting keyword_end
/home/kefeng/openproject/config/application.rb:133: syntax error, unexpected ‘}’, expecting keyword_end
/home/kefeng/openproject/config/application.rb:171: syntax error, unexpected keyword_do_block, expecting keyword_end
/home/kefeng/openproject/config/application.rb:186: syntax error, unexpected keyword_end, expecting $end
/home/kefeng/openproject/Rakefile:33:in `require’
/home/kefeng/openproject/Rakefile:33:in `<top (required)>’
(See full trace by running task with —trace)
Can anybody give a hint about what was going wrong? Thank you!
Replies (4)
has nobody ran into similar issue?
Hi
Can you tell us what set of instructions you where following please.
I have not seen this error and since I am not a ruby or rail user, I cannot debug it for you, but in my experience, you have issues when you miss installation steps.
I have seen really weird error message when I have made typo’s in the config files, you could check these.
The rake db:create:all comes after you have edited the configuration.yml file and the database.yml file
Cheers
Brendan
Hi Brendan,
thank u for ur reply!
I have fixed the problem by removing the space between “->” and “(path)” in “config.assets.precompile.unshift -> (path) {”.
I don’t know why but look at this:
http://ruby-journal.com/becareful-with-space-in-lambda-hash-rocket-syntax-between-ruby-1-dot-9-and-2-dot-0/
It seems that i have installed a wrong version of ruby. I am using 1.9.1 by default. This should be the reason.