-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathenviorment.sh
42 lines (40 loc) · 1.1 KB
/
enviorment.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -eoux pipefail
###
# @Github: https://github.com/Certseeds/CS323_Compilers_2020F
# @Organization: SUSTech
# @Author: nanoseeds
# @Date: 2020-09-17 12:06:16
# @LastEditors: nanoseeds
# @LastEditTime: 2021-01-29 11:15:52
###
main() {
# build essential include gcc and make
sudo apt install build-essential
# get flex and bison
sudo apt install flex bison libfl-dev
# get python's pip
# you can change to anaconda,miniconda or use system's python
sudo apt install python3-pip
#? dont forget to change pip's repo address to aliyun, hust or any other.
# `` this command can not run on ubuntu,
# use this command to download urwid, mainly use in project3
pip3 install urwid -i http://pypi.hustunique.com/
# Do not use sudo pip3 install urwid
# install Spim, mainly aims to project4
sudo apt install spim
}
extra() {
# if you want to use cmake
sudo pip3 install cmake==3.17.2
}
# default is
# + GCC version 7.4.0
# + GNU Make version 4.1
# + GNU Flex version 2.6.4
# + GNU Bison version 3.0.4
# + Python version 3.6.8
# + urwid (Python module) 2.0.1
# + Spim version 8.0
main
# extra