Ruby 此计算机上未实现NotImplementedError(authenticated?()函数

Ruby 此计算机上未实现NotImplementedError(authenticated?()函数,ruby,macos,openssl,osx-elcapitan,Ruby,Macos,Openssl,Osx Elcapitan,我有以下代码: require 'openssl' OpenSSL::Cipher.new("AES-256-CFB").authenticated? 无论我传入什么算法(OpenSSL::Cipher.ciphers返回的任何类型),我都会得到以下异常: NotImplementedError (authenticated?() function is unimplemented on this machine 设置: OS X(El Capitan)10.11.3 ruby 2.0.0p

我有以下代码:

require 'openssl'
OpenSSL::Cipher.new("AES-256-CFB").authenticated?
无论我传入什么算法(OpenSSL::Cipher.ciphers返回的任何类型),我都会得到以下异常:

NotImplementedError (authenticated?() function is unimplemented on this machine
设置:

OS X(El Capitan)10.11.3

ruby 2.0.0p645(2015-04-13修订版50299)[universal.x86_64-darwin15]


如果您能帮助解决此问题,我们将不胜感激。我已经在*nix和非El Capitan机器上确认了这一点。

您确定您使用的是Ruby 2.0吗?它看起来像是Ruby 2.0中添加了
OpenSSL::Cipher\authenticated?
Ruby\u版本可以得到什么?是的:Ruby-v Ruby 2.0.0p645(2015-04-13修订版50299)[universal.x86_64-darwin15]$irb irb(main):001:0>RUBY_版本=>“2.0.0”什么版本的OpenSSL?(
OpenSSL::OpenSSL_版本
)您可能需要升级您的OpenSSL.OpenSSL 0.9.8zc 2015年3月19日是的,您应该尝试升级OpenSSL。这里的答案描述了如何使用自制软件:您确定使用Ruby 2.0吗?它看起来像是Ruby 2.0中添加了
OpenSSL::Cipher\35; authenticated?
。您从
Ruby\u版本
中得到了什么?是的:Ruby-v Ruby 2.0。0p645(2015-04-13修订版50299)[universal.x86_64-darwin15]$irb irb(main):001:0>RUBY_VERSION=>“2.0.0”什么版本的OpenSSL?(
OpenSSL::OpenSSL_VERSION
)您可能需要升级您的OpenSSL。OpenSSL 0.9.8zc 2015年3月19日是的,您应该尝试升级OpenSSL。这里的答案描述了如何使用自制软件完成此操作: