Skip to content

Install sc im with xls support on macOS

haruna edited this page Jun 21, 2021 · 4 revisions
  1. Install command line tools from Xcode.

  2. Install libxls with make:

wget https://github.com/libxls/libxls/releases/download/v1.6.2/libxls-1.6.2.tar.gz
tar -zxvf $_ && cd $_
make
sudo make install
  1. Install libxml2:
brew install libxml2
  1. Link libxml2 to pkgconfig with:
sudo ln -s /usr/local/Cellar/libxml2/2.9.7/lib/pkgconfig/libxml-2.0.pc /usr/local/lib/pkgconfig/libxml-2.0.pc
  1. Clone SC-IM:
git clone https://github.com/andmarti1424/sc-im
  1. Add additional config to SC-IM src/Makefile:
CFLAGS  += -DXLS -I/usr/local/libxls/include
LDFLAGS += -L/usr/local/libxls/lib
LDLIBS  += -lxlsreader
  1. Install SC-IM:
make clean
make
sudo make install