我试图按照指南在Heroku上获取Clojure应用程序。一切正常,除了在本地运行。我正在使用Windows 7。
步骤说:
1我必须是管理员,但安装顺利
当我执行2时,我得到:
C:/Program Files (x86)/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- pty (LoadError)
from C:/Program Files (x86)/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Program Files (x86)/Ruby192/lib/ruby/gems/1.9.1/gems/foreman-0.19.0/lib/foreman/engine.rb:4:in `<top (required)>'
from C:/Program Files (x86)/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Program Files (x86)/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Program Files (x86)/Ruby192/lib/ruby/gems/1.9.1/gems/foreman-0.19.0/lib/foreman/cli.rb:2:in `<top (required)>'
from C:/Program Files (x86)/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Program Files (x86)/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Program Files (x86)/Ruby192/lib/ruby/gems/1.9.1/gems/foreman-0.19.0/bin/foreman:5:in `<top (required)>'
from C:/Program Files (x86)/Ruby192/bin/foreman:19:in `load'
from C:/Program Files (x86)/Ruby192/bin/foreman:19:in `<main>'
我错过了什么?
当我运行gem环境时,我得到:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.6
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Program Files (x86)/Ruby192/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: "C:/Program Files (x86)/Ruby192/bin/ruby.exe"
- EXECUTABLE DIRECTORY: C:/Program Files (x86)/Ruby192/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Program Files (x86)/Ruby192/lib/ruby/gems/1.9.1
- C:/Users/henrik/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
答案 0 :(得分:1)
取代我的第一个答案,因为它完全不合时宜。
看起来pty
是标准Ruby的一部分:http://ruby-doc.org/stdlib/libdoc/pty/rdoc/index.html
然而,基于this old forum post的粗略一瞥,看起来Ruby的pty
需要在Windows上实现一些不太直接的东西,所以它很可能在Windows上不可用在这一点上。