<commit_before>**DRAFT**

Supported releases: **Fedora 20**/**Fedora 21** and **RHEL/CentOS 7**.  
**This setup is not tested by our CI, use at your own risk**.

## Dependencies

### RHEL/CentOS 7 only

Before installing dependencies on RHEL/CentOS 7 you need to add the _OpenQuake Packages for Enterprise Linux 7_ YUM repo:

```bash
$ curl -s http://ftp.openquake.org/rhel/7/openquake.repo | sudo tee /etc/yum.repos.d/openquake.repo
```

### Install the OpenQuake Engine dependencies

```bash
$ sudo yum install git gcc python-amqp python-celery python-lxml numpy python-paramiko scipy python-shapely python-psycopg2 python-django python-setuptools python-psutil python-mock python-futures rabbitmq-server postgresql-server postgis h5py
```

## PostgreSQL initialization
```bash
$ sudo postgresql-setup initdb
```

Open `/var/lib/pgsql/data/pg_hba.conf` file and add on top of the file these lines
```
## localhost in IPv4
host   openquake2   oq_admin        127.0.0.1/32     md5
host   openquake2   oq_job_init     127.0.0.1/32     md5
## localhost in IPv6
host   openquake2   oq_admin        ::1/128       md5
host   openquake2   oq_job_init     ::1/128       md5
```
Then restart PostgreSQL
```bash
$ sudo service postgresql restart
```

## Start rabbitmq-server
```bash
$ sudo service rabbitmq-server start
```
<commit_msg>wiki: add missing dependency for RHEL/Fedora<commit_after>**DRAFT**

Supported releases: **Fedora 20**/**Fedora 21** and **RHEL/CentOS 7**.  
**This setup is not tested by our CI, use at your own risk**.

## Dependencies

### RHEL/CentOS 7 only

Before installing dependencies on RHEL/CentOS 7 you need to add the _OpenQuake Packages for Enterprise Linux 7_ YUM repo:

```bash
$ curl -s http://ftp.openquake.org/rhel/7/openquake.repo | sudo tee /etc/yum.repos.d/openquake.repo
```

### Install the OpenQuake Engine dependencies

```bash
$ sudo yum install sudo git gcc python-amqp python-celery python-lxml numpy python-paramiko scipy python-shapely python-psycopg2 python-django python-setuptools python-psutil python-mock python-futures rabbitmq-server postgresql-server postgis h5py
```

## PostgreSQL initialization
```bash
$ sudo postgresql-setup initdb
```

Open `/var/lib/pgsql/data/pg_hba.conf` file and add on top of the file these lines
```
## localhost in IPv4
host   openquake2   oq_admin        127.0.0.1/32     md5
host   openquake2   oq_job_init     127.0.0.1/32     md5
## localhost in IPv6
host   openquake2   oq_admin        ::1/128       md5
host   openquake2   oq_job_init     ::1/128       md5
```
Then restart PostgreSQL
```bash
$ sudo service postgresql restart
```

## Start rabbitmq-server
```bash
$ sudo service rabbitmq-server start
```

{'fraction_non_alphanumeric': 0.10772659732540862, 'fraction_numerical': 0.033432392273402674, 'mean_word_length': 3.708041958041958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1119650', 'n_tokens_mistral': 1025, 'n_tokens_neox': 905, 'n_words': 284}