1 Star 0 Fork 23

xywang/openharmony_oneclick_env_init

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
apt_get_install.sh 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
猫科龙 提交于 2021-10-23 17:02 . update apt_get_install.sh.
#!/bin/bash
baseDirForScriptSelf=$(cd "$(dirname "$0")"; pwd)
# 初始化环境变量
source ${baseDirForScriptSelf}/source.sh
# 为了防止某个依赖安装失败导致整个失败,逐个安装
## 内网不需要配置代理
if [ "${is_huawei}" == "true" ];then
unset http_proxy;unset https_proxy
fi
echo 'Installing the dependency using the apt-get, about 5 to 10 minutes.'
need_tools='gnutls-bin gcc-arm-linux-gnueabi build-essential fakeroot dpkg-dev git-lfs build-essential gcc g++ make zlib* zip xsltproc x11proto-core-dev wget vim unzip u-boot-tools tzdata texinfo ssh scons python python3-minimal python3-setuptools python3-pip python3-distutils python3-apt python3.8-distutils npm nfs-kernel-server mtools mtd-utils m4 locales libxml2-utils libx11-dev libreadline-dev libgl1-mesa-dev libffi* libc6-dev-x32 libc6-dev-i386 lib32z-dev lib32ncurses5-dev gperf gnupg git-lfs git-core g++-multilib g++ flex dosfstools default-jre default-jdk curl ccache build-essential bison binutils bc genext2fs ruby libtinfo5'
for one_tools in ${need_tools}
do
echo "Install ${one_tools} ..."
sudo bash -c "apt-get install -y ${one_tools} >>${baseDirForScriptSelf}/init_run.log 2>&1"
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/OH-wxy/openharmony_oneclick_env_init.git
git@gitee.com:OH-wxy/openharmony_oneclick_env_init.git
OH-wxy
openharmony_oneclick_env_init
openharmony_oneclick_env_init
master

搜索帮助