aboutsummaryrefslogtreecommitdiff
path: root/INSTALL.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-27 18:29:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-27 18:29:25 +0200
commit2891b38885ca8f64094741aa47bdbd2ce3a232ef (patch)
tree3d20c171ef691ec80f6ef825f9406e011de9ddd8 /INSTALL.cli
parent81b246ea435edf9f97d4fa75a6267d55ebef8a5a (diff)
Update INSTALL file with Mac OS notes, fixes
Diffstat (limited to 'INSTALL.cli')
-rw-r--r--INSTALL.cli40
1 files changed, 36 insertions, 4 deletions
diff --git a/INSTALL.cli b/INSTALL.cli
index b419926..9f72067 100644
--- a/INSTALL.cli
+++ b/INSTALL.cli
@@ -24,6 +24,20 @@ accordingly. Note that even if \c{/usr/local/lib} is searched at runtime, you
may still have to run \cb{ldconfig(1)} (as \c{root}) after the installation to
refresh the library cache.
+Note for Mac OS users: you will need version 10.5 (Leopard) or later. We will
+also be using the system C++ toolchain that comes with the Xcode Command Line
+Tools. To verify it is installed, run:
+
+\
+$ g++ --version
+\
+
+To install Command Line Tools, run:
+
+\
+$ xcode-select --install
+\
+
\dl|
\li|1. Installing SQLite\n
@@ -52,6 +66,24 @@ refresh the library cache.
# pkg install sqlite3
\
+ For Mac OS:
+
+ You should already have a system-default version installed. To verify:
+
+ \
+ $ ls /usr/include/sqlite3.h /usr/lib/libsqlite3.dylib
+ \
+
+ To see which version you have, run:
+
+ \
+ $ grep '#define SQLITE_VERSION' /usr/include/sqlite3.h
+ \
+
+ Any recent version (i.e., greater than 3.5.0) should work. If for some
+ reason you don't seem to have SQLite, download the source code then build
+ and install it into \c{/usr/local}.
+
|
\li|\n2. Installing \c{libodb} and \c{libodb-sqlite}\n
@@ -88,7 +120,7 @@ refresh the library cache.
$ cd build2-toolchain-X.Y.Z
$ cd build2/
$ ./bootstrap
- $ ./build/b-boot config.bin.rpath=/usr/local/lib update
+ $ ./build2/b-boot config.bin.rpath=/usr/local/lib update
\
For more information on this step (for example, how to specify the C++
@@ -100,7 +132,7 @@ refresh the library cache.
\
$ cd .. # back to build2-toolchain-X.Y.Z
- $ ./build2/build/b \
+ $ ./build2/build2/b \
config.cxx.poptions=-I/usr/local/include \
config.cxx.loptions=-L/usr/local/lib \
config.bin.rpath=/usr/local/lib \
@@ -108,8 +140,8 @@ refresh the library cache.
config.install.root.sudo=sudo \
configure
- $ ./build2/build/b update
- $ ./build2/build/b install
+ $ ./build2/build2/b update
+ $ ./build2/build2/b install
\
To test the installation, run: