如何在 MacOSX 上使用 brew 安装特定版本的 boost?

Sma*_*ess 7 command-line macintosh

命令“brew install boost”在我的 MacOSX 上对我有用,但它安装了最新的 boost 1.57。如何使用 brew 安装较旧的 1.55?

小智 11

你会想跑 brew install boost@1.55

$ brew search boost
==> Formulae
boost ?                           boost-build                       
boost-python                      boost-python@1.59                 
boost@1.57                        boost@1.60 ?
boost-bcp                         boost-mpi                     
boost-python3                     boost@1.55                        boost@1.59

==> Casks
boostnote                                focus-booster                            
iboostup                                 nosqlbooster-for-mongodb                 
turbo-boost-switcher
Run Code Online (Sandbox Code Playgroud)