tar -zxf $(LIBDBI).tar.gz
tar -zxf $(LIBDBI_DRIVERS).tar.gz
cd $(LIBDBI) && ./configure --disable-docs && make all install
- cd $(LIBDBI_DRIVERS) && ./configure \
- --disable-docs --with-pgsql --enable-libdbi && make all install
+ cd $(LIBDBI_DRIVERS) && ./configure --disable-docs --enable-libdbi \
+ --with-pgsql --with-pgsql-incdir=$$(pg_config --includedir) \
+ --with-pgsql-libdir=$$(pg_config --libdir) && make all install
# NOTE: Deprecate me with wheezy
install_nodejs_from_source:
# actions required by all debian-based OSs
APT_TOOL=apt-get -yq
+RELEASE_CODENAME=$(shell lsb_release -cs)
install_debs:
$(APT_TOOL) install $(DEBS)
# refresh the dynamic library cache
ldconfig
+# Adding this for installing versions from PostgreSQL community apt source
+debian_postgresql_repo:
+ if test -z "$$(grep -R apt.postgresql.org /etc/apt/)" ; then \
+ echo "deb http://apt.postgresql.org/pub/repos/apt/ $(RELEASE_CODENAME)-pgdg main" \
+ > /etc/apt/sources.list.d/pgdg.list; \
+ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - ; \
+ $(APT_TOOL) update ; \
+ fi
+
clean:
echo "cleaning"
libuniversal-require-perl\
libunix-syslog-perl\
libyaz-dev\
- postgresql-client-9.1\
+ postgresql-client-9.4\
libsoap-lite-perl\
libbz2-dev\
libparse-recdescent-perl\
Business::Stripe \
Class::DBI::Frozen::301
-PGSQL_SERVER_DEBS_91 = \
- $(DEB_PGSQL_COMMON_MODS) \
- postgresql-9.1 \
- postgresql-contrib-9.1 \
- postgresql-plperl-9.1 \
- postgresql-server-dev-9.1
+PGSQL_APT_REPO_DEBS = \
+ wget \
+ ca-certificates
+
+PGSQL_SERVER_DEBS_94 = \
+ $(DEB_PGSQL_COMMON_MODS) \
+ postgresql-9.4 \
+ postgresql-contrib-9.4 \
+ postgresql-plperl-9.4 \
+ postgresql-server-dev-9.4
# note: some prereqs are repeated in the developer/packager
# sections to support building Evergreen packages on servers
bzr
all:
+ make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
+ make -f $(DIR)/Makefile.debian debian_postgresql_repo
make -f $(DIR)/Makefile.debian install_debs
make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
make -f $(DIR)/Makefile.common install_cpan
make -f $(DIR)/Makefile.debian debian_sys_config
install_postgres_server:
- make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_91)"
+ make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_94)"
install_developer:
make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
libuniversal-require-perl\
libunix-syslog-perl\
libyaz-dev\
- postgresql-client-9.3\
+ postgresql-client-9.4\
libsoap-lite-perl\
libtest-warn-perl\
libparse-recdescent-perl\
Business::Stripe \
Class::DBI::Frozen::301
-PGSQL_SERVER_DEBS_93 = \
+PGSQL_APT_REPO_DEBS = \
+ wget \
+ ca-certificates
+
+PGSQL_SERVER_DEBS_94 = \
$(DEB_PGSQL_COMMON_MODS) \
- postgresql-9.3 \
- postgresql-contrib-9.3 \
- postgresql-plperl-9.3 \
- postgresql-server-dev-9.3
+ postgresql-9.4 \
+ postgresql-contrib-9.4 \
+ postgresql-plperl-9.4 \
+ postgresql-server-dev-9.4
# note: some prereqs are repeated in the developer/packager
# sections to support building Evergreen packages on servers
bzr
all:
+ make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_APT_REPO_DEBS)"
+ make -f $(DIR)/Makefile.debian debian_postgresql_repo
make -f $(DIR)/Makefile.debian install_debs
make -f $(DIR)/Makefile.debian test_for_libdbi_pkg
make -f $(DIR)/Makefile.common install_cpan
make -f $(DIR)/Makefile.debian debian_sys_config
install_postgres_server:
- make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_93)"
+ make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_94)"
# note: if/when grunt-cli and bower are available as
# packages, use the packaged versions instead.
Installing prerequisites
------------------------
- * **PostgreSQL**: The minimum supported version is 9.3.
+ * **PostgreSQL**: Version 9.4 is recommended.
+ The minimum supported version is 9.3.
* **Linux**: Evergreen 2.8 has been tested on Debian Jessie (8.0),
Debian Wheezy (7.0), Ubuntu Xenial Xerus (16.04),
and Ubuntu Trusty Tahr (14.04).
1. Begin by installing the most recent version of OpenSRF (2.5.0 or later).
You can download OpenSRF releases from http://evergreen-ils.org/opensrf-downloads/
-2. On some distributions, it is necessary to install PostgreSQL 9.1+ from external
+2. On some distributions, it is necessary to install PostgreSQL 9.4+ from external
repositories.
+
- * Debian (Wheezy and Jessie) and Ubuntu (Trusty and Xenial) comes with
- PostgreSQL 9.1+, so no additional steps are required.
+ * Debian (Wheezy) and Ubuntu (Trusty) comes with older versions of
+ PostgreSQL, so steps are taken to automatically utilize the
+ PostgreSQL community's apt sources.
+ (For complete details, see: https://wiki.postgresql.org/wiki/Apt)
+ * Debian (Jessie) and Ubuntu (Xenial) comes with PostgreSQL 9.4+,
+ so no additional steps are required.
+
-3. On Debian and Ubuntu, run `aptitude update` as the *root* Linux account to
- retrieve the new packages from the backports repository.
-4. Issue the following commands as the *root* Linux account to install
+3. Issue the following commands as the *root* Linux account to install
prerequisites using the `Makefile.install` prerequisite installer,
substituting `debian-jessie`, `debian-wheezy`,
`ubuntu-xenial`, or `ubuntu-trusty` for <osname> below:
make -f Open-ILS/src/extras/Makefile.install <osname>
------------------------------------------------------------------------------
+
-5. Add the libdbi-libdbd libraries to the system dynamic library path by
+4. Add the libdbi-libdbd libraries to the system dynamic library path by
issuing the following commands as the *root* Linux account:
+
[NOTE]
ldconfig
------------------------------------------------------------------------------
-6. OPTIONAL: Developer additions
+5. OPTIONAL: Developer additions
+
To perform certain developer tasks from a Git source code checkout,
additional packages may be required. As the *root* Linux account:
In a production instance of Evergreen, your PostgreSQL server should be
installed on a dedicated server.
-PostgreSQL 9.1 and later
+PostgreSQL 9.4 and later
^^^^^^^^^^^^^^^^^^^^^^^^
To create the database instance on a remote database server running PostgreSQL
-9.1 or later, simply use the `--create-database` flag on `eg_db_config`.
+9.4 or later, simply use the `--create-database` flag on `eg_db_config`.
Starting Evergreen
------------------
Software Prerequisites
~~~~~~~~~~~~~~~~~~~~~~
- * **PostgreSQL**: The minimum supported version is 9.3.
+ * **PostgreSQL**: Version 9.4 is recommended.
+ The minimum supported version is 9.3.
* **Linux**: Evergreen 2.12-beta has been tested on Debian Jessie (8.0),
Debian Wheezy (7.0), Ubuntu Xenial Xerus (16.04), Ubuntu Trusty Tahr (14.04),
and Fedora.