---
title: 编译和安装
description: 1. 使用PuTTY工具，以root用户登录服务器。
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kylin_kunpeng_lmod_8715_02_0008.html"
---

# 编译和安装

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令解压源码。

```
cd
/path/to/Lmod
tar -xvf 8.7.15.tar.gz
cd
Lmod-8.7.15
```


3. 执行以下命令生成makefile。

```
./configure -prefix=
/path/to/Lmod
```


4. 执行以下命令编译安装。

```
make install
```
