From 124681426c52fdc29476f42e7804d72f41a8cea6 Mon Sep 17 00:00:00 2001 From: Peng Zhou Date: Wed, 26 Jan 2022 10:59:24 +0800 Subject: [PATCH] update how to install quingoc --- README.md | 18 ++++++++++++++---- README_ZH.md | 20 ++++++++++++++++---- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8d5b002..5116736 100755 --- a/README.md +++ b/README.md @@ -23,10 +23,20 @@ Two versions of Quingo compiler has been developed: #### Install the Mlir-based Compiler -Install the mlir-based Quingo compiler using the following command: -```sh -python -m quingo.install_quingoc -``` +We can install mlir-based quingo compiler in two ways: + ++ Install the mlir-based Quingo compiler using the following command: + ```sh + python -m quingo.install_quingoc + ``` + ++ Download [mlir-based Quingo compiler](https://gitee.com/quingo/quingoc-release/releases) + + Windows: unzip .zip file, add directory which contains the quingoc executable file to system environment PATH. + + Linux: as the following sample usage, Quingoc will be installed to user defined directory, then add directory which contains the quingoc executable file to system environment PATH. + ```sh + quingo-compiler-0.1.4.sh -prefix=/home/user/.local + ``` + + Macos: uncompress .dmg file, copy quingoc executable file to user defined directory, then add directory which contains the quingoc executable file to system environment PATH. #### Install the Xtext-based Compiler diff --git a/README_ZH.md b/README_ZH.md index 6649923..8615d74 100755 --- a/README_ZH.md +++ b/README_ZH.md @@ -22,10 +22,22 @@ pip install quingo #### 安装基于`mlir`的青果编译器 -执行以下命令便可自动下载安装基于`mlir`的青果编译器: -```sh -python -m quingo.install_quingoc -``` +Quingo提供两种方式安装基于`mlir`的青果编译器 + ++ 执行以下命令便可自动下载安装基于`mlir`的青果编译器: + ```sh + python -m quingo.install_quingoc + ``` + ++ 从[Quingoc发布地址](https://gitee.com/quingo/quingoc-release/releases)下载基于`mlir`的青果编译器 + + Windows:解压zip压缩包,并将Quingoc所在目录加入到系统环境变量PATH中 + + Linux:执行如下示例命令,Quingoc安装到用户指定的目录,将该目录加入到系统环境变量PATH中 + ```sh + quingo-compiler-0.1.4.sh -prefix=/home/user/.local + ``` + + Macos:解压dmg压缩包,将Quingoc可执行文件拷贝到用户指定的目录下,并添加该目录加入到系统环境变量PATH中 + + #### 安装基于`xtext`的青果编译器 -- Gitee