mla/pg_sample

Add installation instructions

Opened this issue ยท 4 comments

How do I install this?

For others coming along to this, quick and terrible instructions.

  1. Clone this repo
  2. Make sure you have the dependencies installed for your system. I had to install the following (Ubuntu 20.04)

perl -MCPAN -e 'install DBD'
sudo apt-get install libdbd-pg-perl

  1. Run ./pg_sample

You can add this to your path like any other application. Best of luck

On Mac:

brew install perl

# Don't know if I needed this or not
perl -MCPAN -e 'install DBD'

# really slow and asks for input (y/n) halfway through
perl -MCPAN -e 'install Bundle::DBD::Pg'
mla commented

And that did work for you @lustickd ?

I use plenv rather than brew. You might try:

  brew install perl

  brew install cpanminus
  cpanm DBD Bundle::DBD::Pg

cpanm is just usually a lot simpler to use if you have it.

Oh sorry, it did work but I just meant it was slow in my comment, maybe cpanminus is faster.