PHP questions

Your software
My Mautic version is:4.4.9
My PHP version is:8.2.7
My Database type and version is:

Your problem
My problem is: I know that I need to install PHP that its version is between 7.4.0 to 8.1.0, but I cannot make it in my MacBook.I tried phpenv install 7.4.0

These errors are showing in the log:Please reinstall the BZip2 distribution

Steps I have tried to fix the problem:reinstall BZip2 but not work