没有找到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.