Project

General

Profile

Actions

Installing Wt on Mac OS X Leopard » History » Revision 15

« Previous | Revision 15/17 (diff) | Next »
Jake Petroules, 07/13/2012 02:37 PM
Brought article more up to date


h1. Installing Wt on OS X

{{toc}}

The following are generic installation instructions for installing Wt (from source) on OS X 10.5 "Leopard" and above.

Only support for the built-in httpd server is listed here. While this is most convenient for development, and also useful for deployment, we probably should expand these instructions to include support for the FastCGI connector.

h2. Requirements

h2. Preparation

h3. Build Boost

The following builds and installs Boost in /usr/local:

$ cd boost*
$ ./bootstrap.sh
$ sudo ./b2 install

If you would like to install in a different directory, you should run @./bootstrap.sh --prefix=/custom/directory@ instead.

You will get warnings that not all features will be built, but Wt doesn't require those.

If you used the --prefix option when building Boost, you will need to modify your dynamic library path:

$ export DYLD_LIBRARY_PATH=/custom/directory/lib:$DYLD_LIBRARY_PATH

h2. Building Wt

Get the "latest Wt version":http://sourceforge.net/projects/witty/files/wt/.

To build Wt, do the following:

$ cd wt-3*
$ mkdir build
$ cd build
$ cmake ../
$ make
$ make -C examples # to build the examples

NOTE: If you used the --prefix option when compiling Boost, you must run @cmake -DBOOST_DIR=/custom/directory@ instead of just @cmake@.

To run the examples, please see the "generic installation instructions":http://www.webtoolkit.eu/wt/doc/reference/html/Installation.html#examples-wthttpd.

Updated by Jake Petroules almost 12 years ago · 15 revisions