Skip to content

Commit f494a9f

Browse files
committed
Don't depend on 'rb-readline' on Windows
MSP-11585 `rb-readline` gem doesn't work with Ruby Installer for 1.9.3 because of `NoMethodError undefined method 'dlopen' for Fiddle:Module`. Removing `rb-readline` may be a temporary fix it if turns out that this is a bug with rb-readline or some other upstream bug.
1 parent 122928d commit f494a9f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

metasploit-framework.gemspec

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,14 @@ Gem::Specification.new do |spec|
7676
spec.add_runtime_dependency 'railties'
7777
# required for OS fingerprinting
7878
spec.add_runtime_dependency 'recog', '~> 1.0'
79-
# read... lines...
80-
spec.add_runtime_dependency 'rb-readline'
79+
80+
# rb-readline doesn't work with Ruby Installer due to error with Fiddle:
81+
# NoMethodError undefined method `dlopen' for Fiddle:Module
82+
unless Gem.win_platform?
83+
# Command line editing, history, and tab completion in msfconsole
84+
spec.add_runtime_dependency 'rb-readline'
85+
end
86+
8187
# Needed by anemone crawler
8288
spec.add_runtime_dependency 'robots'
8389
# Needed by some modules

0 commit comments

Comments
 (0)