- Author: Geoff Montee
- Name: tds_fdw
- File: tds_fdw/InstallUbuntu.md
This document will show how to install tds_fdw on Ubuntu 14.04. Other Ubuntu distributions should be similar.
The TDS foreign data wrapper requires a library that implements the DB-Library interface, such as FreeTDS.
sudo apt-get install libsybdb5 freetds-dev freetds-common
If you need to install PostgreSQL, do so by following the apt installation directions. For example, to install PostgreSQL 9.5 on Ubuntu:
sudo bash -c "echo \"deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -c -s)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-9.5 postgresql-client-9.5 postgresql-server-dev-9.5
If you'd like to use one of the release packages, you can download and install them via something like the following:
wget https://github.com/tds-fdw/tds_fdw/archive/v1.0.7.tar.gz
tar -xvzf v1.0.7.tar.gz
cd tds_fdw-1.0.7
make USE_PGXS=1
sudo make USE_PGXS=1 install
If you would rather use the current development version, you can clone and build the git repository via something like the following:
git clone https://github.com/tds-fdw/tds_fdw.git
cd tds_fdw
make USE_PGXS=1
sudo make USE_PGXS=1 install
If this is a fresh installation, then start the server:
sudo /etc/init.d/postgresql start
psql -U postgres
postgres=# CREATE EXTENSION tds_fdw;