我正在尝试在我的Ubuntu 14.04上安装牛肉框架。
我收到了错误:
Gem::InstallError: public_suffix requires Ruby version >= 2.0.
An error occurred while installing public_suffix (2.0.5), and
Bundler cannot continue.
Make sure that `gem install public_suffix -v '2.0.5'` succeeds before
bundling.
我已经尝试安装ruby 2.4.0并且它工作了,我使用rvm:
root@XBuffer:/usr/share/beef-xss# rvm use ruby-2.4.0rvm
Using /usr/local/rvm/gems/ruby-2.4.0
但在使用bundle install
我甚至尝试过手动安装public_suffix:
root@XBuffer:/usr/share/beef-xss# gem install public_suffix -v '2.0.5'
Successfully installed public_suffix-2.0.5
Parsing documentation for public_suffix-2.0.5
Done installing documentation for public_suffix after 0 seconds
1 gem installed
但我仍然得到同样的错误。
我真的坚持这一点,并且我已经根据一些研究尝试了很多其他解决方案。