Project

General

Profile

Actions

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, and 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@.

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

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

Updated by Amine Chadly over 11 years ago ยท 17 revisions