mla / pg_sample

PostgreSQL utility for creating a small, sample database from a larger one
289 stars 48 forks source link

Add installation instructions #19

Open Aditya94A opened 4 years ago

Aditya94A commented 4 years ago

How do I install this?

Oatelaus commented 3 years ago

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

lustickd commented 2 years ago

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 2 years ago

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.

lustickd commented 2 years ago

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