Last Updated: February 25, 2016
·
981
· terukizm

install sl command(for Debian)

library:

apt-get install libncurses5-dev

get src and patch:
$ wget http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/sl.tar
$ wget http://www.izumix.org.uk/sl/sl5-1.patch
$ tar xvf sl.tar
$ cd sl
$ patch -p1 < ../sl5-1.patch

edit src:
sl.c


@@ -32,7 +32,7 @@
#include <strings.h>
#include <time.h>
#ifdef LINUX20
- #include <curses.h>
+ #include <ncurses/curses.h>
#else
#include <curses.h>
#endif
</pre>

compile:
$ make

setting path:
~/.bash_profile


export PATH=$PATH:~/sl/
</pre>

check:
$ sl -al