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- 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- 7-
Code:
rvm gemset use global
8- 9- 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 is it 2.2.2 ?
if yes then run
Code:
gem install metasploit_data_models
hope my suloution fix your problem