Skip to content

Commit

Permalink
Merge pull request #82 from GuiRch/addGdalSolution
Browse files Browse the repository at this point in the history
✨ update for gdal issue in FAQS.md for mac and linux
  • Loading branch information
lcognat committed Apr 23, 2021
2 parents ae1f8c7 + eaba6e5 commit 08b0cdb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
17 changes: 16 additions & 1 deletion FAQS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ When you try out the `concrete-datastore` yourself, you might stumble across one
- [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)

- [Is GDAL installed ?](#is-gdal-installed-)
<!-- /MarkdownTOC -->


Expand Down Expand Up @@ -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 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
brew install postgis
```

### For Linux
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
```
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/)

0 comments on commit 08b0cdb

Please sign in to comment.