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

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 进入主程序安装目录。

```
cd
/path/to/ploticus
```


3. 解压安装包。

```
tar xvf ploticus242_src.tar.gz
cd ploticus242/src
```


4. 修改编译文件。

```
sed -i "10c\CC = clang" Makefile
sed -i "143c\INSTALLBIN =
/path/to/ploticus242-install
"
Makefile
```


5. 创建安装目录。

```
mkdir -p
/path/to/ploticus242-install
```


6. 编译安装。

```
make
make install
```
