11## Description:
22
3- ` pg ` is a wrapper for the PostgreSQL client library. It provides access
4- to a PostgreSQL DB server.
3+ ` pg ` is a wrapper for the PostgreSQL client library. It provides access to a PostgreSQL
4+ database server.
55
6- Before you can use this module, you must first have PostgreSQL installed on
7- your system. To do this, find your OS and perform the actions listed.
6+ Before you can use this module, you must first have PostgreSQL installed on your system.
7+ To do this, find your OS and perform the actions listed.
88
9- ** NOTE** : These instructions are meant only as a convenience. If your OS is not
10- listed or you need extra help, [ go here] ( https://www.postgresql.org/download/ ) .
9+ ** NOTE** : These instructions are meant only as a convenience. If your OS is not listed
10+ or you need extra help, [ go here] ( https://www.postgresql.org/download/ ) .
1111
1212### Fedora 31
1313```
@@ -16,7 +16,7 @@ sudo systemctl enable postgresql # to autostart on startup
1616sudo systemctl start postgresql
1717```
1818
19- ### Debian 10/11
19+ ### Ubuntu/Debian
2020```
2121sudo apt-get install postgresql postgresql-client
2222sudo systemctl enable postgresql # to autostart on startup
@@ -28,3 +28,25 @@ sudo systemctl start postgresql
2828brew install postgresql
2929brew services start postgresql
3030```
31+
32+ ### MacOSX (MacPorts)
33+ ```
34+ gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config
35+ ```
36+
37+ ## Installing libpq-dev or its equivalent for your OS: ##
38+
39+ ** Ubuntu/Debian** : ` sudo apt-get install libpq-dev `
40+
41+ ** Red Hat Linux (RHEL)** : ` yum install postgresql-devel `
42+
43+ ** OpenSuse** : ` zypper in postgresql-devel `
44+
45+ ** ArchLinux** : ` pacman -S postgresql-libs `
46+
47+ ##Getting Started with [ PostgreSQL] ( https://www.postgresqltutorial.com/postgresql-getting-started )
48+
49+ Read this section to learn how to install and connect to PostgreSQL
50+ * [ Windows] ( https://www.postgresqltutorial.com/install-postgresql ) * ;
51+ * [ Linux] ( https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql-linux ) * ;
52+ * [ macOS] ( https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql-macos ) * .
0 commit comments