Skip to content

Building sqlite3_rsync requires gmake on macOS #104

@gwk

Description

@gwk

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions