| 1 | To install LibSass, make sure the OS X build tools are installed: |
| 2 | |
| 3 | xcode-select --install |
| 4 | |
| 5 | ## Homebrew |
| 6 | |
| 7 | To install homebrew, see [http://brew.sh](http://brew.sh) |
| 8 | |
| 9 | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
| 10 | |
| 11 | You can install the latest version of LibSass quite easily with brew. |
| 12 | |
| 13 | brew install --HEAD libsass |
| 14 | |
| 15 | To update this, do: |
| 16 | |
| 17 | brew reinstall --HEAD libsass |
| 18 | |
| 19 | Brew will build static and shared libraries, and a `libsass.pc` file in `/usr/local/lib/pkgconfig`. |
| 20 | |
| 21 | To use `libsass.pc`, make sure this path is in your `PKG_CONFIG_PATH` |
| 22 | |
| 23 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig |
| 24 | |
| 25 | ## Manually |
| 26 | |
| 27 | See the linux instructions [Building-with-autotools](build-with-autotools.md) or [Building-with-makefiles](build-with-makefiles.md) |