```
1、下载cmatrix-1.2a.tar.gz文件

[root@localhost ~]# wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
--2018-07-17 15:06:03-- https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74376 (73K) [application/x-gzip]
Saving to: ‘cmatrix-1.2a.tar.gz’

100%[=====================================================>] 74,376 4.68KB/s in 16s

2018-07-17 15:06:20 (4.68 KB/s) - ‘cmatrix-1.2a.tar.gz’ saved [74376/74376]
2、解压缩cmatrix-1.2a.tar.gz文件

[root@localhost ~]# tar xvf cmatrix-1.2a.tar.gz
cmatrix-1.2a/
cmatrix-1.2a/NEWS
cmatrix-1.2a/TODO
cmatrix-1.2a/aclocal.m4
cmatrix-1.2a/README
cmatrix-1.2a/configure
cmatrix-1.2a/configure.in
cmatrix-1.2a/cmatrix.1
cmatrix-1.2a/cmatrix.c
cmatrix-1.2a/config.guess
cmatrix-1.2a/install-sh
cmatrix-1.2a/cmatrix.spec
cmatrix-1.2a/cmatrix.spec.in
cmatrix-1.2a/matrix.fnt
cmatrix-1.2a/config.sub
cmatrix-1.2a/missing
cmatrix-1.2a/mkinstalldirs
cmatrix-1.2a/Makefile.am
cmatrix-1.2a/Makefile.in
cmatrix-1.2a/mtx.pcf
cmatrix-1.2a/config.h.in
cmatrix-1.2a/matrix.psf.gz
cmatrix-1.2a/stamp-h.in
cmatrix-1.2a/AUTHORS
cmatrix-1.2a/INSTALL
cmatrix-1.2a/ChangeLog
cmatrix-1.2a/acconfig.h
cmatrix-1.2a/COPYING
[root@localhost ~]# cd cmatrix-1.2a

[root@localhost cmatrix-1.2a]# yum install ncurses ncurses-devel

```[root@bogon cmatrix-1.2a]# ./configure && make && make install
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

当执行“./configure && make && make install ”命令出现如上信息时,表示没有安装gcc,gcc安装过程如下
[root@bogon cmatrix-1.2a]# yum -y install gcc
[root@bogon cmatrix-1.2a]# yum -y install gcc-c++
[root@bogon cmatrix-1.2a]# yum install make

安装完后再运行“./configure && make && make install ”命令,如下:
[root@localhost cmatrix-1.2a]# ./configure && make && make install
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for main in -lncurses... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for unistd.h... yes
checking for termios.h... yes
checking for termio.h... yes
checking return type of signal handlers... void
checking for putenv... yes
checking for curses.h... yes
checking for ncurses.h... yes
checking for tgetent in -lncurses... yes
Using ncurses as the termcap library
checking for use_default_colors in -lncurses... yes
checking for resizeterm in -lncurses... yes
checking for wresize in -lncurses... yes
checking for consolechars... no
checking for setfont... /usr/bin/setfont
checking for /usr/lib/kbd/consolefonts... yes
checking for /usr/share/consolefonts... no
checking for mkfontdir... no
checking for /usr/lib/X11/fonts/misc... no
checking for /usr/X11R6/lib/X11/fonts/misc... no
configure: warning:

*** You do not appear to have an X window fonts directory in the standard
*** locations (/usr/lib/X11/fonts/misc or /usr/X11R6/lib/X11/fonts/misc). The
*** mtx.pcf font will not be installed. This means you will probably not
*** be able to use the mtx fonts in your x terminals, and hence be unable
*** to use the -x command line switch. Sorry about that...

updating cache ./config.cache
creating ./config.status
creating Makefile
creating cmatrix.spec
creating config.h
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -Wno-comment -c cmatrix.c
gcc -g -O2 -Wall -Wno-comment -o cmatrix cmatrix.o -lncurses -lncurses
make[1]: Entering directory /root/cmatrix-1.2a' /bin/sh ./mkinstalldirs /usr/local/bin /usr/bin/install -c cmatrix /usr/local/bin/cmatrix make install-man1 make[2]: Entering directory/root/cmatrix-1.2a'
/bin/sh ./mkinstalldirs /usr/local/man/man1
mkdir /usr/local/man
mkdir /usr/local/man/man1
/usr/bin/install -c -m 644 ./cmatrix.1 /usr/local/man/man1/cmatrix.1
make[2]: Leaving directory /root/cmatrix-1.2a' Installing matrix fonts in /usr/lib/kbd/consolefonts... make[1]: Leaving directory/root/cmatrix-1.2a'

到此,cmatrix安装完成,任意路径,输入cmatrix运行,按q退出。效果如下
[root@localhost cmatrix-1.2a]# cmatrix

cmatrix常用命令如下:
-a :异步滚动(默认)
-b :随机粗体
-B :全部粗体
-o :使用旧风格滚动
-x :X window 模式
-V :显示版本信息
-u :刷新频率,0-9,也就是滚动的快慢(值越小越快)
-C :显示的颜色,支持green(默认),red,blue,white,yellow,cyan,magenta and black

[root@localhost ~]# cmatrix -b -u 3 -C yellow

```

最新文章

  1. Android登录等待效果
  2. hdu3709 Balanced Number (数位dp+bfs)
  3. 矩阵的QR分解
  4. atitit.eclipse 新特性总结3.1--4.3
  5. sql server中备份数据的几种方式
  6. Android—SDCard数据存取&Environment简介
  7. WIN7中oracle10g的安装注意事项
  8. Android应用架构
  9. 连接Oracle的几种方式
  10. 值得赞扬的尝试与进步——CSDN开源夏令营第一印象
  11. Spring的IOC原理[通俗解释一下]
  12. [原创]MongoDB综合实例二
  13. 英语app分析
  14. vue 基础知识
  15. PMP知识点(四)——项目管理计划的内容
  16. [Swift]LeetCode687. 最长同值路径 | Longest Univalue Path
  17. ssl证书专题(3):创建CA和申请证书
  18. Jquery 组 标签页
  19. 洛谷P2312 解方程 [noip2014] 数论
  20. 腾讯云域名申请+ssl证书申请+springboot配置https

热门文章

  1. Breakable loop in Scratch
  2. AGC030 简要题解
  3. android 异常信息The specified child already has a parent. You must call removeView() on the child's parent first. 的处理方法
  4. pycharm 中的 全局搜索(ctrl+shift+f) 功能无法使用的原因
  5. VSIX 插件右键菜单(2)
  6. Vue组件之间数据交互与通信
  7. [HNOI2007]梦幻岛宝珠(背包)
  8. 洛谷P2468 SDOI 2010 粟粟的书架
  9. 关于python的GIL全局解释器锁的简单理解
  10. 全文检索 -- Solr从概念到实战(一)