To install Xcode Tools and the X11 SDK, follow the steps below.
Or if you have the MacOSX Installation Disc you might have Xcode in the Optional Installs.
- Run the Xcode Tools package installer.
- Click the button Customize, expand the Applications category and click the check box beside X11 SDK to add it to the default items.
- Ensure that the option for command line development, which is labeled Unix Development in the Xcode 3.x installer, is checked.
- Click Install to install Xcode Tools and the X11 SDK. If you are using OS X 10.4 (Xcode v2.x), use the Customize button before clicking Install and select X11 SDK.