血的教训之虚拟机重装[包含一系列虚拟机,c++,python,miniob配置]

一切都要从头开始,由于脑袋糊涂,没看到是虚拟机的文件,直接一口气全删掉了,哎!!数据恢复后发现也不行,磁盘文件还是缺失了一部分,只能重新再来了。

2847234fc595471cabb2167ca53fab40.pngb1cd7f9fbeba47fd84df9f3a52f2e72a.pngfc8df2bd1cb24177bb909cce0c78954a.pngd5c97d03bc084b86a6e39f3c80d92592.png09b48c86dcf743839b137d075eae74b5.png11e750bf85c24809b965e43183206e6f.png14e2f830a68d4b3082bb9add4f747e59.png2238391478394958972154c5caa165cc.png

等待ing

d8d62347e85e408aaa9e3553efa32ac3.png

e7b0f3dab7a9497c8188a7595a957075.png

看不到按钮,按tab 

611ff728864e4dc8be1618edb0479ded.png

77b63057c53a48e5901086660f1ca393.png

9f11308933d947ada036ce2743ec2c29.pngba0e753fa65247f4a88851a2c3c1b214.pngd83d0634c8274e469bbc43d88305dafd.png

41403865f5c74d69b6a2726234f31e8e.png60183755398b42de8cf047cb3073f1d7.png

等待ing

250baa291dcb4650b0b1a0f7963784ee.png

分辨率感觉只有这个最合适了,可以看到❌

21c371b179444e41bb3df098d8edcfb9.png

检查一下联网问题

bdb2171e888e48c9bb022b5e3a3767bd.png

文件中文名解决

331c99f7a8734c4cafdb9309732e5e04.png

29336c13619b4225a3ec09c33f5601b1.pngdf844a58666f46bead41e0745c8f47b6.png

复制粘贴问题解决

3c9f2c1e9cab43219fb961a9cce42fa1.png

9859a8d5a16a45638277bf19f5591b23.png

终端放到桌面解决

2bea97b20cb74510a2345b3a3942fb70.png

输入中文解决

b6b803e1d2ec4f7884339e771ddef96e.png

b1dfc844d2e34ee494162de904297190.png

0281cce4726d424f90dccf60df755221.png

安装各种工具

f718ac8f9fc6497bb33257270a04b8fc.pngdb7e66c575434cd69a7c445efafeafdf.pngc94c15f28b47405599e8d5f1689a08fc.png

571e5ee806c34839a4b1fe4cbc806fe6.png

ebd7039258994df4b48c0f18c76d9703.png5c3c0276971b4346bf2b79e2aeb275e9.png

vscode安装

f08a5e019c844e72a6b206653f4b8af1.png

为了显示应用图标还是用下面分辨率

d57e4e8b2a2647d599f1b8e519e85150.png

vscode配置

fcb3727636e046d098f600e33ae2a199.png

6ce409942eec4a6a817dc07675ee8cd4.png

左下角设置主题

ba497f7ebd6345058e60077d69e0a73b.png

526bad7cf134433e8fa4738c4cb9c7e6.png

0fb5f8604ed44a46b470da569f619a84.png

98decaa57c894964aee5100e3613e7d0.png

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"    // 写调试器路径

        }
    ]  
}

d17bbd9ce5d743e98a8229abf6d97e56.png

python环境搭建

f60d1dbcb9b14264a21eb24c81c0ab41.png

8c6e8937c0784aab8497f0a5f36d57e2.png

字体大小设置

ea35495c3417437a9e2f4bca9f08d465.png

终端字体设置

fcef835d289a4c4f961f2e8f1e5708a8.png

miniob环境配置

git安装

c8ad6b73be324535875f00273b4d6d3e.png

指定分支

bef7c1e9e2f9405893112db2b1652f83.png

e76c1acb9a63459fad9dabbaf1858b8a.png

69e9f8d00f474085ad67df37e99542d3.png

0a2a8c4241394b21abca221114ee5bd7.png

c99ce441878844c783702b30e342dadf.png

81698b2d29464d15b2b09dc86116c93a.png

13e321951d044496822d3820523b955b.png

565041dee45941af9521bbb245606dd1.png

wget http://ftp.gnu.org/gnu/bison/bison-3.7.tar.gz

tar 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"
        }
    ]
}

7c4c00dc43c44d65889e01bd28de52db.png

d0fdea145e554ed2a85ebf817d73936f.png

c534aa36f0f240639229ba676aad30a1.png

 

成功

e8ab1e837fda4066ab97a9e3e0bef301.png

配置这个环境的时候遇到点困难,以为要自己装libevent那些,卡了很久,其实你一开始build的时候会自动给你装好,然后这个克隆代码的时候,最好不要自己建一个文件夹,我这也是遇到点小问题,直接克隆就好。还出现了他不会克隆deps里面的3rd,就这个地方卡了很久,就只能重新克隆或者手动复制文件了。

暂时到这里,后续有其他操作再更。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值