我无法在 ubuntu 14.04 上安装 fortune 包,出现此错误。
plankinc@singhan-jenkins:~/fortune-mod$ make all
cd fortune && make CC='gcc' \
CFLAGS='-O2 -DFORTDIR="\"/usr/share/games/fortunes\"" -DOFFDIR="\"/usr/share/games/fortunes/off\"" -DLOCFORTDIR="\"/usr/local/share/games/fortunes\"" -DLOCOFFDIR="\"/usr/local/share/games/fortunes/off\"" -Wall -fomit-frame-pointer -pipe -fsigned-char -DHAVE_REGEX_H -DBSD_REGEX -DHAVE_STDBOOL -I../util' \
LDFLAGS='-s' LIBS=' -lrecode'
make[1]: Entering directory `/home/plankinc/fortune-mod/fortune'
gcc -O2 -DFORTDIR="\"/usr/share/games/fortunes\"" -DOFFDIR="\"/usr/share /games/fortunes/off\"" -DLOCFORTDIR="\"/usr/local/share/games /fortunes\"" -DLOCOFFDIR="\"/usr/local/share/games/fortunes/off\"" -Wall -fomit-frame- pointer -pipe -fsigned-char -DHAVE_REGEX_H -DBSD_REGEX -DHAVE_STDBOOL -I../util -c -o fortune.o fortune.c
fortune.c:143:21: fatal error: recode.h: No such file or directory
#include <recode.h>
^
compilation terminated.
make[1]: *** [fortune.o] Error 1
make[1]: Leaving directory `/home/plankinc/fortune-mod/fortune'
make: *** [fortune-bin] Error 2
fortune.c:143:21: fatal error: recode.h: No such file or directory
#include <recode.h>
该库用于 fortune.c 文件。
需要帮助来完成安装过程,谢谢。