Installing SpatiaLite on Mac OS X

SpatiaLite and VirtualShape are SQLite extensions, so you need to install SQLite too, in order to allow them to operate.
There are various alternative ways you can follow at your choice:
  1. the standard distribution way:
  2. the doing it by hand way:
  3. the GUI tool way:
  4. the SQLiteGeo way:
Then I suggest you to download the test.db database and follow the tutorial step by step;
it's the fastest way to become accustomed with SpatiaLite and VirtualShape

The xxxx-macosx-universal-xxxxx packages support any kind of Mac architecture
In the Apple jargon they are universal binaries [aka fat binaries], i.e. they can be used indifferently on any one of the following architectures:
  • 32 bits Power PC processor [the so called ppc architecture]
  • 64 bits Power PC processor [the so called ppc64 architecture]
  • 32 bits Intel Core Duo processor [the so called i386 architecture]
  • 64 bits Intel Core Duo processor [the so called x86_64 architecture]
The Mac OS X system will then automatically select the right version to use at run time, accordingly to current target architecture.

Managing dynamic libraries

On Mac OS X systems, dynamic libraries are identified by a .dylib suffix
Usually they have a plain name i.e. somelib.dylib, but usually they supports a version name as well, i.e. somelib.1.0.dylib
Usually this is accomplished simply by creating a symbolic link, as in:

$ ln -s somelib.1.0.dylib somelib.dylib

Usually dynamic libraries must be placed in the /usr/lib directory
You can as well keep yours dynamic libraries in any other directory at your choice, but in this case you have to set en environment variable, as in:

$ LD_LIBRARY_PATH=/Users/user_name/my_preferred_dylib_dir
$ export LD_LIBRARY_PATH