Command: sl (Steam Locomotive)

编程入门 行业动态 更新时间:2024-10-11 09:27:39

Command: <a href=https://www.elefans.com/category/jswz/34/1634304.html style=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)

本文发布于:2024-02-06 12:37:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1748940.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:sl   Command   Locomotive   Steam

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!