Skip to content

Developer Start Guidance

Yicong Huang edited this page Oct 18, 2019 · 14 revisions

macOS:

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Python 3.6+

  1. Install python version manager pyenv: brew install pyenv

  2. Use pyenv to check latest Python version: pyenv install --list | grep -E ' 3.[67].'

  3. Select one from the list and install the latest Python: pyenv install 3.7.4

    ** technically, you could use any 3.6 + version **

Install gdal:

brew install gdal

The tested version is gdal@2.4.2

Install PostgreSQL:

brew install postgresql

The tested version is postgresql@11.5_1

Then install Python packages:

  • Recommend to use a python virtualenv: pip install virtualenv create a virtual environment called venv: virtualenv venv or python3 -m venv venv then activate venv:source venv/bin/activate

  • Install all requirements: run cat requirements.txt | xargs pip install

  • if run into the error below:
    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'gcc' failed with exit status 1

check this page

Linux (CentOS):

We are using CentOS 7 as the deployment server. If you are using other linux or unix based system to develop, you are responsible to make sure it works or its dependencies work on CentOS 7

to be filled...

to be filled...