Rate This Document
Findability
Accuracy
Completeness
Readability

Deploying the Server Compilation Environment

  1. Install the dependencies.
    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
  2. Download the VMI code and go to the vmi directory.
    git clone https://gitee.com/kunpengcompute/vmi.git
    cd vmi
  3. Use the automatic deployment script to deploy the compilation tool.
    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.

    source ~/.bashrc