sl (Steam Locomotive)"/>
Command: sl (Steam Locomotive)
You might be aware of command ‘ls‘ the list command and use it frequently to view the contents of a folder but because of miss-typing sometimes you would result in ‘sl‘, how about getting a little fun in terminal and not “command not found“.
Install sl
root@tecmint:~# apt-get install sl (In Debian like OS) root@tecmint:~# yum -y install sl (In Red Hat like OS)
trouble shoot
trouble one
$ sudo yum install sl . . . No package sl available. Error: Nothing to do
shoot one
$ git clone .git ~/sl $ cd ~/sl $ gcc -O -o sl sl.c -lncurses $ mv sl /usr/local/bin $ sudo chown root.root /usr/local/bin/sl $ echo "sl -laF" > ~/.zlogin
trouble two
[root@localhost sl]# make gcc -O -o sl sl.c -lncurses sl.c:39:20: 致命错误:curses.h:没有那个文件或目录#include <curses.h>
shoot two
[root@localhost sl]# yum search curse 已加载插件:fastestmirror Loading mirror speeds from cached hostfile* base: mirrors.163* extras: mirrors.163* updates: mirrors.163 ============================== N/S matched: curse ============================== ncurses.x86_64 : Ncurses support utilities ncurses-devel.i686 : Development files for the ncurses library ncurses-devel.x86_64 : Development files for the ncurses library ncurses-libs.i686 : Ncurses libraries ncurses-libs.x86_64 : Ncurses libraries ncurses-static.i686 : Static libraries for the ncurses library ncurses-static.x86_64 : Static libraries for the ncurses library ocaml-curses.x86_64 : OCaml bindings for ncurses ocaml-curses-devel.x86_64 : Development files for ocaml-curses NetworkManager-tui.x86_64 : NetworkManager curses-based UI ncurses-base.noarch : Descriptions of common terminals ncurses-term.noarch : Terminal descriptions [root@localhost sl]# yum search curse 已加载插件:fastestmirror Loading mirror speeds from cached hostfile* base: mirrors.163* extras: mirrors.163* updates: mirrors.163 ============================== N/S matched: curse ============================== ncurses.x86_64 : Ncurses support utilities ncurses-devel.i686 : Development files for the ncurses library ncurses-devel.x86_64 : Development files for the ncurses library ncurses-libs.i686 : Ncurses libraries ncurses-libs.x86_64 : Ncurses libraries ncurses-static.i686 : Static libraries for the ncurses library ncurses-static.x86_64 : Static libraries for the ncurses library ocaml-curses.x86_64 : OCaml bindings for ncurses ocaml-curses-devel.x86_64 : Development files for ocaml-curses NetworkManager-tui.x86_64 : NetworkManager curses-based UI ncurses-base.noarch : Descriptions of common terminals ncurses-term.noarch : Terminal descriptions
now cd into the project folder
make
done!
( ) (@@) ( ) (@) () @@ O @ O @ O(@@@)( )(@@@@)( )==== ________ ____________D _| |_______/ \__I_I_____===__|_________||(_)--- | H\________/ | | =|___ ___| _________________/ | | H | | | | ||_| |_|| _| \_____A| | | H |__--------------------| [___] | =| || ________|___H__/__|_____/[][]~\_______| | -| ||/ | |-----------I_____I [][] [] D |=======|____|________________________|___/ =| o |=-O=====O=====O=====O \ ____Y___________|__|__________________________|_|/-=|___|= || || || |_____/~\___/ |_D__D__D_| |_D__D__D_|\_/ \__/ \__/ \__/ \__/ \_/ \_/ \_/ \_/ \_/
转载于:.html
更多推荐
Command: sl (Steam Locomotive)
发布评论