Cygwin에 Ruby pry를 설치하십시오.
irb보다 강력하다고 여겨지는 pry이지만 설치가 번거롭기 때문에 비망록으로 여기에 기술합니다.
이전 준비
이전 준비
setup-x86_64.exe
에서 libreadline-devel: GNU readline and history libraries(development)
설치하십시오.
pry의 실행에는 Readline가 필수이기 때문에.
Ruby 2.3.3 컴파일 및 설치
Cygwin은 원래부터
ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-cygwin]
설치되었지만,
htps //w w. 루 by ぁん g. 오 rg / 그럼 /
에서 최신 (2016-12-18 시점) 소스 코드 ruby-2.3.3.tar.gz
가져와 설치합니다.
./configure --with-readline
make
make install
pry 설치
$ gem install pry pry-doc
ERROR: Loading command: install (Fiddle::DLError)
can't load kernel32
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
오류가 발생하므로 다음 파일
/usr/local/lib/ruby/2.3.0/win32/resolv.rb
의
dlload "kernel32"
의 부분을 다음과 같이 재작성한다
dlload "kernel32.dll"
다시 (Ruby 2.4.0에서는이 부분이 수정되었으므로 필요 없음)
$ gem install pry pry-doc
gem을 실행할 때 openssl 오류가 발생하는 경우
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
https에서 http로 변경하는 것이 쉽습니다 
$ gem source -r https://rubygems.org/
$ gem source -a http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn] yと入力
http://rubygems.org/ added to sources
이상
Cygwin은 원래부터
ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-cygwin]
설치되었지만,
htps //w w. 루 by ぁん g. 오 rg / 그럼 /
에서 최신 (2016-12-18 시점) 소스 코드 ruby-2.3.3.tar.gz
가져와 설치합니다.
./configure --with-readline
make
make install
pry 설치
$ gem install pry pry-doc
ERROR: Loading command: install (Fiddle::DLError)
can't load kernel32
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
오류가 발생하므로 다음 파일
/usr/local/lib/ruby/2.3.0/win32/resolv.rb
의
dlload "kernel32"
의 부분을 다음과 같이 재작성한다
dlload "kernel32.dll"
다시 (Ruby 2.4.0에서는이 부분이 수정되었으므로 필요 없음)
$ gem install pry pry-doc
gem을 실행할 때 openssl 오류가 발생하는 경우
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
https에서 http로 변경하는 것이 쉽습니다 
$ gem source -r https://rubygems.org/
$ gem source -a http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn] yと入力
http://rubygems.org/ added to sources
이상
$ gem install pry pry-doc
ERROR: Loading command: install (Fiddle::DLError)
can't load kernel32
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
$ gem install pry pry-doc
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
https에서 http로 변경하는 것이 쉽습니다

$ gem source -r https://rubygems.org/
$ gem source -a http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn] yと入力
http://rubygems.org/ added to sources
이상