Deploying the Server Compilation Environment
Environment Requirements
This document describes how to compile the server software based on the x86 server running Ubuntu 22.04 LTS. Before the compilation, ensure that your hardware environment meets the requirements.
Table 1 lists the hardware requirements for compiling and building the server software.
Device Model |
Function |
Server OS |
|---|---|---|
x86_64 server |
Used to compile and build the server software. |
Ubuntu 22.04 LTS |
- In this document, the server model is 2288H V5.
- Ensure that the server can connect to the Internet so that the OS image can be downloaded.
Deployment Procedure
- Install the dependencies.
1 2 3 4 5 6 7 8 9 10 11 12
sudo apt install -y git sudo apt install -y libtool automake tclsh make openjdk-11-jdk git-core gnupg sudo apt install -y flex bison gperf build-essential zip curl zlib1g-dev sudo apt install -y gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev sudo apt install -y x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev sudo apt install -y libxml2-utils xsltproc unzip sudo apt install -y libx11-dev libreadline-dev sudo apt install -y libncurses5 libncurses5-dev sudo apt install -y tofrodos python-markdown-doc zlib1g-dev sudo apt install -y dpkg-dev libsdl1.2-dev sudo apt install -y m4 bc python3 python3-mako gettext sudo apt install -y expect
- Download the VMI code and go to the vmi directory.
1 2
git clone https://gitee.com/kunpengcompute/vmi.git cd vmi
- Use the automatic deployment script to deploy the compilation tool.
1 2
chmod +x scripts/auto_install_tools.sh ./scripts/auto_install_tools.sh ${installation directory}
${installation directory} indicates the directory where the compilation tool is downloaded and decompressed. This directory can be customized. If you do not specify an installation directory, the script uses the default directory ~/NativeCompileToolsDir.
After the script is executed successfully, import environment variables.
1source ~/.bashrc
Parent topic: Configuring the Development Environment