Skip to content

Instantly share code, notes, and snippets.

@joseluis
Forked from edouard-lopez/libsass-install.bash
Created February 19, 2016 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseluis/a3e0fc865d6691bfd138 to your computer and use it in GitHub Desktop.
Save joseluis/a3e0fc865d6691bfd138 to your computer and use it in GitHub Desktop.
Installing/Compiling libsass and sassc on Ubuntu 14.04+/Linux Mint 17+ (needed by node-sass)
# Based on https://github.com/sass/libsass/wiki/Building-with-autotools
# Install dependencies
apt-get install automake libtool
# Fetch sources
git clone https://github.com/sass/libsass.git
git clone https://github.com/sass/sassc.git libsass/sassc
# Create configure script
cd libsass
autoreconf --force --install
cd ..
# Create custom makefiles for **shared library**, for more info read:
# 'Difference between static and shared libraries?' before installing libsass http://stackoverflow.com/q/2649334/802365
cd libsass
autoreconf --force --install
./configure \
--disable-tests \
--enable-shared \
--prefix=/usr
cd ..
# Build the library
make -C libsass -j5
# Install the library
sudo make -C libsass -j5 install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment