遇见错误信息
Error: sdl2: undefined method `cellar' for #<BottleSpecification:0x00007fe189128438>
解决办法:
1. 使用brew doctor看一下警告
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
readline
sqlite
openssl@1.1
2. 使用 brew link readline ,这样就可以创建Cellar了
3. 之后在brew install sdl2,解决