From deed91a71de7fb400c20e03b8c37a6b13ce0ac7e Mon Sep 17 00:00:00 2001 From: duangavin123 Date: Mon, 28 Mar 2022 09:22:07 +0000 Subject: [PATCH] update zh-cn/device-dev/quick-start/quickstart-standard-running-hi3516-build.md. Signed-off-by: duangavin123 --- ...uickstart-standard-running-hi3516-build.md | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/zh-cn/device-dev/quick-start/quickstart-standard-running-hi3516-build.md b/zh-cn/device-dev/quick-start/quickstart-standard-running-hi3516-build.md index d4655fadc0..43fec8ae8f 100644 --- a/zh-cn/device-dev/quick-start/quickstart-standard-running-hi3516-build.md +++ b/zh-cn/device-dev/quick-start/quickstart-standard-running-hi3516-build.md @@ -55,16 +55,31 @@ bash build/prebuilts_download.sh ### 安装依赖工具 -请在终端中输入如下命令安装编译相关的依赖工具: +1. 使用如下apt-get命令安装后续操作所需的库和工具: -``` -sudo apt-get update && sudo apt-get install binutils git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8 python3-pip ruby libncurses5 libncurses5-dev libncursesw5 openjdk-8-jre default-jre default-jdk -``` + ``` + sudo apt-get update && sudo apt-get install binutils binutils-dev git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib gcc-arm-linux-gnueabi libc6-dev-i386 libc6-dev-amd64 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8 python3-pip ruby genext2fs device-tree-compiler make libffi-dev e2fsprogs pkg-config perl openssl libssl-dev libelf-dev libdwarf-dev u-boot-tools mtd-utils cpio doxygen liblz4-tool openjdk-8-jre gcc g++ texinfo dosfstools mtools default-jre default-jdk libncurses5 apt-utils wget scons python3.8-distutils tar rsync git-core libxml2-dev lib32z-dev grsync xxd libglib2.0-dev libpixman-1-dev kmod jfsutils reiserfsprogs xfsprogs squashfs-tools pcmciautils quota ppp libtinfo-dev libtinfo5 libncurses5-dev libncursesw5 libstdc++6 gcc-arm-none-eabi vim ssh locales + ``` ->![](../public_sys-resources/icon-note.gif) **说明:** ->以上安装命令适用于Ubuntu18.04,其他版本请根据安装包名称采用对应的安装命令。其中: ->- Python要求安装Python 3.8及以上版本,此处以Python 3.8为例。 ->- java要求java8及以上版本,此处以java8为例。 + >![](public_sys-resources/icon-note.gif) **说明:** + >以上安装命令适用于Ubuntu18.04,其他版本请根据安装包名称采用对应的安装命令。其中: + >- Python要求安装Python 3.8及以上版本,此处以Python 3.8为例。 + >- java要求java8及以上版本,此处以java8为例。 + +2. 将python 3.8设置为默认python版本。 + + 查看python 3.8的位置: + + ``` + which python3.8 + ``` + + 将python和python3切换为python3.8: + + ``` + sudo update-alternatives --install /usr/bin/python python {python3.8 路径} 1 #{python3.8 路径}为上一步查看的python3.8的位置 + sudo update-alternatives --install /usr/bin/python3 python3 {python3.8 路径} 1 #{python3.8 路径}为上一步查看的python3.8的位置 + ``` ### 执行prebuilts -- GitLab