未验证 提交 f2de9046 编写于 作者: L liyan 提交者: Gitee

update zh-cn/device-dev/quick-start/quickstart-pkg-install-tool.md.

Signed-off-by: Nli-yan339 <liyan339@h-partners.com>
Signed-off-by: Nliyan <liyan339@h-partners.com>
上级 709cfd65
......@@ -13,53 +13,40 @@
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 如需安装代理,请参考[配置代理](quickstart-pkg-common-proxy.md)。
1. 运行如下命令安装hb并更新至最新版本
1. 在源码根目录运行如下命令安装hb并更新至最新版本。
```
pip3 install --user build/lite
```shell
python3 -m pip install --user build/hb
```
2. 设置环境变量
2. 设置环境变量
```
```shell
vim ~/.bashrc
```
将以下命令拷贝到.bashrc文件的最后一行,保存并退出。
```
```shell
export PATH=~/.local/bin:$PATH
```
执行如下命令更新环境变量。
```
```shell
source ~/.bashrc
```
3. 在源码目录执行"hb -h",界面打印以下信息即表示安装成功:
3. 在源码目录执行"hb help",界面打印以下信息即表示安装成功。
```
usage: hb
OHOS build system
![hb_help](figures/hb_help.png)
positional arguments:
{build,set,env,clean}
build Build source code
set OHOS build settings
env Show OHOS build env
clean Clean output
optional arguments:
-h, --help show this help message and exit
```
> ![icon-notice.gif](public_sys-resources/icon-notice.gif) **须知:**
> - 可采用以下命令卸载hb:
>
> ```
> pip3 uninstall ohos-build
> ```shell
> python3 -m pip uninstall ohos-build
> ```
>
> - 若安装hb的过程中遇到问题,请参见下文[常见问题](quickstart-pkg-common-hberr.md)进行解决。
......@@ -78,25 +65,25 @@
3. 解压LLVM安装包至~/llvm路径下。
```
```shell
tar -zxvf llvm.tar -C ~/
```
4. 设置环境变量。
```
```shell
vim ~/.bashrc
```
将以下命令拷贝到.bashrc文件的最后一行,保存并退出。
```
```shell
export PATH=~/llvm/bin:$PATH
```
5. 生效环境变量。
```
```shell
source ~/.bashrc
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册