Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have seen this question on the source code of SQLite. However, I can not make sense on how to build SQLite on my Mac OS 10.6 from scratch, esp. an old version. What steps do I need?

share|improve this question

migrated from Oct 23 '10 at 14:39

This question came from our site for professional and enthusiast programmers.

This is not quite programming related. I’ll shift it to – Gumbo Oct 23 '10 at 14:39
up vote 1 down vote accepted

The SQLite project recommends using their amalgamation package which bundles in source files for dependencies.

The amalgamation and the sqlite3.h header file are available on the download page as a file named where the X's are replaced by the appropriate version number.appropriate version number.

You can change the URL for the current amalgamation download to get the older version that you want.

Once you have that, open up the zip file or tar.gz (aka tarball) download. The INSTALL file gives instructions, but they're standard for most source build downloads:

  1. cd into the source directory
  2. Run the configuration script to make makefiles for your environment: ./configure
  3. Run make
  4. Run make install -- typically using sudo to gain the permissions you need: sudo make install
share|improve this answer
thanks, very helpful! – poseid Oct 24 '10 at 13:20

I would recommend you to take a look at MacPorts project. You could build SQLite from sources using MacPorts.

share|improve this answer
thanks, I know MacPorts. I would like to get an old version of sqlite to make some changes, and experiment with it. do you know how to access their CVS repository. Also, it would be useful to me to have some old ("simpler") version of the project. – poseid Oct 23 '10 at 14:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .