Pow 不能使用 RBENV 与 Ruby 2.0 一起工作 [英] Pow not working with Ruby 2.0 using RBENV

查看:36
本文介绍了Pow 不能使用 RBENV 与 Ruby 2.0 一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过 rbenv (ruby-build) 安装了 Ruby 2.0.0-p247,不幸的是我的 Pow.cx 无法正常工作.

I installed Ruby 2.0.0-p247 via rbenv (ruby-build) and unfortunately my Pow.cx isn't working.

有人有过这样的经历吗?

Has anyone had this experience?

我得到以下战俘

Error starting application
Your Rack app raised an exception when Pow tried to run it.

~/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
~/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
~/Code/sandwiches_app/config/boot.rb:6:in `<top (required)>'
~/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
~/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

非常感谢任何见解.看起来它正在查看 Ruby 的 1.9.3 版本,但我已将 rbnenv 全局、shell 和本地(在应用程序 .ruby-version 中)设置为使用 Ruby 2.0.0-p247.我正在使用 ZSH 并尝试更新自制软件、rbenv 和冷启动.

Any insights is much appreciated. It looks like it's looking at the 1.9.3 version of Ruby but I've set the rbnenv global, shell and local (within the app .ruby-version) to use Ruby 2.0.0-p247. I'm using ZSH and have tried updating homebrew, rbenv and also a coldboot.

推荐答案

看起来这是一个已知问题,根据:https://github.com/37signals/pow/issues/363

It looks like this is an known issue as per: https://github.com/37signals/pow/issues/363

我必须删除主目录中的文件 .ruby-version ~ 才能使其工作.

I had to delete the file .ruby-version in my home directory ~ for it to work.

我希望这能帮助遇到同样问题的人.

I hope this helps people who has experienced the same problem.

这篇关于Pow 不能使用 RBENV 与 Ruby 2.0 一起工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆