I have compiled IPhreeqc and PhreeqcRM using Cmake and Visual Studio 2019 community edition on Windows 10, but should work on other Windows systems as well. The source of PhreeqcRM comes from USGS. On Linux, I have used the usual configure, make, make install sequence of commands on my Linux Mint laptop.
You will most probably need Visual C++ Redistributable for VC 2019 - x64 to use the Windows library. The Linux version of the library should work out of the box. There are convenient Matlab and Julia wrappers for these libraries (Python is coming soon). Each wrapper downloads the right library from this repository, depending on your OS.
Please let me know if you can compile IPhreeqc and PhreeqcRM on mac and upload the libraries to this repository. I do not own a macbook (nor do I have any interest in acquiring one).