Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the Installation section of README.md #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,31 @@ SELECT jalali_part('dow', '2019-07-07'); --> 4
# Installation

Dependencies:
> sudo apt install postgresql-server-dev-12

Run make to build and install
> make

> sudo make install

```bash
sudo apt install postgresql-server-dev-15
```
You may need to install `make` in order to compile the project. Therefore, you can run the following command:
```bash
sudo apt install build-essential
```
You may also need to install the `clang` package in order for the `make` command to run without errors:
```bash
apt install clang-11
```
Run `make` to build and install:
```bash
make
sudo make install
```
Run this command in your psql shell:
> \d your_db_name

> CREATE EXTENSION jalali_utils;

```
\d your_db_name
```
Finally, you can create the extension in your database:
```sql
CREATE EXTENSION jalali_utils;
```
# Running tests

> make installcheck
```bash
make installcheck
```