[OPEN-ILS-DEV] Evergreen 2.5.2 makefile patch
Paul Hoffman
paul at flo.org
Tue Feb 11 01:28:19 EST 2014
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