坏URI(不是URI?)在ubuntu终端上运行rails时

 jfgkj6454_478 发布于 2023-01-15 18:31

我一直试图在我的一个项目上运行rails.我是RoR的完全初学者,只是试图通过首先尝试运行文件并查看网站的外观来开始.但是,似乎我陷入了这个问题,我无法真正找到解决方案.谁能帮我?

这是错误:

/home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/uri/common.rb:176:in `split': bad URI(is not URI?):  (URI::InvalidURIError)
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
from /home/peh/Desktop/kairos-singapore-master/config/initializers/redis.rb:1:in `'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/engine.rb:609:in `block (2 levels) in '
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/engine.rb:608:in `each'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/engine.rb:608:in `block in '
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `each'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/peh/Desktop/kairos-singapore-master/config/environment.rb:5:in `'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /home/peh/Desktop/kairos-singapore-master/config.ru:3:in `block in 
' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' from /home/peh/Desktop/kairos-singapore-master/config.ru:in `new' from /home/peh/Desktop/kairos-singapore-master/config.ru:in `
' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in `app' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in `start' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in ' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap' from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands.rb:73:in `' from bin/rails:4:in `require' from bin/rails:4:in `
'

sevenseacat.. 5

你有一个糟糕的URI /home/peh/Desktop/kairos-singapore-master/config/initializers/redis.rb:1.Ruby无法解析它.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有