---
title: 验证GNU 9.1
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/instg-osc/kunpenggnu_010.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/instg-osc/kunpenggnu_010.html
indexId: 0388d4e73676f95c61a839fef671139e0acdca003a4f9a3cd045da8f1eda292c62
---
# 验证GNU 9.1

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令加载环境变量。
  export PATH=/path/to/GNU/bin:$ PATH

  export LD_LIBRARY_PATH=/path/to/GNU/lib64:$LD_LIBRARY_PATH

3. 执行以下命令查看GCC版本是否为9.1.0。
  gcc -v

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/path/to/GNU/bin/../libexec/gcc/aarch64-unknown-linux-gnu/9.1.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: ../configure --disable-multilib --enable-languages=c,c++,fortran --prefix=/path/to/GNU --disable-static --enable-shared --with-gmp=/path/to/GMP --with-mpfr=/path/to/MPFR --with-mpc=/path/to/MPC
Thread model: posix
gcc version 9.1.0 (GCC)
```
