找不到有效的宝石' ruby​​'

时间:2015-11-13 15:57:29

标签: ruby-on-rails rubygems raspberry-pi bundle metasploit

我试图在Raspberry Pi模型B +上安装Metasploit

由于我是Metasploit和Gems环境的新手,我正在关注此链接中的详细信息Installing Metasploit on Raspberry,一切正常,直到我进行捆绑

PERSISTED

所以它说我应该安装metasploit-concern v 1.0.0

然后我尝试使用以下代码root@ raspberrypi: ~/msf3# bundle install 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. sh: 1: cannot create /2015110401 / null: Directory nonexistent fatal: Not a git repository(or any of the parent directories): .git Fetching gem metadata from https: //rubygems.org/......... Fetching version metadata from https: //rubygems.org/.. Resolving dependencies............................................................................ Using rake 10.4.2 Using i18n 0.7.0 Using minitest 4.7.5 Using multi_json 1.11.2 Using thread_safe 0.3.5 Using tzinfo 0.3.44 Using activesupport 4.0.13 Using builder 3.1.4 Using erubis 2.7.0 Using rack 1.5.5 Using rack - test 0.6.3 Using actionpack 4.0.13 Using mime - types 2.6.1 Using mail 2.6.3 Using actionmailer 4.0.13 Using activemodel 4.0.13 Using activerecord - deprecated_finders 1.0.4 Using arel 4.0.2 Using activerecord 4.0.13 Using arel - helpers 2.1.0 Using ffi 1.9.8 Using childprocess 0.5.5 Using diff - lcs 1.2.5 Using gherkin 2.12.2 Using multi_test 0.1.2 Using cucumber 1.3.19 Using rspec - expectations 2.99.2 Using aruba 0.6.2 Using bcrypt 3.1.10 Using bundler 1.10.6 Using mini_portile 0.6.2 Using nokogiri 1.6.6.2 Using xpath 2.0.0 Using capybara 2.4.4 Using coderay 1.1.0 Using thor 0.19.1 Using railties 4.0.13 Using hike 1.2.3 Using tilt 1.4.1 Using sprockets 2.12.3 Using sprockets - rails 2.2.4 Using rails 4.0.13 Using cucumber - rails 1.4.2 Using docile 1.1.5 Using factory_girl 4.5.0 Using factory_girl_rails 4.5.0 Using fivemat 1.2.1 Using rkelly - remix 0.0.6 Using jsobfu 0.2.1 Using json 1.8.3 Using metasm 1.0.2 Installing metasploit - concern 1.0.0 Gem::InstallError: metasploit - concern requires Ruby version >= 2.1. An error occurred while installing metasploit - concern(1.0.0), and Bundler cannot continue. Make sure that `gem install metasploit-concern -v '1.0.0'` succeeds before bundling. gem install metasploit-concern -v '1.0.0'

gem install metasploit-concern

然后我尝试安装Ruby 2.1和ruby

ERROR: Error installing metasploit-concern: metasploit-concern requires Ruby version >= 2.1.

root@raspberrypi:~/msf3# gem install Ruby -v '2.1' ERROR: Could not find a valid gem 'Ruby' (= 2.1) in any repository ERROR: Possible alternatives: ruby

现在,你可以看到它的漏洞而且我被卡住了

p.s *已经安装了ruby-dev     *每次在 R uby和 r uby之间尝试切换     *捆绑时说(使用)而不是(安装)因为我试图重新运行捆绑包以查看它是否可行     *我也试过采购root@raspberrypi:~/msf3# gem install ruby ERROR: Could not find a valid gem 'ruby' (>= 0) in any repository ERROR: Possible alternatives: ruby。和gem sources -a https://rubygems.org

我试图提供所有可能的信息,也许它有用,也许不是......以防万一

我非常感谢帮助 提前致谢

干杯 班

1 个答案:

答案 0 :(得分:0)

Ruby不是宝石。 Ruby是编程语言。

错误告诉您,您的计算机上的Ruby版本(尝试运行ruby --version)低于您尝试安装的应用程序所需的版本。

我特别不熟悉Metasploit,但您的选择似乎是:

  1. 尝试升级已安装的内容(apt-get update && apt-get upgrade),

  2. 如果您使用的是存储库中可用的最新版本的Ruby,请尝试使用Ruby version manager(我的偏好是rbenv,但每个都有其优点),或者

  3. compile Ruby from source