From 273076060572eacaf56fbf3819e5289ed8ba67fb Mon Sep 17 00:00:00 2001 From: Guillaume RICHER Date: Fri, 16 Apr 2021 17:31:07 +0200 Subject: [PATCH 1/4] :sparkles: update for gdal issue in FAQS.md for mac and linux --- FAQS.md | 19 +++++++++++++++++-- README.md | 7 ++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/FAQS.md b/FAQS.md index 3913031e..3f81d41c 100644 --- a/FAQS.md +++ b/FAQS.md @@ -11,8 +11,8 @@ When you try out the `concrete-datastore` yourself, you might stumble across one - [I can not pip install: UNKNOWN error](#i-can-not-pip-install-unknown-error) - [Running the migration scripts throws an error: role does not exists](#running-the-migration-scripts-throws-an-error-role-does-not-exists) - [Troubleshooting Docker](#troubleshooting-docker) -- [How do I quit my virtualenv session?](#how-do-i-quit-my-virtualenv-session) - +- [How do I quit my virtualenv session?](#how-do-i-quit-my-virtualenv-session +- [Is GDAL installed ?](#is-gdal-installed-) @@ -91,3 +91,18 @@ If you are done working with the virtual environment, just deactivate it by runn ``` shell deactivate ``` + +## Is GDAL installed ? +### For MacOS +If your terminal print an error like : ```Could not find the GDAL library ... is GDAL installed``` try to run ```brew install gdal``` in your terminus. (N.B : this command requires to have Xcode installed on your Mac) +If this doesn't fix your issue, try : +```shell +brew install PostgreSQL +brew install postgis +``` + +### For Linux +If your terminal print an error like : ```Could not find the GDAL library ... is GDAL installed``` try to run in your terminal : +```shell +sudo apt-get install gdal-bin +``` diff --git a/README.md b/README.md index 0e7b54c5..fa445015 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ As opposed to a classic database server such as PostgreSQL or MySQL where querie ```shell git clone https://github.com/Netsach/concrete-datastore.git cd concrete-datastore -docker run --name postgres-concrete-datastore -d -p 5432:5432 postgres +docker run --name postgres-concrete-datastore -e POSTGRES_DB=db-concrete-datastore -e POSTGRES_USER=user-concrete-datastore -e POSTGRES_PASSWORD=pwd-concrete-datastore -d -p XXXX:5432 postgis/postgis:12-master +export POSTGRES_PORT=XXXX export DATAMODEL_FILE=./docs/assets/sample-datamodel.yml python3 -m venv env source env/bin/activate @@ -63,6 +64,10 @@ Each API requests is controlled by this `datamodel` file as it acts as a specifi You can create manually the `datamodel` file following the examples and the documentation or use the online editor [microservices.rest](https://www.microservices.rest/) +## F.A.Q + +If you have questions, they may have already been answered in the [FAQS.md](FAQS.md) + ## Official documentation See the [official documentation](http://concrete-datastore.netsach.org/) From fcc0a0de09cafbaa6401f3eb285b7514d1e5d023 Mon Sep 17 00:00:00 2001 From: GuiRch <62909821+GuiRch@users.noreply.github.com> Date: Mon, 19 Apr 2021 14:22:10 +0200 Subject: [PATCH 2/4] Update FAQS.md Co-authored-by: Khaled Bousrih <60177005+KhaledBousrih@users.noreply.github.com> --- FAQS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQS.md b/FAQS.md index 3f81d41c..425d7245 100644 --- a/FAQS.md +++ b/FAQS.md @@ -102,7 +102,7 @@ brew install postgis ``` ### For Linux -If your terminal print an error like : ```Could not find the GDAL library ... is GDAL installed``` try to run in your terminal : +If your terminal prints an error like : ```Could not find the GDAL library ... is GDAL installed``` try to run in your terminal : ```shell sudo apt-get install gdal-bin ``` From 99a9aab6c47bc21a86c727606a270395635a8040 Mon Sep 17 00:00:00 2001 From: GuiRch <62909821+GuiRch@users.noreply.github.com> Date: Mon, 19 Apr 2021 14:22:22 +0200 Subject: [PATCH 3/4] Update FAQS.md Co-authored-by: Khaled Bousrih <60177005+KhaledBousrih@users.noreply.github.com> --- FAQS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQS.md b/FAQS.md index 425d7245..e6249c42 100644 --- a/FAQS.md +++ b/FAQS.md @@ -94,7 +94,7 @@ deactivate ## Is GDAL installed ? ### For MacOS -If your terminal print an error like : ```Could not find the GDAL library ... is GDAL installed``` try to run ```brew install gdal``` in your terminus. (N.B : this command requires to have Xcode installed on your Mac) +If your terminal prints an error like : ```Could not find the GDAL library ... is GDAL installed``` try to run ```brew install gdal``` in your shell. (N.B : this command requires to have Xcode installed on your Mac) If this doesn't fix your issue, try : ```shell brew install PostgreSQL From eaba6e5cc2938f47b1204f16d9ebc22d5e2fc4b8 Mon Sep 17 00:00:00 2001 From: GuiRch <62909821+GuiRch@users.noreply.github.com> Date: Mon, 19 Apr 2021 14:22:46 +0200 Subject: [PATCH 4/4] Update FAQS.md Co-authored-by: Khaled Bousrih <60177005+KhaledBousrih@users.noreply.github.com> --- FAQS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQS.md b/FAQS.md index e6249c42..58c5ca30 100644 --- a/FAQS.md +++ b/FAQS.md @@ -11,7 +11,7 @@ When you try out the `concrete-datastore` yourself, you might stumble across one - [I can not pip install: UNKNOWN error](#i-can-not-pip-install-unknown-error) - [Running the migration scripts throws an error: role does not exists](#running-the-migration-scripts-throws-an-error-role-does-not-exists) - [Troubleshooting Docker](#troubleshooting-docker) -- [How do I quit my virtualenv session?](#how-do-i-quit-my-virtualenv-session +- [How do I quit my virtualenv session?](#how-do-i-quit-my-virtualenv-session) - [Is GDAL installed ?](#is-gdal-installed-)