---
title: 部署Greenplum过程中，配置环境变量时提示语法错误的解决方法
description: "部署Greenplum过程中，在配置环境变量时提示“-bash:/root/.shell/shared_func:line195...”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/Greenplum/openmind_greenplum5113_03_0020.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/Greenplum/openmind_greenplum5113_03_0020.html
indexId: 5859cd9f2cf121fd445a8906c36ebd3e24b4e38efd8e98c21a9e761afa06c78d83
---
# 部署Greenplum过程中，配置环境变量时提示语法错误的解决方法

#### 问题现象描述

部署Greenplum过程中，在配置环境变量时提示“-bash:/root/.shell/shared_func:line195...”。


#### 关键过程、根本原因分析

可能是配置环境变量时有语法错误导致的问题。


#### 结论、解决方案及效果

1. 修改“/root/.shell/shared_func”文件。

  a. 打开“/root/.shell/shared_func”文件。

```
vi /root/.shell/shared_func
```


  b. 将192行修改为如下信息。

```
ai2(){
```


2. 修改/root/.shell/shared_alias文件。

  a. 打开/root/.shell/shared_alias文件。

```
vi /root/.shell/shared_alias
```


  b. 将142行修改为如下信息。

```
ai2(){
```


3. 使环境变量配置生效。
  1 source /home/gpadmin/.bash_profile

4. 修改/root/.shell/shared_func文件。

  a. 打开/root/.shell/shared_func文件。

```
vi /root/.shell/shared_func
```


  b. 将216行修改为如下信息。

```
ad2(){
```


5. 修改/root/.shell/shared_alias文件。

  a. 打开/root/.shell/shared_alias文件

```
vi /root/.shell/shared_alias
```


  b. 将160行修改为如下信息。

```
ad2(){
```


6. 使环境变量配置生效。
  1 source /home/gpadmin/.bash_profile

7. 修改/root/.shell/shared_func文件。

  a. 打开/root/.shell/shared_func文件。

```
vi /root/.shell/shared_func
```


  b. 将220行修改为如下信息。

```
dL2(){
```


8. 修改/root/.shell/shared_alias文件。

  a. 打开/root/.shell/shared_alias文件。

```
vi /root/.shell/shared_alias
```


  b. 将164行修改为如下信息。

```
dL2(){
```


9. 再次执行如下命令，使环境变量配置生效。

```
source /home/gpadmin/.bash_profile
```
