linuxfatal error: stdio.h: 沒有那個文件或目錄
lsb_release -a查看Codename的值
sudo gedit /etc/apt/sources.list查看系統代號,修改為上面查看到的。
sudo apt-get update
sudo apt-get remove gcc卸載gcc
sudo apt-get install gcc重裝gcc
No symbol table is loaded. Use the "file" command.
gcc編譯的時候加上-g選項
安裝pip
sudo apt-get install python-pip會報錯
解決:sudo apt-get install python3-pip
安裝cheat
解決:sudo python3 -m pip install cheat
新問題:cheatsheet是空的,於是改用github的項目安裝cheat
解決:
git clone https://github.com/cheat/cheat
cd cheat
make

這里報錯,缺少go,於是
sudo apt-get install golang,然后重新make

解決:
go env -w GOPROXY=https://goproxy.cn,然后再次make
然后又報錯
於是我又去看了一下Readme.md,發現應該從下面的鏈接下載安裝
https://github.com/cheat/cheat/releases
我下載的是cheat-linux-amd64.gz
然后解壓(我是用bandizip解壓的)
然后用chmod添加執行權限並運行安裝即可。

試一下查看find的作弊表

然后sudo python3 -m pip uninstall cheat,刪除之前用Python3安裝的cheat。
然后mv cheat-linux-amd64 cheat修改程序名
然后安裝環境變量
sudo vi ~/.bashrc
在末尾添加export PATH="/home/sl1218/downloads/cheat-linux-amd64/:$PATH"
保存文件並退出
source ~/.bashrc
現在終於可以在任何地方使用cheat指令了!

cheat -e gcc添加修改自己的cheatsheet
命令行翻譯工具translate-shell
使用sudo apt-get install translate-shell安裝
trans :zh 'hello',使用冒號指定翻譯成什么語言
trans -shell :zh 進入翻譯終端,不用每次都輸入命令才翻譯
參考
gcc報錯 fatal error: stdio.h: 沒有那個文件
初次使用gdb調試器,出現的No symbol table is loaded. Use the "file" command.問題
解決go包管理代理網址無法訪問:proxy.golang.org
linux添加環境變量
translate-shell 常用命令
