zoukankan      html  css  js  c++  java
  • centos6.5 有趣但是没有用的linux命令

    小火车

    get http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    rpm -ivh   epel-release-6-8.noarch.rpm
    yum install sl
    sl

    黑客帝国

    会有奇奇怪怪的报错,忽视后安装成功了

    [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
    loading cache ./config.cache
    checking for a BSD compatible install... (cached) /usr/bin/install -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... (cached) yes
    checking for working aclocal... missing
    checking for working autoconf... missing
    checking for working automake... missing
    checking for working autoheader... missing
    checking for working makeinfo... missing
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether make sets ${MAKE}... (cached) yes
    checking for main in -lncurses... (cached) yes
    checking how to run the C preprocessor... (cached) gcc -E
    checking for ANSI C header files... (cached) yes
    checking for fcntl.h... (cached) yes
    checking for sys/ioctl.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for termios.h... (cached) yes
    checking for termio.h... (cached) yes
    checking return type of signal handlers... (cached) void
    checking for putenv... (cached) yes
    checking for curses.h... (cached) yes
    checking for ncurses.h... (cached) yes
    checking for tgetent in -lncurses... (cached) yes
    Using ncurses as the termcap library
    checking for use_default_colors in -lncurses... (cached) yes
    checking for resizeterm in -lncurses... (cached) yes
    checking for wresize in -lncurses... (cached) yes
    checking for consolechars... (cached) no
    checking for setfont... (cached) /bin/setfont
    checking for /usr/lib/kbd/consolefonts... (cached) no
    checking for /usr/share/consolefonts... (cached) no
    configure: warning:  
    
    *** You do not appear to have a consolefonts directory in a standard location
    *** (/usr/lib/kbd or /usr/share), even though you appear to have the
    *** consolechars and/or setfont command.  The matrix font for the console
    *** will not be installed.  This means you will not be able to use the
    *** matrix console font (and the -l command line switch) unless the font
    *** is located in your current directory when you run CMatrix.
    
    checking for mkfontdir... (cached) /usr/bin/mkfontdir
    checking for /usr/lib/X11/fonts/misc... (cached) no
    checking for /usr/X11R6/lib/X11/fonts/misc... (cached) no
    configure: warning:  
    
    *** You do not appear to have an X window fonts directory in the standard
    *** locations (/usr/lib/X11/fonts/misc or /usr/X11R6/lib/X11/fonts/misc). The
    *** mtx.pcf font will not be installed.  This means you will probably not
    *** be able to use the mtx fonts in your x terminals, and hence be unable
    *** to use the -x command line switch.  Sorry about that...
    
    creating ./config.status
    creating Makefile
    creating cmatrix.spec
    creating config.h
    config.h is unchanged
    gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -Wno-comment -c cmatrix.c
    gcc  -g -O2 -Wall -Wno-comment  -o cmatrix  cmatrix.o  -lncurses  -lncurses
    make[1]: Entering directory `/usr/local/src/cmatrix-1.2a'
    /bin/sh ./mkinstalldirs /usr/local/bin
      /usr/bin/install -c  cmatrix /usr/local/bin/cmatrix
    make  install-man1
    make[2]: Entering directory `/usr/local/src/cmatrix-1.2a'
    /bin/sh ./mkinstalldirs /usr/local/man/man1
     /usr/bin/install -c -m 644 ./cmatrix.1 /usr/local/man/man1/cmatrix.1
    make[2]: Leaving directory `/usr/local/src/cmatrix-1.2a'
    make[1]: Leaving directory `/usr/local/src/cmatrix-1.2a'
    [root@slave2 /usr/local/src/cmatrix-1.2a]$ ./configure && make && make install
    loading cache ./config.cache
    checking for a BSD compatible install... (cached) /usr/bin/install -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... (cached) yes
    checking for working aclocal... missing
    checking for working autoconf... missing
    checking for working automake... missing
    checking for working autoheader... missing
    checking for working makeinfo... missing
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether make sets ${MAKE}... (cached) yes
    checking for main in -lncurses... (cached) yes
    checking how to run the C preprocessor... (cached) gcc -E
    checking for ANSI C header files... (cached) yes
    checking for fcntl.h... (cached) yes
    checking for sys/ioctl.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for termios.h... (cached) yes
    checking for termio.h... (cached) yes
    checking return type of signal handlers... (cached) void
    checking for putenv... (cached) yes
    checking for curses.h... (cached) yes
    checking for ncurses.h... (cached) yes
    checking for tgetent in -lncurses... (cached) yes
    Using ncurses as the termcap library
    checking for use_default_colors in -lncurses... (cached) yes
    checking for resizeterm in -lncurses... (cached) yes
    checking for wresize in -lncurses... (cached) yes
    checking for consolechars... (cached) no
    checking for setfont... (cached) /bin/setfont
    checking for /usr/lib/kbd/consolefonts... (cached) no
    checking for /usr/share/consolefonts... (cached) no
    configure: warning:  
    
    *** You do not appear to have a consolefonts directory in a standard location
    *** (/usr/lib/kbd or /usr/share), even though you appear to have the
    *** consolechars and/or setfont command.  The matrix font for the console
    *** will not be installed.  This means you will not be able to use the
    *** matrix console font (and the -l command line switch) unless the font
    *** is located in your current directory when you run CMatrix.
    
    checking for mkfontdir... (cached) /usr/bin/mkfontdir
    checking for /usr/lib/X11/fonts/misc... (cached) no
    checking for /usr/X11R6/lib/X11/fonts/misc... (cached) no
    configure: warning:  
    
    *** You do not appear to have an X window fonts directory in the standard
    *** locations (/usr/lib/X11/fonts/misc or /usr/X11R6/lib/X11/fonts/misc). The
    *** mtx.pcf font will not be installed.  This means you will probably not
    *** be able to use the mtx fonts in your x terminals, and hence be unable
    *** to use the -x command line switch.  Sorry about that...
    
    creating ./config.status
    creating Makefile
    creating cmatrix.spec
    creating config.h
    config.h is unchanged
    make[1]: Entering directory `/usr/local/src/cmatrix-1.2a'
    /bin/sh ./mkinstalldirs /usr/local/bin
      /usr/bin/install -c  cmatrix /usr/local/bin/cmatrix
    make  install-man1
    make[2]: Entering directory `/usr/local/src/cmatrix-1.2a'
    /bin/sh ./mkinstalldirs /usr/local/man/man1
     /usr/bin/install -c -m 644 ./cmatrix.1 /usr/local/man/man1/cmatrix.1
    make[2]: Leaving directory `/usr/local/src/cmatrix-1.2a'
    make[1]: Leaving directory `/usr/local/src/cmatrix-1.2a'
    安装成功
    [root@slave2 /usr/local/src]$ cmatrix -b -u 3 -C blue

  • 相关阅读:
    《大话数据结构》第1章 数据结构绪论 1.2 你数据结构怎么学的?
    伍迷七八月新浪微博集锦
    《大话数据结构》第9章 排序 9.7 堆排序(下)
    《大话数据结构》第3章 线性表 3.8.2 单链表的删除
    《大话数据结构》第9章 排序 9.5 直接插入排序
    《大话数据结构》第9章 排序 9.8 归并排序(上)
    《大话数据结构》第2章 算法基础 2.9 算法的时间复杂度
    《大话数据结构》第1章 数据结构绪论 1.1 开场白
    《大话数据结构》第9章 排序 9.1 开场白
    [AWS] Assign a public IP address to an EC2 instance after launched
  • 原文地址:https://www.cnblogs.com/students/p/9857189.html
Copyright © 2011-2022 走看看