Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@edouard-lopez

This comment has been minimized.

Copy link
Owner Author

@edouard-lopez edouard-lopez commented Dec 29, 2014

see my question/answer How to install node-sass/gulp-sass on Ubuntu 14.04+ or Linux Mint 17+? on AskUbuntu for more information.

@chopfitzroy

This comment has been minimized.

Copy link

@chopfitzroy chopfitzroy commented Feb 18, 2016

Hey,

so just to clarify why are you running this code:

cd libsass
autoreconf --force --install
cd ..
cd libsass
autoreconf --force --install

Why do you cd in and out of libsass and why run autoreconf --force --install twice? I looked at Stack Overflow post about static and shared but couldn't quite understand?

Cheers,
Otis.

@mastir

This comment has been minimized.

Copy link

@mastir mastir commented Aug 31, 2016

# 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
cd libsass
autoreconf  --install

works like a charm

@t1gor

This comment has been minimized.

Copy link

@t1gor t1gor commented Jan 9, 2017

Thank you! Very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment