ユーザ用ツール

サイト用ツール


サイドバー



最近の更新



Tag Cloud

タグ#
6
10
1
3
1
2
17
7
1
1
6
9
4
1
2
183
1
4
2
7
14
5
1
25
2
3
1
6
1
1
33
1
3
3
1
1
1
1
1
1
13
45
7
9
10
5
10
3
2
2
8
2
2
6
3
1
1
4
7
4
2
2
2
1
7
2
4
1
4
24
2
12
2
3
1
1
2
2
1
1
1
4
2
2
4
2
2
1
1
2
1
1
1
2
1
26
2
1
2
2
2
1
1
2
3
12
4
7
1
1
2
10
1
3
1
1
7
1
1
1
1
1
8
1
4
2
1
1
1
3
3
5
1
2
1
1
7
3
1
10
1
1
4
1
2
1
2
7
2
1
3
1
1
3
1
2
1
2
2
2
1
2
3
1
1
3
2
1
3
1
3
3
2
1
1
7
1
3
3
1
1
1
1
5
1
27
2
1
2
1
2
2
3
1
1
1
2
1
2
1
1
1
3
1
1
1
2
2
2
1
1
1
1
1

50_dialy:2019:08:05

2019.08.05 久しぶりにSLコマンド

久しぶりにslコマンドをインストールしてみた。
今はソースがgitに上がってた

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
50_dialy/2019/08/05.txt · 最終更新: 2019/08/05 10:04 by matsui

Yesterday:619 Today:090 Total:01883