====== 2019.08.05 久しぶりにSLコマンド ======
久しぶりにslコマンドをインストールしてみた。
今はソースがgitに上がってた
[[02_freebsd:99_その他:01_sl]]
===== インストール =====
# git clone https://github.com/mtoyoda/sl.git
# cd sl
# make
# cp ./sl /usr/bin/
===== エラー =====
make でエラー。
[root@fl8 sl]# make
gcc -O -Wall -o sl sl.c -lncurses
sl.c:41:20: error: curses.h: No such file or directory
sl.c: In function ‘my_mvaddstr’:
sl.c:62: error: ‘ERR’ undeclared (first use in this function)
sl.c:62: error: (Each undeclared identifier is reported only once
sl.c:62: error: for each function it appears in.)
sl.c:64: warning: implicit declaration of function ‘mvaddch’
sl.c:65: error: ‘OK’ undeclared (first use in this function)
sl.c: In function ‘main’:
sl.c:92: warning: implicit declaration of function ‘initscr’
sl.c:94: warning: implicit declaration of function ‘noecho’
sl.c:95: warning: implicit declaration of function ‘curs_set’
sl.c:96: warning: implicit declaration of function ‘nodelay’
sl.c:96: error: ‘stdscr’ undeclared (first use in this function)
sl.c:96: error: ‘TRUE’ undeclared (first use in this function)
sl.c:97: warning: implicit declaration of function ‘leaveok’
sl.c:98: warning: implicit declaration of function ‘scrollok’
sl.c:98: error: ‘FALSE’ undeclared (first use in this function)
sl.c:100: error: ‘COLS’ undeclared (first use in this function)
sl.c:102: error: ‘ERR’ undeclared (first use in this function)
sl.c:110: warning: implicit declaration of function ‘getch’
sl.c:111: warning: implicit declaration of function ‘refresh’
sl.c:114: warning: implicit declaration of function ‘mvcur’
sl.c:114: error: ‘LINES’ undeclared (first use in this function)
sl.c:115: warning: implicit declaration of function ‘endwin’
sl.c: In function ‘add_sl’:
sl.c:139: error: ‘ERR’ undeclared (first use in this function)
sl.c:140: error: ‘LINES’ undeclared (first use in this function)
sl.c:143: error: ‘COLS’ undeclared (first use in this function)
sl.c:158: error: ‘OK’ undeclared (first use in this function)
sl.c: In function ‘add_D51’:
sl.c:183: error: ‘ERR’ undeclared (first use in this function)
sl.c:184: error: ‘LINES’ undeclared (first use in this function)
sl.c:187: error: ‘COLS’ undeclared (first use in this function)
sl.c:199: error: ‘OK’ undeclared (first use in this function)
sl.c: In function ‘add_C51’:
sl.c:223: error: ‘ERR’ undeclared (first use in this function)
sl.c:224: error: ‘LINES’ undeclared (first use in this function)
sl.c:227: error: ‘COLS’ undeclared (first use in this function)
sl.c:239: error: ‘OK’ undeclared (first use in this function)
make: *** [sl] Error 1
==== 対処 ====
ncurses-develをインストールすればOK
[root@fl8 ~]# yum install ncurses-devel
{{tag>日記}}