Skip to content

Compile_CN

LIN edited this page Dec 7, 2023 · 2 revisions

准备环境

环境需要有python2和python3两个版本,本文使用anaconda进行python环境的管理

依赖安装

# 切换python2环境后执行
pip install -r requirements.txt
# 切换python3环境后执行
pip install -r requirements3.txt

进行打包

# 切换python2环境后执行
sh rpm/build.sh executer
# 切换python3环境后执行
sh rpm/build.sh rpm_obd

常见问题

  1. 遇到 _mysql.c:44:23: fatal error: my_config.h: No such file or directory yum install mysql-devel
  2. 遇到 backports/lzma/_lzmamodule.c:115:18: fatal error: lzma.h: No such file or directory yum install xz-devel
Clone this wiki locally