我最近试图调试一些东西,并且正在复制和粘贴一堆命令,我认为其中一个对我的RVM做了一些事情或者偶然安装了rbnv。
现在,当我尝试运行控制台之类的任何东西时,它都会保持冻结状态,无论我等待多久都不会做任何事情。当我退出进程时,我看到以下输出:
$ rails c
^C/Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/run.rb:98:in `gets': Interrupt
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/run.rb:98:in `verify_server_version'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/run.rb:56:in `run'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/run.rb:37:in `warm_run'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/run.rb:26:in `call'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/command.rb:7:in `call'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/rails.rb:24:in `call'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/command.rb:7:in `call'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client.rb:26:in `run'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/bin/spring:48:in `<top (required)>'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `load'
from /Users/c5227806/.rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/c5227806/Desktop/dev_projects/rails_projects/sciencevest/bin/spring:13:in `require'
from /Users/c5227806/Desktop/dev_projects/rails_projects/sciencevest/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
我一直在使用RVM,所以不确定发生了什么,因为我不是这些事情的专家。
当我这样做时:
$ rvm --version
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
当我这样做时:
$ rbenv local
-bash: rbenv: command not found
也许我错过了一些东西,或者问题可能完全不同。发生了什么事?
答案 0 :(得分:2)
我跑了这个:spring stop
现在一切都很好。不确定发生了什么。