安装时出错

时间:2014-10-08 20:00:39

标签: ruby-on-rails ruby gem rubygems

我按照@ https://github.com/peatio/peatio/blob/master/doc/setup-ubuntu.md找到的安装步骤进行了操作,但是它总是会让我误以为“rake aborted!”当我运行“bundle exec rake db:setup”时。 我尝试了两个新的ubuntu 14.04 LTS版本,尝试安装不同版本的ruby 2.1.2,2.1.1和2.1.3,还克隆除了master之外的稳定分支,没有运气。我真的不知道还有什么可以看的。有人能就这个问题给我一些启示吗?非常感谢。

ERROR:

user@user:~/peatio$ bundle exec rake db:setup --trace
rake aborted!
(): did not find expected key while parsing a block mapping at line 1 column 1
/home/user/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:370:in `parse'
/home/user/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
/home/user/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:318:in `parse'
/home/user/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/psych.rb:245:in `load'
/home/user/.rvm/gems/ruby-2.1.3/gems/figaro-0.7.0/lib/figaro.rb:21:in `raw'
/home/user/.rvm/gems/ruby-2.1.3/gems/figaro-0.7.0/lib/figaro.rb:17:in `env'
/home/user/.rvm/gems/ruby-2.1.3/gems/figaro-0.7.0/lib/figaro/railtie.rb:7:in `block in '
/home/user/.rvm/gems/ruby-2.1.3/gems/activesupport-4.0.2/lib/active_support/lazy_load_hooks.rb:36:in `call'
/home/user/.rvm/gems/ruby-2.1.3/gems/activesupport-4.0.2/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/home/user/.rvm/gems/ruby-2.1.3/gems/activesupport-4.0.2/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
/home/user/.rvm/gems/ruby-2.1.3/gems/activesupport-4.0.2/lib/active_support/lazy_load_hooks.rb:44:in `each'
/home/user/.rvm/gems/ruby-2.1.3/gems/activesupport-4.0.2/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
/home/user/.rvm/gems/ruby-2.1.3/gems/railties-4.0.2/lib/rails/application.rb:67:in `inherited'
/home/user/peatio/config/application.rb:16:in `'
/home/user/peatio/config/application.rb:15:in `'
/home/user/peatio/Rakefile:5:in `require'
/home/user/peatio/Rakefile:5:in `'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/rake_module.rb:25:in `load'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/application.rb:637:in `raw_load_rakefile'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/application.rb:94:in `block in load_rakefile'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/application.rb:93:in `load_rakefile'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/application.rb:77:in `block in run'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
/home/user/.rvm/gems/ruby-2.1.3/gems/rake-10.1.1/bin/rake:33:in `'
/home/user/.rvm/gems/ruby-2.1.3/bin/rake:23:in `load'
/home/user/.rvm/gems/ruby-2.1.3/bin/rake:23:in `'
/home/user/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
/home/user/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `'
user@user:~/peatio$

1 个答案:

答案 0 :(得分:0)

您需要安装Ruby 2.5.3和最新的捆绑程序安装。使用Ubuntu 18.04 LTS或Debian 9进行设置。