zoukankan      html  css  js  c++  java
  • 一个Linux命令,黑客帝国

    [root@slave2 /usr/local/src]$ wget 
    https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
    [root@slave2 /usr/local/src/cmatrix-1.2a]$ tar xf cmatrix-1.2a.tar.gz
    [root@slave2 /usr/local/src/cmatrix-1.2a]$ cd  cmatrix-1.2a
    [root@slave2 /usr/local/src/cmatrix-1.2a]$ yum install ncurses-devel
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
     * base: centos.ustc.edu.cn
     * epel: mirror.premi.st
     * extras: centos.ustc.edu.cn
     * updates: ftp.sjtu.edu.cn
    Setting up Install Process
    Package ncurses-devel-5.7-4.20090207.el6.x86_64 already installed and latest version
    Nothing to do
    [root@slave2 /usr/local/src/cmatrix-1.2a]$ ./configure && make && make install

    注意如下

    https://thornelabs.blog/posts/linux-install-cmatrix-from-rpm-deb-xz-or-source.html

    Compile from Source

    The following compile process has been successfully tested on Fedora 17.

    Install the following repository packages:

    yum install gcc make autoconf automake ncurses-devel
    

    Download and un-tar the source code:

    wget https://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz
    
    tar xvzf ~/cmatrix-1.2a.tar.gz
    
    cd ~/cmatrix-1.2a
    

    Generate aclocal.m4 man page:

    aclocal
    

    Generate configuration scripts:

    autoconf
    

    Generate Makefile.in for configure from Makefile.am:

    automake -a
    

    Configure, make, and make install the binary:

    ./configure
    make
    sudo make install
    

    Jump to the Using cMatrix section below if you did not have any problems during the compile or installation process.

    Potential Problems

    If aclocalautoconf, and automake -a are not run before ./configure the following errors may result:

    ./configure warnings:

    configure: warning:
    *** No termcap lib available, consider getting the official ncurses
    *** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get
    *** errors compiling nano.
    checking for use_default_colors in -l... (cached) no
    

    make errors:

    cmatrix.o: In function `finish':
    ...
    ~/cmatrix-1.2a/cmatrix.c:602: undefined reference to `wattr_on'
    ~/cmatrix-1.2a/cmatrix.c:603: undefined reference to `stdscr'
    ~/cmatrix-1.2a/cmatrix.c:603: undefined reference to `waddch'
    ~/cmatrix-1.2a/cmatrix.c:605: undefined reference to `stdscr'
    ~/cmatrix-1.2a/cmatrix.c:605: undefined reference to `wattr_off'
    ~/cmatrix-1.2a/cmatrix.c:493: undefined reference to `LINES'
    ~/cmatrix-1.2a/cmatrix.c:509: undefined reference to `LINES'
    ~/cmatrix-1.2a/cmatrix.c:516: undefined reference to `LINES'
    collect2: error: ld returned 1 exit status
    make: *** [cmatrix] Error 1

  • 相关阅读:
    【树链剖分】【线段树】bzoj2157 旅游
    【高斯消元】【异或方程组】poj1222 EXTENDED LIGHTS OUT
    【树链剖分】【线段树】bzoj3626 [LNOI2014]LCA
    【dfs】bzoj3563 DZY Loves Chinese
    【高斯消元】【异或方程组】【bitset】bzoj1923 [Sdoi2010]外星千足虫
    【高斯消元】bzoj1013 [JSOI2008]球形空间产生器sphere
    【博弈论】bzoj1115 [POI2009]石子游戏Kam
    【最近公共祖先】【树链剖分】CODEVS 1036 商务旅行
    【块状树】【博弈论】bzoj3729 Gty的游戏
    【博弈论】【SG函数】bzoj1777 [Usaco2010 Hol]rocks 石头木头
  • 原文地址:https://www.cnblogs.com/toUpdating/p/11055775.html
Copyright © 2011-2022 走看看