返回顶部

编译安装‘黑客帝国’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 @ 2020-08-14 12:54  九尾cat  阅读(562)  评论(0编辑  收藏  举报