2 Star 1 Fork 0

bingxing_project/OmcServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
INSTALL.sh 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
wyp123 提交于 2021-06-24 17:49 . 624-17:28
#!/bin/bash
function InstallOmc() {
apt-get update
apt-get upgrade
apt-get install -qy gnupg wget ca-certificates apt-transport-https default-libmysqlclient-dev
echo "deb https://build.openmodelica.org/omc/builds/linux/releases/1.16.2/ $(cat /etc/lsb-release | grep CODENAME | cut -d= -f2) release" >/etc/apt/sources.list.d/openmodelica.list
wget https://build.openmodelica.org/apt/openmodelica.asc -O- | apt-key add -
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install --no-install-recommends -qy omc
}
function InstallPython() {
apt-get install -qy python3-pip
pip3 install --no-cache-dir ompython
pip3 install -r ./requirement.txt
}
function InstallModelicaLib() {
mkdir file
cp -rf ./libraries/* ~/.openmodelica/libraries
cd /home/${USER}
chown -R ${USER} .openmodelica/
chmod 777 .openmodelica/libraries
cd .openmodelica/libraries
}
echo "install openmodelica"
InstallOmc
echo "install openmodelica python"
InstallPython
echo "install openmodelica Modelica lib"
InstallModelicaLib
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/pingtan_web/omc-server.git
[email protected]:pingtan_web/omc-server.git
pingtan_web
omc-server
OmcServer
master

搜索帮助