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

#### 操作步骤

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

```
tar xvf cistem-1.0.0-beta-source-code.tar.gz
```


3. 执行以下命令，进入解压后的目录。

```
cd cistem-1.0.0-beta
```


4. 执行以下命令，更改源码。

  a. 打开源码。

```
vi src/core/matrix.cpp
```


  b. 按“i”进入编辑模式，修改如下内容。
    第7行的代码：

```
#define _AL_SINCOS(x, s, c)  __asm__ ("fsincos" : "=t" (c), "=u" (s) : "0" (x))
```


    更改为：

```
#define _AL_SINCOS(x, s, c)   s = sinf(x);  c = cosf(x);
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
5. 执行以下命令，更改源码。

  a. 打开源码。

```
vi src/gui/AssetPickerComboPanel.h
```


  b. 按“i”进入编辑模式，修改如下内容。
    第49行的代码：

```
bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}
```


    更改为：

```
bool FillComboBox(long wanted_refinement_package, bool always_select_latest = false) {return AssetComboBox->FillWithRefinements(wanted_refinement_package, always_select_latest);}
```


    第65行的代码：

```
bool FillComboBox(bool include_all_images_group) {AssetComboBox->FillWithImageGroups(include_all_images_group);}
```


    更改为：

```
bool FillComboBox(bool include_all_images_group) {return AssetComboBox->FillWithImageGroups(include_all_images_group);}
```


    第73行的代码：

```
bool FillComboBox(bool include_all_movies_group) {AssetComboBox->FillWithMovieGroups(include_all_movies_group);}
```


    更改为：

```
bool FillComboBox(bool include_all_movies_group) {return AssetComboBox->FillWithMovieGroups(include_all_movies_group);}
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
6. 执行以下命令，更改源码。

  a. 打开源码。

```
vi src/programs/projectx/projectx.cpp
```


  b. 按“i”进入编辑模式，新增如下内容。
    第297行的代码：

```
return true;
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
7. 执行以下命令，更改源码。

```
sed -i 's/\-03/\-00/' configure
```


8. 执行以下命令，进行编译安装。

```
yum install libtiff
xorg-x11-*
./configure --prefix=
/path/to/CISTEM
--with-fftw-dir=
/
path/to/FFTW
make -j
make install
```
