【发布时间】:2020-03-31 22:17:42
【问题描述】:
我在我的 mackbook 上运行 wpscan 的安装:https://blog.sucuri.net/2015/10/install-wpscan-wordpress-vulnerability-scan.html
在命令之前一切都很完美:sudo gem install bundler && sudo bundle install --without test
我得到错误:
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'test'`, and stop using this flag
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler found conflicting requirements for the Ruby version:
In Gemfile:
Ruby
wpscan was resolved to 3.7.11, which depends on
Ruby (>= 2.4)
Ruby (>= 2.4), which is required by gem 'wpscan', is not available in the local
ruby installation
如何解决这个问题?
【问题讨论】:
-
这里有几件事。首先,您可能没有像 RVM 或 rbenv 那样安装 Ruby 管理器。我建议您使用
\curl -sSL https://get.rvm.io | bash -s stable安装RVM,然后重新启动您的shell,然后使用rvm install 2.4安装Ruby,然后您可以重试您的gem命令。但请注意,在使用 RVM(或任何其他 Ruby 管理器)时,您将永远使用sudo,因此在执行与 Ruby 相关的操作时,请确保从这些说明中的任何命令中删除sudo. -
@anothermh 我不太明白你在说什么我没有这方面的技能,对不起我的无知。我只有我在问题中链接的指南,您能耐心地向我解释一下我能做什么吗?
标签: ruby macos installation