本文主要是介绍血的教训之虚拟机重装[包含一系列虚拟机,c++,python,miniob配置],希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一切都要从头开始,由于脑袋糊涂,没看到是虚拟机的文件,直接一口气全删掉了,哎!!数据恢复后发现也不行,磁盘文件还是缺失了一部分,只能重新再来了。
等待ing
看不到按钮,按tab
等待ing
分辨率感觉只有这个最合适了,可以看到❌
检查一下联网问题
文件中文名解决
复制粘贴问题解决
终端放到桌面解决
输入中文解决
安装各种工具
vscode安装
为了显示应用图标还是用下面分辨率
vscode配置
左下角设置主题
tasks.json
{"version": "2.0.0","tasks": [{"type": "cppbuild","label": "C/C++: g++ build active file","command": "/usr/bin/g++","args": ["-fdiagnostics-color=always","-g","${file}","-o","${fileDirname}/${fileBasenameNoExtension}"],"options": {"cwd": "${fileDirname}"},"problemMatcher": ["$gcc"],"group": {"kind": "build","isDefault": true},"detail": "compiler: /usr/bin/g++"}]
}
launch.json
{ "version": "0.2.0", "configurations": [ {"name": "(gdb) Launch","type": "cppdbg","request": "launch","program": "${fileDirname}/${fileBasenameNoExtension}", // 写程序地址"args": [],"stopAtEntry": false,"cwd": "${fileDirname}","environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [{"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true},{"description": "Set Disassembly Flavor to Intel","text": "-gdb-set disassembly-flavor intel","ignoreFailures": true}],"preLaunchTask": "C/C++: g++ build active file", // 写Launch前需要做的tasks,内容与tasks.json的label项相同"miDebuggerPath": "/usr/bin/gdb" // 写调试器路径}]
}
python环境搭建
字体大小设置
终端字体设置
miniob环境配置
git安装
指定分支
wget http://ftp.gnu.org/gnu/bison/bison-3.7.tar.gztar xvf bison-3.7.tar.gz
cd bison-3.7
./configure
make
sudo make install
{"options": {"cwd": "${workspaceFolder}/build"},"tasks": [{"label": "cmake","command": "cmake","args": ["-DDEBUG=ON",".."]},{"label": "make","command": "make"},{"label": "CMake Build","dependsOn": ["cmake","make"]}],"version": "2.0.0"
}
{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "(gdb) 启动","type": "cppdbg","request": "launch","program": "${workspaceFolder}/build/bin/observer","args": ["-f", "../../etc/observer.ini"],"stopAtEntry": false,"cwd": "${fileDirname}","environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [{"description": "为 gdb 启用整齐打印","text": "-enable-pretty-printing","ignoreFailures": true},{"description": "将反汇编风格设置为 Intel","text": "-gdb-set disassembly-flavor intel","ignoreFailures": true}],"preLaunchTask": "CMake Build"}]
}
成功
配置这个环境的时候遇到点困难,以为要自己装libevent那些,卡了很久,其实你一开始build的时候会自动给你装好,然后这个克隆代码的时候,最好不要自己建一个文件夹,我这也是遇到点小问题,直接克隆就好。还出现了他不会克隆deps里面的3rd,就这个地方卡了很久,就只能重新克隆或者手动复制文件了。
暂时到这里,后续有其他操作再更。
这篇关于血的教训之虚拟机重装[包含一系列虚拟机,c++,python,miniob配置]的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!