version 1.3, 2013/10/25 17:37:20
|
version 1.4, 2016/07/04 05:35:17
|
Line 9 Installing a PostgreSQL Server under Net
|
Line 9 Installing a PostgreSQL Server under Net
|
|
|
Setting PKG_PATH enables us to easily download and install packages and it's dependencies. |
Setting PKG_PATH enables us to easily download and install packages and it's dependencies. |
|
|
# export PKG_PATH=ftp://ftp4.de.netbsd.org/pub/NetBSD/packages/3.0/i386/All |
# export PKG_PATH=https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All/ |
|
|
|
|
or if you are using csh: |
or if you are using csh: |
|
|
# setenv PKG_PATH ftp://ftp4.de.netbsd.org/pub/NetBSD/packages/3.0/i386/All |
# setenv PKG_PATH https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All/ |
|
|
|
|
You should keep this in your .profile, .bash_profile, if you mainly using binaries. |
You should keep this in your .profile, .bash_profile, if you mainly using binaries. |
|
|
# Installing the PostgreSQL Server |
# Installing the PostgreSQL Server |
|
|
# pkg_add -v postgresql80-server-8.0.4.tgz |
# pkg_add -v postgresql92-server |
|
|
|
|
This will install the postgresql client and the server and any missing dependency (readline, perl) and will add the user **pgsql** to your user database. |
This will install the postgresql client and the server and any missing dependency (readline, perl) and will add the user **pgsql** to your user database. |
Line 99 Postgres provides a Tool to manage the D
|
Line 99 Postgres provides a Tool to manage the D
|
|
|
# PHP and PostgreSQL |
# PHP and PostgreSQL |
|
|
You may wish to install the postgres Module for PHP |
You may wish to install the postgres Module for PHP, e.g. for PHP 7.0 use: |
|
|
# pkg_add -v php-pgsql-4.4.1.tgz |
# pkg_add -v php70-pgsql |
|
|
|
|
Have fun. |
Have fun. |