Skip to content

Installing on Debian

haruna edited this page Jun 21, 2021 · 3 revisions

As privileged (root) user

apt-get install libzip-dev libxml2-dev bison  libncurses5-dev libncursesw5-dev

(probably overkill for just gcc)

apt-get install build-essential

Some prefer to keep local packages more isolated by using stow.
Makefile edits below reflect stow location

apt-get install stow

As regular user

# if you want to build a tagged release:
git clone https://github.com/andmarti1424/sc-im.git
cd sc-im/
# select for example tagged release v0.2.1
git checkout -b local-debian-v0.2.1 v0.2.1

# if you want latest commit at depgraph branch, just do:
git clone https://github.com/andmarti1424/sc-im

cd src/
editor Makefile

Changes to make to Makefile
xlsreader was not found in main-line Debian.

-prefix=/usr
+prefix=/usr/local/stow/sc-im
-DFLT_PAGER := -DDFLT_PAGER=\"less\"
+DFLT_PAGER := -DDFLT_PAGER=\"pager\"
-#YACC := bison -y
+YACC := bison -y
-XLSX :=
-#XLSX := -DXLSX
+#XLSX :=
+XLSX := -DXLSX
-LDLIBS := -lm -lncurses
+#LDLIBS := -lm -lncurses
+LDLIBS := -lm -lncursesw -lzip -lxml2

As regular user (continued)

make
make install

as privileged (staff) user

stow --dir=/usr/local/stow sc-im