As a note: I had this problem with rbenv install 2.2.1 (and the libffi-dev installation was resolved), but not with version 2.2.2, which is currently missing. You should use the latest hotfix anyway to resolve this issue. I am interested to know if I have the only problem with 2.2.1, not 2.2.2.
source share