
WebDSL is automatically built as a Nix package for Mac.
Apple Xcode: install from your DVD.
MacPorts: download and install MacPorts. If you already had ports installed, you may need to do an update:
sudo port -d selfupdate
Install the required ports:
sudo port install curl m4 autoconf automake pkgconfig libtool subversion
Add to your ~/.profile:
export PATH=/opt/local/bin/:$PATH
To make sure the ports version of these tools is used instead of the older ones in XCode (assuming the default MacPorts install directory).
The Nix package manager needs to be installed, version 0.13 or higher.
Download the latest nix build: Download -> Latest unstable release -> Source distribution nix-0.13*.tar.gz. Untar it
tar -xzf nix-*.tar.gz
configure it (no --prefix!)
cd nix-*
./configure
and then make && sudo make install.
make && sudo make install
To start using nix using your regular (non-root) account, do the following:
sudo chown -R $USER /nix
Next, run the shell script to configure the correct paths (and add this line to your ~/.profile file):
. /usr/local/etc/profile.d/nix.sh
and restart bash or source the .profile file.
. ~/.profile
Finally, install WebDSL using Nix:
nix-channel --add http://hydra.nixos.org/project/webdsl/channel/latest
nix-channel --update
nix-env -i webdsl
To update to the latest version:
nix-channel --update
nix-env -u webdsl
You may have to enable Java 6 SE, open
/Applications/Utilities/Java Preferences
to configure your Java version (drag Java 6 SE to the top). Add the JAVA_HOME and PATH environment variables in your ~/.profile file:
export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands:$PATH
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Download Tomcat 6.x, Binary Distributions, Core, tar.gz direct link
extract tar.gz file
tar -xzf apache-tomcat-*.tar.gz
and add bin dir to path, e.g.:
export PATH=/Users/someone/apache-tomcat-6.0.20/bin/:$PATH
and restart bash or source the .profile file.
. ~/.profile
Make the catalina.sh file executable:
chmod +x catalina.sh
Start tomcat using:
catalina.sh run
Extract tar.gz file:
tar -xzf mysql*.tar.gz
and add bin dir to path, e.g.:
export PATH=/Users/someone/mysql*/bin/:$PATH
Start mysql using:
mysqld&
If extracting the tar and running mysqld directly results in errors, try installing mysql using the .DMG and starting it using the prefpane or startup item included in the installation.