til icon indicating copy to clipboard operation
til copied to clipboard

Building sqlite3_rsync requires `gmake` on macOS

Open gwk opened this issue 5 months ago • 0 comments

Hi Simon, your "compile-sqlite3-rsync" page seems to be the top hit these days. After a good dealing of puzzling over why make sqlite3_rsync was failing I realized that it is because Apple's /usr/bin/make is GNU Make 3.81 and it does not understand something about sqlite's makefiles (perhaps the include of main.mk). To further confuse things, homebrew has this caveat in its "make" recipe that I only saw once I did a reinstall:

Caveats GNU "make" has been installed as "gmake". If you need to use it as "make", you can add a "gnubin" directory to your PATH from your bashrc like: ...

So building on gary_0's tip, the script for macOS is:

brew install make
git clone https://github.com/sqlite/sqlite.git
cd sqlite
./configure
gmake sqlite3-rsync

Building from the "Complete canonical source tree" on https://www.sqlite.org/download.html also works!

Thanks for all your great blogging :)

gwk avatar Aug 05 '25 18:08 gwk