README.linux.md 2.2 KB
Newer Older
G
Goutam Tadi 已提交
1 2 3 4 5 6 7 8 9 10 11
## For CentOS:

- Install Dependencies

  ```bash
    ./README.CentOS.bash
  ```

- If you want to link cmake3 to cmake, run:

  ```bash
12
    sudo ln -sf /usr/bin/cmake3 /usr/local/bin/cmake
G
Goutam Tadi 已提交
13 14 15 16 17
  ```

- Make sure that you add `/usr/local/lib` and `/usr/local/lib64` to
`/etc/ld.so.conf`, then run command `ldconfig`.

T
Tyler Ramer 已提交
18
- If you want to install and use gcc-7 by default, run:
G
Goutam Tadi 已提交
19 20

  ```bash
21
  sudo yum install -y centos-release-scl
T
Tyler Ramer 已提交
22 23
  sudo yum install -y devtoolset-7-toolchain
  echo 'source scl_source enable devtoolset-7' >> ~/.bashrc
G
Goutam Tadi 已提交
24 25 26 27 28 29
  ```

## For RHEL

Use dependency script for CentOS.

T
Tyler Ramer 已提交
30
- If you want to install `devtoolset-7`:
G
Goutam Tadi 已提交
31 32 33

  ```bash
  sudo yum-config-manager --enable rhui-REGION-rhel-server-rhscl
T
Tyler Ramer 已提交
34
  sudo yum install -y devtoolset-7-toolchain
G
Goutam Tadi 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48
  ```

## For Ubuntu:

- Install Dependencies
  When you run the README.ubuntu.bash script for dependencies, you will be asked to configure realm for kerberos.
  You can enter any realm, since this is just for testing, and during testing, it will reconfigure a local server/client.
  If you want to skip this manual configuration, use:
  `export DEBIAN_FRONTEND=noninteractive`

  ```bash
    ./README.ubuntu.bash
  ```

T
Tyler Ramer 已提交
49
- Ubuntu 18.04 and newer should have use gcc 7 or newer, but you can also enable gcc-7 on older versions of Ubuntu:
G
Goutam Tadi 已提交
50 51 52 53

  ```bash
  add-apt-repository ppa:ubuntu-toolchain-r/test -y
  apt-get update
T
Tyler Ramer 已提交
54
  apt-get install -y gcc-7 g++-7
G
Goutam Tadi 已提交
55 56 57 58 59
  ```

## Common Platform Tasks:

Make sure that you add `/usr/local/lib` to `/etc/ld.so.conf`,
60
then run command `ldconfig`.
G
Goutam Tadi 已提交
61 62 63 64 65 66 67 68
1. Create gpadmin and setup ssh keys
   Either use:

   ```bash
   # Requires gpdb clone to be named gpdb_src
   gpdb_src/concourse/scripts/setup_gpadmin_user.bash
   ```
   to create the gpadmin user and set up keys,
T
Todd Sedano 已提交
69

G
Goutam Tadi 已提交
70
   OR
T
Todd Sedano 已提交
71

X
Xin Zhang 已提交
72 73 74 75
   manually create ssh keys so you can do ssh localhost without a password, e.g., 
   
   ```
   ssh-keygen
76
   cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
T
Todd Sedano 已提交
77
   chmod 600 ~/.ssh/authorized_keys
X
Xin Zhang 已提交
78
   ```
T
Todd Sedano 已提交
79

80
1. Verify that you can ssh to your machine name without a password
T
Todd Sedano 已提交
81

G
Goutam Tadi 已提交
82
   ```bash
83
    ssh <hostname of your machine>  # e.g., ssh briarwood
G
Goutam Tadi 已提交
84 85
   ```

T
Tyler Ramer 已提交
86
1. Set up your system configuration by following the installation guide on [docs.greenplum.org](https://docs.greenplum.org)
G
Goutam Tadi 已提交
87

88