---
title: openEuler 20.03 & openEuler 22.03操作系统
description: "使用源码编译前，需在各节点安装GCC/G++、make、CMake以及Glibc，其版本要求参考如表1。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2200/bds/kunpengomnicache_20_0014.html
sourcePath: /source/zh/kunpengboostkithistory/2200/bds/kunpengomnicache_20_0014.html
indexId: 71f059244c6066a0c80499ecb94d9b9311558ca626e35f3a97f64d003c51cca072
---
# openEuler 20.03 & openEuler 22.03操作系统

使用源码编译前，需在各节点安装GCC/G++、make、CMake以及Glibc，其版本要求参考如表1。


**表1 源码编译前需要配置的软件**

| 名称 | 版本要求 |
| --- | --- |
| GCC/G++ | 7.3.0 |
| make | 4.2.1及以上 |
| CMake | 3.13.4及以上 |
| Glibc | 2.25及以上 |


1. 下载Conda软件包，并激活Conda虚拟环境。

  a. 下载Conda。

```
cd /opt
wget -k https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-aarch64.sh
```


  b. 安装Conda，安装路径可以选择在“/opt/anaconda3”路径下面。

```
bash Anaconda3-2022.05-Linux-aarch64.sh
```


  c. 初始化Conda。

```
source /opt/anaconda3/etc/profile.d/conda.sh
```


  d. 创建Conda虚拟环境，名字是omnicache。

```
conda create -n omnicache python=3.9
```


  e. 激活Conda虚拟环境。

```
conda activate omnicache
```


2. 使用pip下载Python依赖库。

```
pip install Cython==0.29.24
pip install docutils==0.19
pip install numpy==1.22.3
pip install pandas==1.3.5
pip install ply==3.11
pip install PuLP==2.4
pip install py4j==0.10.9
pip install pydoop==2.0.0
pip install pyparsing==3.0.9
pip install pypred==0.4.0
pip install pyspark==3.1.1
pip install python-dateutil==2.8.2
pip install pytz==2022.2.1
pip install PyYAML==6.0
pip install six==1.16.0
pip install torch==1.10.2
pip install typing_extensions==4.3.0
pip install z3-solver==4.8.15.0
```


3. 使用Conda下载GLPK第三方库。

```
conda install -c conda-forge glpk --yes
```


  若下载失败，请参考安装GLPK失败。

4. 分别下载OmniCache物化视图推荐算法软件包， OmniCache物化视图 Plugin的JAR包、OmniCache物化视图日志解析JAR包放到Spark集群的server节点，软件包获取路径请参见软件获取，软件包路径没有特殊要求。例如以“/opt/omnicache”为例。

```
mkdir -p /opt/omnicache
mv boostkit-omnicache-spark-3.1.1-1.0.0-aarch64.jar /opt/omnicache
mv boostkit-omnicache-logparser-spark-3.1.1-1.0.0-aarch64.jar /opt/omnicache
mv BoostKit-omnicache_1.0.0.zip /opt/omnicache
```


5. 解压OmniCache物化视图组件包，并去除其他用户组的读取和可执行文件权限。

```
cd /opt/omnicache
unzip BoostKit-omnicache_1.0.0.zip
chmod -R o-r BoostKit-omnicache_1.0.0
chmod -R o-x BoostKit-omnicache_1.0.0
```
