# 安装proj

#### 操作步骤

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

```
mkdir -p
/path/to/proj
```


3. 执行以下命令进入安装目录。

```
cd
/path/to/proj
```


4. 执行以下命令获取源码包。

```
wget
http://download.osgeo.org/proj/proj-5.2.0.tar.gz
```


5. 执行以下命令解压源码包。

```
tar -zxvf
proj-5.2.0.tar.gz
```


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

```
cd
proj-5.2.0
/
```


7. 执行以下命令配置。

```
export CC=gcc CXX=g++ FC=gfortran
./configure --enable-shared --enable-static --prefix=
/path/to/proj
```


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

```
make all install
```


9. 执行以下命令设置环境变量。

```
export PATH=
/path/to/proj
/bin:$PATH
export LD_LIBRARY_PATH=
/path/to/proj
/lib:$LD_LIBRARY_PATH
export INCLUDE=
/path/to/proj
/
include
:$INCLUDE
```
