使用 Ruby gem 独立安装 Ruby-OAuth pkg?
Installation of Ruby-OAuth pkg with Ruby gems more platform independently?
我想得到这个包 ruby-auth here,最初是为 Debian 开发的,工作更独立于平台。我可以在 Debian 中使用它,但 macOS 的 brew 包管理器不包含它。我想让同一个工具独立于平台工作,所以试图让 oauth 从 gems 工作,但出现以下错误。
如何让 Oauth1 命令行工具以更独立于平台的方式工作?
Ruby 宝石导致一些错误
Can I get the oauth tool somehow to work with gems pkg-manager?
$ gem install oauth
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
and even with sudo some error (I would like to avoid using sudo, not to mess up the originals)
$ sudo gem install oauth
$ oauth
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file --
active_support/core_ext/string/inflections (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'
from /Library/Ruby/Gems/2.0.0/gems/oauth-0.5.3/lib/oauth/cli.rb:8:in <top
(required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'
from /Library/Ruby/Gems/2.0.0/gems/oauth-0.5.3/bin/oauth:4:in
'
from /usr/local/bin/oauth:23:in load'
from /usr/local/bin/oauth:23:in
'
我测试了 activesupport 依赖问题,正如 max pleaner 评论的那样,
gem install activesupport oauth
这修复了 macOS
和 Windows 10 Enterprise
中的 oauth 加载错误。 Windows10,我用的是RubyInstaller.org最新的2.4.1安装介质。
我想得到这个包 ruby-auth here,最初是为 Debian 开发的,工作更独立于平台。我可以在 Debian 中使用它,但 macOS 的 brew 包管理器不包含它。我想让同一个工具独立于平台工作,所以试图让 oauth 从 gems 工作,但出现以下错误。
如何让 Oauth1 命令行工具以更独立于平台的方式工作?
Ruby 宝石导致一些错误
Can I get the oauth tool somehow to work with gems pkg-manager?
$ gem install oauth ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
and even with sudo some error (I would like to avoid using sudo, not to mess up the originals)
$ sudo gem install oauth $ oauth /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- active_support/core_ext/string/inflections (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /Library/Ruby/Gems/2.0.0/gems/oauth-0.5.3/lib/oauth/cli.rb:8:in<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Library/Ruby/Gems/2.0.0/gems/oauth-0.5.3/bin/oauth:4:in
' from /usr/local/bin/oauth:23:inload' from /usr/local/bin/oauth:23:in
'
我测试了 activesupport 依赖问题,正如 max pleaner 评论的那样,
gem install activesupport oauth
这修复了 macOS
和 Windows 10 Enterprise
中的 oauth 加载错误。 Windows10,我用的是RubyInstaller.org最新的2.4.1安装介质。