本文介绍了没有找到PTY宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Windows上安装了Ruby 1.9.3。当我尝试要求gem时,控制台输出找不到宝石:
I have Ruby 1.9.3 installed on windows. When I try to require the gem the console outputs that the gem was not found:
require 'pty'
以下输出:
Which outputs:
'require': cannot load such file -- pty <LoadError>
另外我试过:
Also I tried:
gem install pty
得到以下输出:
Could not find a valid gem 'pty' in any repository
我如何解决这个问题?
推荐答案
据我所知,没有PTY因为它们没有伪终端功能,因此它们适用于Windows。
As far as I know, there is no PTY module implementation for Windows as they don't have pseudo-terminal capabilities.
这篇关于没有找到PTY宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!