Results 1 to 3 of 3

Thread: Ruby Wrong Version problem

  1. #1
    Join Date
    2015-Mar
    Posts
    2

    Ruby Wrong Version problem

    Hello, could I seem to have a problem regarding the ruby version. When entered the command " ruby -v " it shows that my current Ruby version is 1.9.3p194, but when I entered the command " rvm list " it shows me that my Ruby version is 2.2.1. Kali seems to treat Ruby as version 1.9.3p194 because I can't install the metasploit_data_models-0.23.1 and I need Ruby version 2.1 and above for it to be installed.

  2. #2
    Join Date
    2015-Apr
    Posts
    3
    i think i have the same problem as you but my error is :
    Code:
     metasploit-concern -v '0.4.0'
    look bro at first try to run
    Code:
    gem install metasploit_data_models
    if it dosn't work then go and install ruby latest version by following that steops

    1-
    Code:
    apt-get autoremove
    2-
    Code:
    apt-get install build-essential zlib1g zlib1g-dev libreadline6 libreadline6-dev libssl-dev
    3-
    Code:
    \curl -L https://get.rvm.io | bash -s -- --ignore-dotfiles --autolibs=0 --ruby
    4-
    Code:
    source /etc/profile.d/rvm.sh
    5-
    Code:
    type rvm | head -n 1
    6-
    Code:
    ruby -v
    7-
    Code:
    rvm gemset use global
    8-
    Code:
    gem update
    9-
    Code:
    gem install rails
    then open a new terminal click : Edit --> profile preferences --> title and command --> √ on 'run command as a login shell
    then close all terminals and open new one write
    Code:
    ruby -v
    is it 2.2.2 ?
    if yes then run
    Code:
    gem install metasploit_data_models
    hope my suloution fix your problem

  3. #3
    Join Date
    2016-May
    Posts
    3
    I was able to use these steps to update Ruby, but this has broken metasploit:


    root@kali:/# msfconsole
    Ignoring bcrypt-3.1.10 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.10
    Could not find rake-10.4.2 in any of the sources
    Run `bundle install` to install missing gems.


    'bundle install' gives errors:

    Could not locate Gemfile or .bundle/ directory



    'gem pristine bcrypt --version 3.1.10' gives error:

    root@kali:/# gem pristine bcrypt --version 3.1.10
    ERROR: While executing gem ... (Gem::Exception)
    Failed to find gems ["bcrypt"] = 3.1.10




    I took a machine snapshot so I'm going to revert back, but wanted to share my results in case anyone else has this issue.

Similar Threads

  1. Live USB kernel version is wrong, so rtl8812au driver install breaks
    By P1cklebeast in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2018-06-09, 00:31
  2. NetHunter version number wrong?
    By mattw in forum NetHunter Development
    Replies: 1
    Last Post: 2015-08-30, 17:44
  3. update problem, ruby-zip
    By itsafely in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2015-03-04, 12:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •