apt update
apt install -y bzip2 make wget
cd /root/
wget https://paddle-docker-tar.bj.bcebos.com/home/users/tianshuo/bce-python-sdk-0.8.27/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
sed -i 's#ftp://gcc.gnu.org/pub/gcc/infrastructure/#https://paddle-ci.gz.bcebos.com/#g' ./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure --prefix=/usr/local/gcc-8.2 --enable-threads=posix --disable-checking --disable-multilib && \
make -j$(nproc) && make install
apt install gcc-8 && \
ln -s /usr/bin/gcc-8 /usr/bin/gcc
cd /root
apt-get install -y zlib1g-dev libbz2-dev libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev tk-dev libgdbm-dev libdb-dev libpcap-dev xz-utils libexpat1-dev liblzma-dev libffi-dev libc6-dev build-essential libnss3-dev libssl-dev
wget https://www.python.org/ftp/python/3.8.16/Python-3.8.16.tgz
tar -xzf Python-3.8.16.tgz
cd Python-3.8.16 && ./configure && make -j$(nproc) && make install
pip3 install requests numpy protobuf Pillow decorator astor paddle_bfloat==0.1.7 opt_einsum==3.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
cd /root
wget https://github.com/Kitware/CMake/releases/download/v3.16.8/cmake-3.16.8.tar.gz
tar -xzf cmake-3.16.8.tar.gz && cd cmake-3.16.8 && ./bootstrap && make -j$(nproc) && make install
#wget -q https://cmake.org/files/v3.16/cmake-3.16.0-Linux-x86_64.tar.gz
#tar -zxvf cmake-3.16.0-Linux-x86_64.tar.gz
#rm cmake-3.16.0-Linux-x86_64.tar.gz
#PATH=/home/cmake-3.16.0-Linux-x86_64/bin:$PATH
cd /root
wget https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0.tar.gz
tar -xzvf patchelf-0.18.0.tar.gz && cd patchelf-0.18.0
./bootstrap.sh && ./configure && make && make install
cd /root
git clone https://github.com/PaddlePaddle/Paddle.git
cd Paddle && mkdir build && cd build
ulimit -n 4096
cmake .. -DPY_VERSION=3.8 -DPYTHON_EXECUTABLE=`which python3` -DWITH_ARM=ON -DWITH_TESTING=OFF -DON_INFER=ON -DWITH_DISTRIBUTE=ON
make TARGET=ARMV8
Ubuntu: 源码编译paddle
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 问题1:ninja: error: 'frameworks/base/api/current.txt', need...
- X86 openWRT 虚拟机编译教程 在ubuntu10中X86 OpenWRT的源码编译 -、获取软件工具 获...
- 网上已经有很多关于btc的源码分析了,由于eos主网上线还需时日,且网上关于eos的源码解析较少,斗胆尝试着...
- 一、工作环境搭建 1. 安装 Ubuntu16.04 系统 2. 配置环境 2.1 安装 OpenJDK1.7 若...
- 这篇文章主要为大家详细介绍了Ubuntu 16.04源码编译安装Apache 2.4.25,具有一定的参考价值,感...