centos 运行代码雨
1.下载软件包
[root@web-7 /opt]# wget http://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
[root@web-7 /opt]#ll -h
total 76K
-rw-r--r-- 1 root root 73K Apr 1 2002 cmatrix-1.2a.tar.gz
2.安装所需依赖
[root@web-7 /opt]#yum install -y ncurses*
[root@web-7 /opt/cmatrix-1.2a]#yum install gcc* gcc-* -y
3.解压缩源码包
[root@web-7 /opt]#tar -zxvf cmatrix-1.2a.tar.gz
[root@web-7 /opt]#ls
cmatrix-1.2a cmatrix-1.2a.tar.gz
[root@web-7 /opt]#
4.释放编译文件
[root@web-7 /opt]#cd cmatrix-1.2a/
[root@web-7 /opt/cmatrix-1.2a]#ls
acconfig.h ChangeLog cmatrix.spec config.h.in configure.in install-sh matrix.fnt mkinstalldirs README
aclocal.m4 cmatrix.1 cmatrix.spec.in config.sub COPYING Makefile.am matrix.psf.gz mtx.pcf stamp-h.in
AUTHORS cmatrix.c config.guess configure INSTALL Makefile.in missing NEWS TODO
[root@web-7 /opt/cmatrix-1.2a]#./configure --prefix=/usr/local/cmatrix12/
5.编译安装
[root@test1 cmatrix-1.2a]# make && make install
6.执行代码雨,输入绝对路径
[root@web-7 ~]#cd /usr/local/cmatrix12/
[root@web-7 /usr/local/cmatrix12]#ls
bin man
[root@web-7 /usr/local/cmatrix12]#
### 执行代码雨的绝对路径
[root@web-7 /usr/local/cmatrix12]#/usr/local/cmatrix12/bin/cmatrix
标签:opt,web,1.2,cmatrix,cmatrix12,代码,root
From: https://www.cnblogs.com/sining37/p/17822591.html