RBENV: Cannot install some ruby version — Error: unknown type name ‘lzma_bool’

Sasikate Suwanchatree
2 min readApr 6, 2020

--

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😛.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Sasikate Suwanchatree
Sasikate Suwanchatree

Written by Sasikate Suwanchatree

Technical Product Management 🌱 Currently Building Cutting-Edge AI Solutions

No responses yet

Write a response