黑客帝国既视感 小工具 cMatrix 代码雨

雨燕双飞 提交于 2021-01-27 22:28:27
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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!