Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to go to the main program installation directory:
    cd /path/to/WANT
  3. Run the following command to decompress the main program installation package:
    tar -xvf want-want-2.6.1.tar.gz
  4. Run the following command to go to the directory generated after decompression:
    cd want-want-2.6.1
  5. Run the following command to perform the configuration:
    ./configure CC=gcc CFLAGS="-O3 -march=armv8.2-a -mcpu=tsv110" --build=aarch64-unknown-linux-gnu
  6. Run the following commands to modify the make.sys file and link the mathlib math library of the optimized GCC for openEuler version to the main program.
    1. Open the make.sys file.
      vi make.sys
    2. Press i to go to the insert mode.
      • Add a newline character (\) at the end of line 91.
      • Add line 92 and add the following content:
        -Wl,-rpath=/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc -L/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc -lmathlib -lm

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Run the following command to configure the environment variables of the mathlib library:
    export LD_LIBRARY_PATH=/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc:$LD_LIBRARY_PATH
  8. Run the following command to perform the compilation and installation:
    make all

    After the compilation and installation are complete, the following executable files are generated in the bin directory: