ankane/dexter

Installation via package does not work

alexanderadam opened this issue · 6 comments

First of all: dexter is awesome! I like the idea and how it's done. This is wonderful! So thank you for dexter.

I tried to install dexter within the official Postgres Docker container and everything went fine until I actually tried to run dexter. It resulted in an error that looks a bit like a old bundler error:

screenshot_20180321_152302

I "solved" it by installing it via the traditional way (current ruby + rubygems) and everything went fine. So I guess that the binary packages don't run flawlessly on every system.

Hey @alexanderadam, thanks for another report 👍 Which platform are you on? My guess is the package is missing a dependency for that platform.

It's the official Postgres 9.4 Docker container (Debian Jessie).

Hey @alexanderadam, I'm unable to repro. Can you share the Dockerfile you're using?

I did not create a separate Dockerfile. I just used the linked one and executed this within the container for development purposes:

apt update && apt install curl build-essentials build-essential wget apt-transport-https git postgresql-server-dev-9.4
curl -L https://dl.packager.io/srv/pghero/dexter/key | sudo apt-key add -
wget -O /etc/apt/sources.list.d/dexter.list https://dl.packager.io/srv/pghero/dexter/master/installer/debian/9.repo
wget -O /etc/apt/sources.list.d/dexter.list https://dl.packager.io/srv/pghero/dexter/master/installer/debian/8.repo
apt update && apt install dexter

cd /tmp
git clone https://github.com/HypoPG/hypopg.git
cd hypopg
make && make install

Then I activated the query log and tailed it into dexter (but calling dexter with credentials failed in general).

Any reason you're installing the Debian 9 package instead of just 8? The following works fine for me with the postgres:9.4 image:

apt update && apt install curl build-essential wget apt-transport-https git postgresql-server-dev-9.4
curl -L https://dl.packager.io/srv/pghero/dexter/key | apt-key add -
wget -O /etc/apt/sources.list.d/dexter.list https://dl.packager.io/srv/pghero/dexter/master/installer/debian/8.repo
apt-get update
apt-get install dexter

Oh, that was indeed by accident. My fault, sorry. 😳