Centos7编译安装cmatrix(模拟电影黑客代码雨界面)
一、下载源码包
https://zh.osdn.net/projects/sfnet_cmatrix/downloads/cmatrix/1.2a/cmatrix-1.2a.tar.gz/
二、安装
1、首先安装编译需要的gcc
[root@localhost ~]# yum install -y gcc
2、解压
[root@localhost ~]# tar -zxvf cmatrix-1.2a.tar.gz
3、配置
[root@localhost ~]# cd cmatrix-1.2a
[root@localhost cmatrix-1.2a]# ./configure --prefix=/apps/cmatrix
4、编译make
[root@localhost cmatrix-1.2a]# make
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -Wno-comment -c cmatrix.c
cmatrix.c:37:20: fatal error: curses.h: No such file or directory#include <curses.h>^
compilation terminated.
make: *** [cmatrix.o] Error 1
查询缺少的包
[root@localhost cmatrix-1.2a]# yum list *curses*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: ftp.sjtu.edu.cn
Installed Packages
ncurses.x86_64 5.9-14.20130511.el7_4 @anaconda
ncurses-base.noarch 5.9-14.20130511.el7_4 @anaconda
ncurses-libs.x86_64 5.9-14.20130511.el7_4 @anaconda
Available Packages
ncurses-devel.i686 5.9-14.20130511.el7_4 base
ncurses-devel.x86_64 5.9-14.20130511.el7_4 base
ncurses-libs.i686 5.9-14.20130511.el7_4 base
ncurses-static.i686 5.9-14.20130511.el7_4 base
ncurses-static.x86_64 5.9-14.20130511.el7_4 base
ncurses-term.noarch 5.9-14.20130511.el7_4 base
ocaml-curses.x86_64 1.0.3-20.el7 base
ocaml-curses-devel.x86_64 1.0.3-20.el7 base
安装
[root@localhost cmatrix-1.2a]# yum install -y ncurses-devel
再次编译还是会提示错误,但是需要的包已经安装了。可以删除目录,重新解压之后再次执行上面操作
[root@localhost cmatrix-1.2a]# make
...
...
collect2: error: ld returned 1 exit status
make: *** [cmatrix] Error 1[root@localhost ~]# rm -rf cmatrix-1.2a
[root@localhost ~]# tar -zxvf cmatrix-1.2a.tar.gz
[root@localhost ~]# cd cmatrix-1.2a
5、编译make install
[root@localhost cmatrix-1.2a]# make install
make[1]: Entering directory `/root/cmatrix-1.2a'
/bin/sh ./mkinstalldirs /apps/cmatrix/bin
mkdir /apps
mkdir /apps/cmatrix
mkdir /apps/cmatrix/bin/usr/bin/install -c cmatrix /apps/cmatrix/bin/cmatrix
make install-man1
make[2]: Entering directory `/root/cmatrix-1.2a'
/bin/sh ./mkinstalldirs /apps/cmatrix/man/man1
mkdir /apps/cmatrix/man
mkdir /apps/cmatrix/man/man1/usr/bin/install -c -m 644 ./cmatrix.1 /apps/cmatrix/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'
6、查看效果
[root@localhost cmatrix-1.2a]# cd /apps/cmatrix/bin/
[root@localhost bin]# ./cmatrix
相关参数:
-a:异步滚动
-b:启用粗体字符
-b:所有粗体字符(覆盖-b)
-f:强制启用linux$term类型
-l:linux模式(使用矩阵控制台字体)
-o:使用旧式滚动
-h:打印使用和退出
-n:无粗体字符(覆盖-b和-b,默认)
-s:“屏幕保护程序”模式,在第一次按键时退出
-x:窗口模式,如果您的xterm使用mtx.pcf,则使用
-v:打印版本信息并退出
-u延迟(0-10,默认4):屏幕更新延迟
-C [颜色]:将此颜色用于矩阵(默认为绿色)
Centos7编译安装cmatrix(模拟电影黑客代码雨界面)相关推荐
- CentOS7 编译安装 gcc/c++ 9.1
目录 文章目录 目录 CentOS7 编译安装 gcc/c++ 9.1 CentOS7 编译安装 gcc/c++ 9.1 $ yum -y install bzip2 $ yum -y install ...
- Centos7 编译安装git 报错 git-compat-util.h:14:2: error
Centos7 编译安装git 报错 git-compat-util.h:14:2: error 环境: OS:CentOS7.9 Git版本: git-2.38.1 一.报错现象 [root@077 ...
- CentOS7编译安装keepalived实现自动漂移、高可用及开机启动
CentOS7编译安装keepalived实现自动漂移.高可用及开机启动 一.先安装依赖包 [root@haoding205-jq1 hd205]# yum install -y epel-relea ...
- centOS7编译安装openssl并使用C接口
centOS7编译安装openssl并使用C接口. 1.编译安装: 下载OpenSSL安装包 sudo wget http://www.openssl.org/source/openssl-1.1.0 ...
- 黑客代码雨源代码_工业城黑客空间教授的东西比代码更有价值
黑客代码雨源代码 James Wallbank是英国访问空间中运行时间最长的黑客空间之一的创始人,该访问空间于2000年在北部工业城市谢菲尔德的中心开放,旨在向所有人开放. Access Space不 ...
- Centos7.6 安装cmatrix黑客帝国代码屏保
想在自己的Linux上安装炫酷的屏保吗?cmatrix就可以帮你实现高大上的效果,而且只需要几步就可以完成,非常简单! 1.下载软件包:cmatrix-1.2a.tar.gz并上传到服务器 下载地址: ...
- Centos7 编译安装 Nginx、MariaDB、PHP
前言 本文主要大致介绍CentOS 7下编译安装Nginx.MariaDB.PHP.面向有Linux基础且爱好钻研的朋友.技艺不精,疏漏再所难免,还望指正. 环境简介: 系统: CentOS 7,最小 ...
- 开发人员学Linux(8):CentOS7编译安装Subversion及Apache并集成
1.前言 本篇将介绍如何编译安装SVN服务器端管理软件subverion和Web服务器Apache.本来在前面的系列文章已经讲过使用Nginx作为Web服务器的,所以我一直在找有关subverion集 ...
- Centos7编译安装Xen环境(vtpm)
编译xen环境(http://www.lvtao.net/server/574.html#comment-1882): yum update yum groupinstall "Develo ...
最新文章
- Matlab与线性代数 -- 稀疏矩阵的创建
- 数学中的span以及线性流形是什么意思
- qt LNK2019 无法解析的外部符号
- 细节决定成败:一个公共类库
- 设置模态框开始是隐藏状态_有限元仿真分析误差来源之材料参数设置,小心为妙!...
- Oracle12C的卸载过程
- [ZJOI2007]棋盘制作 悬线法dp 求限制下的最大子矩阵
- 利用福禄克网线/光纤测试仪规范测试BICSI标准
- redisson的锁的类型_厉害了,中间件Redisson原来这么好用!
- 华润置地php面试题_从一流到顶流|2020华润置地与沈阳一起美好
- Bootstrap3 表单静态控件
- oom机制分析及对应优化策略
- 调用DLL找不到函数名或者函数乱码问题
- oracle 定时任务plsql,最简单的一个Oracle定时任务
- MongoDB 高阶
- 在做开关电路时,三极管限流电阻该如何选择?
- 计算机一级死都过不了怎么办,电脑假死,详细教您电脑假死机怎么处理
- UE4材质 制作UV贴图
- 简单的java爬虫程序
- 电阻应变片式测力传感器弹性体设计要求