cmatrix -b
安装方法
安装以下存储库软件包:
yum install gcc make autoconf automake ncurses-devel
下载并解压缩源代码:
wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
tar xvzf ~/cmatrix-1.2a.tar.gz
cd ~/cmatrix-1.2a
生成aclocal.m4手册页:
aclocal
生成配置脚本:
autoconf
从Makefile.am生成用于配置的Makefile.in:
automake -a
配置,制作和安装二进制文件:
./configure
make
sudo make install
如果在编译或安装过程中没有任何问题,请跳至下面的“使用cMatrix”部分。
潜在问题
如果aclocal,autoconf和automake -a没有运行,./configure则可能导致以下错误:
./configure 警告:
configure: warning:
*** No termcap lib available, consider getting the official ncurses
*** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get
*** errors compiling nano.
checking for use_default_colors in -l... (cached) no
make 错误:
cmatrix.o: In function `finish':
...
~/cmatrix-1.2a/cmatrix.c:602: undefined reference to `wattr_on'
~/cmatrix-1.2a/cmatrix.c:603: undefined reference to `stdscr'
~/cmatrix-1.2a/cmatrix.c:603: undefined reference to `waddch'
~/cmatrix-1.2a/cmatrix.c:605: undefined reference to `stdscr'
~/cmatrix-1.2a/cmatrix.c:605: undefined reference to `wattr_off'
~/cmatrix-1.2a/cmatrix.c:493: undefined reference to `LINES'
~/cmatrix-1.2a/cmatrix.c:509: undefined reference to `LINES'
~/cmatrix-1.2a/cmatrix.c:516: undefined reference to `LINES'
collect2: error: ld returned 1 exit status
make: *** [cmatrix] Error 1
https://thornelabs.net/posts/linux-install-cmatrix-from-rpm-deb-xz-or-source.html
来源:oschina
链接:https://my.oschina.net/kcw/blog/4926675