---
# System prepended metadata

title: How to build Ruby ENV
tags: [Ruby, PandoraFMS]

---

# How to build Ruby ENV


###### tags: `Ruby` `PandoraFMS`

### Prerequisites
- Host: amzn 2

---


#### Install ruby 2.3.8
- Install GPG keys:
```gherkin=
     command curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg2 --import -
```
- Install RVM:
```gherkin=
curl -sSL https://get.rvm.io | sudo bash -s stable

```
- For installing RVM with default Ruby and Rails in one command, run
```gherkin=
curl -sSL https://get.rvm.io | bash -s stable --rails
```
- Install ruby:
```gherkin=
rvm install ruby-2.3.8
```


```gherkin=
gem install rest-client pry
```

#### Check API
- Usage
```gherkin=
ruby check_v3.rb -h ca-st2-relay.api.splashtop.com
```
- Outputs:
```gherkin=
Fulong API health checker
- purpose: Check SRC and SRS can access fulong API v3.
- host url: ca-st2-relay.api.splashtop.com

both SRC and SRS
- verify API => OK

SRC
- init_src API => OK
- feature API => OK
- src_policy API => OK
- srs_list API => OK
- service_get API => OK

SRS
- init_srs API => OK
- get_relay API => OK
- policy API => OK
- heartbeat API => OK

```