76 lines
1.3 KiB
Markdown
76 lines
1.3 KiB
Markdown
# Linux/Mac installation instructions
|
|
|
|
## Install dependencies
|
|
|
|
### Dependency list
|
|
|
|
* Python >3.5
|
|
* PostgreSQL >9.5
|
|
* pip3
|
|
* virtualenv
|
|
* npm
|
|
|
|
Install with apt:
|
|
|
|
```bash
|
|
sudo apt install python3
|
|
sudo apt install python3-pip
|
|
sudo apt install postgresql
|
|
sudo pip3 install virtualenv
|
|
sudo apt install npm
|
|
```
|
|
|
|
More info about PostgreSQL at:
|
|
[https://www.postgresql.org/](https://www.postgresql.org)
|
|
|
|
These packages might be needed on certain platforms:
|
|
|
|
* python3-dev
|
|
* libffi-dev
|
|
* python3-cffi
|
|
* libssl-dev
|
|
|
|
## Create a virtual environment for python
|
|
|
|
Create a virtualenv in the parent directory.
|
|
|
|
```bash
|
|
virtualenv -p python3 ../virtualenv.sikweb
|
|
```
|
|
|
|
## Activate virtualenv
|
|
|
|
Assuming we are at the root of this repository and virtualenv is one level above.
|
|
|
|
```bash
|
|
. ../virtualenv.sikweb/bin/activate
|
|
```
|
|
|
|
## Run install wizard
|
|
|
|
Run the install wizard with
|
|
|
|
```bash
|
|
bash setup.sh
|
|
```
|
|
|
|
and follow the instructions.
|
|
|
|
## Done
|
|
|
|
## In case of error on macOS Mojave 10.14
|
|
|
|
If you get an error saying
|
|
|
|
```bash
|
|
The headers or library files could not be found for zlib,
|
|
a required dependency when compiling Pillow from source.
|
|
```
|
|
|
|
run
|
|
|
|
```bash
|
|
xcode-select --install
|
|
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
|
|
```
|