File tree Expand file tree Collapse file tree 10 files changed +35
-187
lines changed Expand file tree Collapse file tree 10 files changed +35
-187
lines changed Original file line number Diff line number Diff line change 6
6
7
7
对于 Windows / macOS (arm64, Apple Silicon) 用户,我们推荐你使用 VMware 配置虚拟机,配合 VSCode / IDEA IntelliJ 的 SSH 远程开发。
8
8
9
- 此外,我们还提供了以下方案。但是,我们并不为这些情况提供排错与技术支持。
9
+ 此外,我们还提供了以下方案,这些方案不需要安装虚拟机,更加轻量级 。但是,我们并不为这些情况提供排错与技术支持。
10
10
11
11
1 . 使用 Windows WSL
12
12
24
24
25
25
在安装完 VMware 后,你有两个选择:
26
26
27
- 1 . 你可以导入我们已经配置好的虚拟环境。参考 [ 导入 OVF ] ( setup/wm-import.md ) 。
27
+ 1 . 你可以导入我们已经配置好的虚拟环境。OVF 文件已上传至下载站中,解压后将 .ovf 文件拖至 VMware 中即可。macOS Apple Silicon 用户请选择 arm64 版本 。
28
28
29
- 2 . 你可以选择从零安装 Linux 虚拟机,请安装 Debian stable,并参照 [ 手动环境配置] ( setup/manually-setup.md ) 完成后续步骤。
29
+ !!!note
30
+ 预配置的 VMware 镜像中,root密码为 123456,普通用户 cs323 的密码为 123456。
31
+
32
+ 2 . 你可以选择从零安装 Linux 虚拟机,请安装 Debian 13(安装镜像可从南科大镜像站上下载 https://mirrors.sustech.edu.cn/)。并安装以下软件包:
33
+
34
+ ``` sh
35
+ $ sudo apt update
36
+ $ sudo apt install openjdk-21-jdk llvm-19 clang-19 git make gzip flex bison
37
+ ```
30
38
31
39
### Windows WSL2 配置
32
40
38
46
39
47
## 配置开发工具
40
48
41
- 最后,你需要配置 VSCode 开发工具并验证环境可用。参考 [ 配置开发工具 ] ( tools.md )
49
+ 我们建议你配置好 VSCode / IDEA IntelliJ 的 SSH 开发或 WSL 开发。
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ## macOS
2
+
3
+ ### 安装 Homebrew
4
+
5
+ 参考 [ homebrew] ( https://brew.sh/ )
6
+
7
+ ### 安装依赖
8
+
9
+ TODO:
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
** 我们不对 WSL 环境下遇到的问题提供帮助。** 如果你遇到了一些问题,请考虑自行解决或切换为 VMware 虚拟环境。
4
4
5
- Windows WSL 可能会不适用于在 Linux 环境下刷写 VisionFive2 板子,我们可能会在后续实验提供文档支持 。
5
+ 推荐环境为 WSL2 + Debian 13 (trixie)。如果你已经有一份 Ubuntu 的 WSL,理论上直接用 Ubuntu 的不会有任何问题 。
6
6
7
- 请使用 Ubuntu 24.04 或 Debian stable。
7
+ 指定安装 Debian:
8
8
9
- 然后,请参考 [ 手动环境设置] ( ../setup.md ) 设置 gcc 工具链和 QEMU 模拟器。
9
+ ``` shell
10
+ wsl --install Debian
11
+ ```
12
+
13
+ 如何安装 WSL2 请参考 [ 微软教程] ( https://learn.microsoft.com/en-us/windows/wsl/install ) ,我们也向你推荐 WSL 的 [ 官方配置手册] ( https://learn.microsoft.com/en-us/windows/wsl/setup/environment )
14
+
15
+ 然后,使用包管理器 apt 安装依赖:
16
+
17
+ ``` sh
18
+ $ sudo apt update
19
+ $ sudo apt install openjdk-21-jdk llvm-19 clang-19 git make gzip flex bison
20
+ ```
Original file line number Diff line number Diff line change 31
31
- 环境配置 :
32
32
- 主页 : env/index.md
33
33
- Linux VM 搭建 :
34
- - 导入 OVF : env/setup/vm-import.md
35
34
- Windows WSL : env/setup/wsl.md
36
35
- macOS 原生环境 : env/setup/macos-native.md
37
- - 手动环境配置 : env/setup/manually-setup.md
38
- - VSCode 远程配置 : env/tools.md
39
- - 验证环境 : env/helloworld.md
40
36
# - Antlr:
41
37
# - 简介: antlr/index.md
42
38
# - 安装Antlr: antlr/install.md
You can’t perform that action at this time.
0 commit comments