Created
December 19, 2025 13:25
-
-
Save skypesky/8eb7867f2899f424a5aec30e16a47a27 to your computer and use it in GitHub Desktop.
How to build sqlite3 from source code(Mac OS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p ~/test && cd ~/test | |
| wget https://www.sqlite.org/2023/sqlite-amalgamation-3430200.zip # 3.43.2 对应压缩包 | |
| unzip sqlite-amalgamation-3430200.zip | |
| cd sqlite-amalgamation-3430200 | |
| gcc -arch arm64 -DSQLITE_ENABLE_LOAD_EXTENSION=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK -o sqlite3 shell.c sqlite3.c -lpthread -lm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment