# Toolkit Installation on Mac OS X

Toolkit installation on Mac OS X is essentially identical to installation on Linux but special steps are needed before starting.

First, you must install the toolkit as the `root` user or you will be denied permission. The `root` user account is disabled by default and so you must enable it in order to login. Follow instructions at Enabling the "root" user in Mac OS X to enable the account and login. After installation, toolkit programs should be run from a normal user account.

Second, Mac OS X does not include C Language development tools by default. You must download and install them in order to build the toolkit. You can download and install them from the Apple website or (if you are ambitious) download, compile and install them from various open source websites. Consider using Xcode on Mac OS X Leopard or Lion.

Login as the root user and download or copy the toolkit archive file to your preferred folder then follow the instructions for installing the toolkit on Linux.

## Setting the `PATH` variable on OS X

While still logged in as the `root` user, edit `/etc/profile` and add folder`/usr/local/bin` to the `PATH` definition found there. This will ensure that all users can access toolkit programs. The change may not take effect until the next time you login or open a new command shell.

    PATH="/bin:/sbin:/usr/local/bin"

## Installing the Toolkit on Mac OS X

While still logged in as the `root` user, remember to delete the toolkit source folder or, at least change ownership of all files in the toolkit folder, so that you can access and/or remove them later.

    cd ..
    rm -r plc-utils-x.x.x