Skip to content

Commit

Permalink
Fix README quickstart example (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspermarstal authored Mar 5, 2024
1 parent 1a5015b commit 330f4f7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,22 @@ The following installation guides works on Debian.
Run these commands to install PL/PRQL and its dependencies for PostgreSQL 16:

```cmd
apt-get update && apt-get upgrade
apt-get install -y curl wget gnupg lsb-release git
sudo apt-get update && apt-get upgrade
sudo apt-get install -y curl wget gnupg lsb-release git build-essential
sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update
apt-get install -y postgresql-16 postgresql-server-dev-16
sudo apt-get update
sudo apt-get install -y postgresql-16 postgresql-server-dev-16
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source ~/.bashrc
cargo install --locked --version=0.11.3 cargo-pgrx
cargo pgrx init --pg16 $(which pg_config)
git clone https://github.com/kaspermarstal/plprql
cd plprql/plprql
cargo pgrx install --no-default-features --release --sudo
```

You can try it out in a vanilla docker container using `docker run -it --entrypoint /bin/bash debian:bookworm`.
You can try it out in a vanilla docker container using `docker run -it --entrypoint /bin/bash debian:bookworm` and removing all references to sudo (commands in docker are already running as root).

### Install Deb File
Follow these steps to install PL/PRQL from one of the released deb files:
Expand Down

0 comments on commit 330f4f7

Please sign in to comment.