Blame docs/build-on-darwin.md
|
Packit Service |
7770af |
To install LibSass, make sure the OS X build tools are installed:
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
xcode-select --install
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
## Homebrew
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
To install homebrew, see [http://brew.sh](http://brew.sh)
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
You can install the latest version of LibSass quite easily with brew.
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
brew install --HEAD libsass
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
To update this, do:
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
brew reinstall --HEAD libsass
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
Brew will build static and shared libraries, and a `libsass.pc` file in `/usr/local/lib/pkgconfig`.
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
To use `libsass.pc`, make sure this path is in your `PKG_CONFIG_PATH`
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
## Manually
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
See the linux instructions [Building-with-autotools](build-with-autotools.md) or [Building-with-makefiles](build-with-makefiles.md)
|