Installing PSQL Using TAR
The tape archive (TAR) format allows you to install PSQL on Linux and OS X. The following topics explain how to install PSQL products using TAR:
If you have any trouble with installation, see the chapter Troubleshooting After Installation.
Installing PSQL Server or Vx Server for Linux - TAR
The name of the PSQL Server installation package follows these conventions.
PSQL-linux-yy.yy-zzz.zzz.x86_64.tar.gz
PSQL-Vx-linux-yy.yy-zzz.zzz.x86_64.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First Time Server Installation on Linux
The 64-bit installation scripts perform the following tasks:
1
2
cd /usr/local
3
For example, if you downloaded the installation package to /home/bholly:
cp /home/bholly/<server_package_name> .
4
tar -zxf <server_package_name>
5
cd psql/etc
6
./preinstall.sh
7
./postinstall.sh
Your installation is complete. For additional information, see Installing PSQL Using TAR.
Upgrade Server Installation on Linux
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux or OS X for more information.
Installing PSQL Server or Vx Server for OS X - TAR
The name of the PSQL Server installation package follows these conventions.
PSQL-macosx-yy.yy-zzz.zzz.x86_64.tar.gz
PSQL-Vx-macosx-yy.yy-zzz.zzz.x86_64.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First Time Server Installation on OS X
The 64-bit installation scripts perform the following tasks:
You must be logged in as a user with administrator rights to use the sudo command.
1
Open a terminal window by entering terminal in a Spotlight search.
2
sudo -i bash -l
3
mkdir /usr/local
4
cd /usr/local
5
For example, if you downloaded the installation package to your Desktop:
tar -zxf /Users/<name>/Desktop/<server_package_name>
6
cd psql/etc
7
./preinstall.sh
8
./postinstall.sh
Your installation is complete. For additional information, see After Installing PSQL on Linux or OS X.
Upgrade Server Installation on OS X
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux or OS X for more information.
Installing PSQL Client for Linux - TAR
The name of the PSQL Client installation package follows these conventions.
PSQL-Client-linux-yy.yy-zzz.zzz.x86_64.tar.gz
PSQL-Client-Access-linux-yy.yy-zzz.zzz.x86_64.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First Time Client Installation on Linux
If you need to provide 32-bit client access for an application, you must install the PSQL Client 64-bit first, and then add PSQL Client Access 32-bit. The installation steps are the same except for the pre- and post-install scripts, as described below.
1
2
cd /usr/local
3
For example, if you downloaded the installation package to /home/bholly:
cp /home/bholly/<client_package_name> .
4
tar -zxf <client_package_name>
The unpacking action creates a directory named psqlclient.
5
cd psql/etc
6
Client 64-bit: ./clientpreinstall.sh
or
Client Access 32-bit: ./clientaccesspreinstall.sh
7
Client 64-bit: ./clientpostinstall.sh
or
Client Access 32-bit: ./clientaccesspostinstall.sh
Your TAR installation is complete. For additional information, see After Installing PSQL on Linux or OS X and Configuring Network Communications for Clients.
Upgrade Client Installation on Linux
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux or OS X for more information.
Installing PSQL Client for OS X - TAR
The name of the PSQL Client installation package follows these conventions.
PSQL-Client-macosx-yy.yy-zzz.zzz.x86_64.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First Time Client Installation on OS X
You must be logged in as a user with administrator rights to use the sudo command.
1
Open a terminal window by entering terminal in a Spotlight search.
2
sudo -i bash -l
3
mkdir /usr/local
4
cd /usr/local
5
For example, if you downloaded the installation package to your Desktop:
tar -zxf /Users/<name>/Desktop/<client_package_name>
The unpacking action creates a directory named psqlclient.
6
cd psql/etc
7
./clientpreinstall.sh
8
./clientpostinstall.sh
Your TAR installation is complete. For additional information, see After Installing PSQL on Linux or OS X and Configuring Network Communications for Clients.
Upgrade Client Installation on OS X
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux or OS X for more information.