[OPEN-ILS-DEV] Evergreen 2.5.2 makefile patch
Elliot Voris
evoris at slcconline.edu
Tue Feb 11 11:11:36 EST 2014
I had come across this a little while back while trying to resolve this bug: https://bugs.launchpad.net/evergreen/+bug/1157897
Here's the working repo that I had pushed all the changes to back in December (the same changes that Paul's also made in this thread): http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/ElliotFriend/lp1157897_postgresql_ppa
Thanks for reminding me about this, Paul!
Elliot J. Voris
-----Original Message-----
From: open-ils-dev-bounces at list.georgialibraries.org [mailto:open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of Paul Hoffman
Sent: 11 February, 2014 00:28
To: open-ils-dev at list.georgialibraries.org
Subject: Re: [OPEN-ILS-DEV] Evergreen 2.5.2 makefile patch
On Fri, Feb 07, 2014 at 02:13:57PM +0530, Paul Hoffman wrote:
> I got stuck on a new Evergreen 2.5.2 installation on an Ubuntu 10.04
> server (ubuntu-lucid) and have found what appears to be a bug in
> Open-ILS/src/extras/install/Makefile.ubuntu-lucid. I was following
> the instructions (http://.../README_2_5.html) and hit an error when
> running ./configure as shown in section 4:
>
> # su paul
> $ PATH=/openils/bin:$PATH ./configure --prefix=/openils
> --sysconfdir=/openils/conf [...] checking for dlopen in -ldl... yes
> checking for dbi_initialize in -ldbi... no checking for libdbi pgsql
> driver (dynamic load)... configure: error: in `/usr/local/src/Evergreen-ILS-2.5.2':
> configure: error: "pgsql driver not installed?"
> See `config.log' for more details
>
> After a certain amount of flailing about -- I'll spare you the
> embarrassing details -- I noticed that Makefile.ubuntu-lucid didn't
> actually attempt to build the install_libdbi target in Makefile.common.
> I added it there and continued the install and that seemed to do the
> trick:
Here's a revised patch that also replaces the ubuntu-lucid target for installing the PostgreSQL server. Without this, installing the PostgreSQL server will fail:
# make -f Open-ILS/src/extras/Makefile.install postgres-server-ubuntu-lucid
make[1]: Entering directory `/usr/local/src/Evergreen-ILS-2.5.2'
make[1]: *** No rule to make target `install_postgres_server'. Stop.
make[1]: Leaving directory `/usr/local/src/Evergreen-ILS-2.5.2'
make: *** [postgres-server-ubuntu-lucid] Error 2
------------ >8 ------------ >8 ------------ >8 ------------ >8 ------------
--- /usr/local/src/Evergreen-ILS-2.5.2/Open-ILS/src/extras/install/Makefile.ubuntu-lucid 2014-01-16 16:11:29.000000000 -0500
+++ /usr/local/src/Evergreen-ILS-2.5.2.flo/Open-ILS/src/extras/install/Makefile.ubuntu-lucid 2014-02-11 01:01:30.365418946 -0500
@@ -95,14 +95,15 @@
make -f $(DIR)/Makefile.common install_cpan_force
make -f $(DIR)/Makefile.debian install_js_sm
make -f $(DIR)/Makefile.debian debian_sys_config
+ make -f $(DIR)/Makefile.common install_libdbi
install_yaz:
if [ ! -d $(YAZ) ]; then wget $(YAZ_HOST)/$(YAZ).tar.gz; fi;
tar xzf $(YAZ).tar.gz
cd $(YAZ) && ./configure && make && make install && ldconfig
-install_pgsql_server_debs_91:
- $(APT_TOOL) install $(PGSQL_SERVER_DEBS_91)
+install_postgres_server:
+ make -f $(DIR)/Makefile.debian DEBS="$(PGSQL_SERVER_DEBS_91)"
install_pgsql_client_backport_debs_91:
@if [ `$(APT_TOOL) versions libpq5 | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; \
------------ >8 ------------ >8 ------------ >8 ------------ >8 ------------
--
Paul Hoffman <paul at flo.org>
Systems Librarian
Fenway Libraries Online
c/o Wentworth Institute of Technology
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384 (FLO main number)
More information about the Open-ils-dev
mailing list