RBENV: Cannot install some ruby version — Error: unknown type name ‘lzma_bool’
Note for my self but hope it helps someone also :)
If you found this error after $ rbenv install 2.x.x
.
/usr/local/include/Block.h:264:2: error: unknown type name 'lzma_bool'
lzma_bool reserved_bool3;
^

If you google “error: unknown type name ‘lzma_bool”, not many direct answers but I found this article and follow this comment.

After
$ brew doctor
, I found 4 warnings but normally you don’t need to fix all warning to get thing done;
I fixed only 1 warning, that ask to reinstall a package below;
$ brew cask reinstall xquartz# if you have permission error after this, do
$ sudo chown $(whoami):admin /usr/local/Caskroom# To confirm the package is updated
$ brew update(You will see message updated on the package ==> Updated Casks)
🎉 It works! Passed the error line. 💕
but I found another Error!
Working tree error when rbenv install of any ruby versions on macOS Catalina.
If you want to continue to see my tough life,
check RBENV: Workinbg tree error when rbenv install some ruby versions on macOS Catalina😛.