1.VSCode
方法一:
依次輸入如下命令
1、sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
2、sudo apt-get update
3、sudo apt-get install ubuntu-make
4、umake ide visual-studio-code
提示輸入y即可
方法二:
在windows系統下載安裝包,再使用共享文件夾在ubuntu下安裝即可
原文鏈接:https://blog.csdn.net/q357010621/article/details/87891694
2.golang開發環境
參考:https://blog.csdn.net/runner668/article/details/80958496
環境變量配置:
export GOPATH=/home/wyy/golang/gopath
export GOROOT=/usr/local/go
export GOARCH=amd64
export GOOS=linux
export GOTOOLS=$GOROOT/pkg/tool
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
3.git
參考:https://blog.csdn.net/vslyu/article/details/80337675
過程中終端打印信息中給出了ssh公鑰的存儲路徑
安裝成功後打印:
4.redis
下載源碼安裝:
- wget http://download.redis.io/redis-stable.tar.gz
- tar xzf redis-stable.tar.gz
- cd redis-stable
- make // make後在src文件夾中可以找到若干個可執行程序
- make install // make之後執行make install將這些可執行程序複製到/usr/local/bin目錄中以便以後執行程序時可以不用輸入完整的路徑
- make test// 實際運行redis前可先 make test命令測試redis是否編譯正確
make test的截圖如下(make 後要make install 然後再make test 否則報錯):
- redis-server//啓動redis-server截圖如下:
5. sublime Text 3的go sublime插件
https://www.cnblogs.com/jiy-for-you/p/6916977.html
插件列表中搜不到gosublime插件,解決辦法:
https://www.cnblogs.com/chengxuyuan326260/p/10095914.html
關於過程中需要解壓縮zip文件的說明如下:
- Ubuntu 16.04 已經自動安裝了unzip 軟件,解壓命令:
unzip FileName.zip
2) 如果沒有安裝unzip,可以使用下面的命令安裝:
sudo apt install unzip
- 3) 安裝unrar軟件
sudo apt install unrar
4) 解壓rar文件:
unrar x FileName.rar
6.boost庫(boost_1_70_1)
https://blog.csdn.net/liuweizj12/article/details/90482006
7.安裝thrift rpc框架
其中提到的依賴環境一定要安裝,否則會在./confiure或者make過程中報錯
- 報錯:configure: error: "Error: libcrypto required."
解決:https://blog.csdn.net/snake_baoby/article/details/8577224
- 報錯: Python.h: No such file or directory
Python.h:: command not found
解決: 上述參考過程中安裝python相關的操作
- 在安裝python相關的東西時報錯:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
解決:https://www.cnblogs.com/bigvase/p/7091512.html //系統自帶的源有缺失的文件,更新源就好了
- 重新安裝:https://www.linuxidc.com/Linux/2011-12/50207.htm
- 運行https://blog.csdn.net/feng973/article/details/70160571中的client和server時報錯:error while loading shared libraries: libthrift-0.8.0.so: cannot open shared object file: No such file or directory
解決:sudo ldconfig