返回顶部

编译安装‘黑客帝国’cmatrix

1.[root@centos8 ~]#wget https://github.com/abishekvashok/cmatrix/releases/download/v2.0/cmatrix-v2.0-Butterscotch.tar  


2. [root@centos8 ~]#dnf -y install gcc make  

 

3,[root@centos8 ~]#tar xvf cmatrix-v2.0-Butterscotch.tar -C /usr/local/src  


4. [root@centos8 ~]#cd /usr/local/src


5. [root@centos8 src]#cd cmatrix


6. [root@centos8 cmatrix]#cat README
 
7. [root@centos8 cmatrix]# cat INSTALL
 
8.[root@centos8 cmatrix]#./configure  


9. [root@centos8 cmatrix]#dnf search autoconf


10. [root@centos8 cmatrix]#dnf info autoconf


11. [root@centos8 cmatrix]# dnf install autoconf


12. [root@centos8 cmatrix]#yum search curses  


13. [root@centos8 cmatrix]#dnf info ncurses-devel  


14. [root@centos8 cmatrix]#dnf install ncurses-devel


15.make  


16 [root@centos8 cmatrix]#cd



[root@centos8 cmatrix]#cd


[root@centos8 ~]#rm -rf /usr/local/src/cmatrix  


[root@centos8 ~]#tar xvf cmatrix-v2.0-Butterscotch.tar -C /usr/local/src/


17 [root@centos8 cmatrix]#./configure --prefix=/apps/cmatrix 


18. [root@centos8 cmatrix]#make -j 2 


 
[root@centos8 cmatrix]#echo $?  


[root@centos8 cmatrix]#make install (make && make install更好)
 


[root@centos8 cmatrix]#ll –t  
total 732
-rwxr-xr-x 1 root root 55424 Jun 12 17:43 cmatrix
-rw-r--r-- 1 root root 79056 Jun 12 17:43 cmatrix.o
-rw-r--r-- 1 root root 23 Jun 12 17:43 stamp-h1


[root@centos8 cmatrix]#tree /apps/cmatrix cmatrix 
/apps/cmatrix
├── bin
│ └── cmatrix
└── share
└── man
└── man1
└── cmatrix.1

4 directories, 2 files
19. [root@centos8 cmatrix]# cd
[root@centos8 ~]#ln -sv /apps/cmatrix/bin/cmatrix /usr/local/bin/  
'/usr/local/bin/cmatrix' -> '/apps/cmatrix/bin/cmatrix'

20. [root@centos8 ~]#ll /usr/local/bin/

total 0
lrwxrwxrwx 1 root root 25 Jun 12 17:55 cmatrix -> /apps/cmatrix/bin/cmatrix
[root@centos8 ~]#echo $PATH
/apps/tree/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
[root@centos8 ~]#cmatrix 运行程序‘黑客帝国’

22. [root@centos8 ~]#vim /etc/man_db.conf 设置添加man帮助,
MANDATORY_MANPATH /apps/cmatrix/share/man 添加路径

[root@centos8 ~]#man cmatrix 设置man帮助成功

 

posted @   九尾cat  阅读(571)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示