User Tools

Site Tools


building_and_installing_evergreen

This is an old revision of the document!


User Comments

Building and installing Evergreen

These instructions assume that you are starting at the top subdirectory of an extracted Evergreen release (Evergreen downloads) or at the top of the ILS SVN tree: (Evergreen SVN instructions)

make config

Just running make will run make config by default if no install.conf is found (there should only be an install.conf.default)

For a single host install, choose the following release targets in the make config part of the make process for the respective release:

  • For Evergreen 1.2.x and later, use the following build targets in the config part of the make process:
    openils_all
    evergreen_core
  • Prior to Evergreen 1.2.x, use the following build targets in the config part of the make process:
    opensrf_all
    openils_all
    evergreen_core

The XUL staff client needs to be built after everything else is already up and running. See building_the_staff_client.

Note: It is highly recommended that you use a non-standard prefix for the install (e.g. don't use /usr) because that type of full system integration is completely untested and there may be some not so nice behavior…

If PREFIX is in a non-standard location (the default is /openils/, which is non-standard), then you'll want to do the following:
add PREFIX/bin to path
add PREFIX/lib to LD_LIBRARY_PATH (or /etc/ld.so.conf and run ldconfig)
add PREFIX/lib/perl5 to PERL5LIB

Debian make config Notes

When running make config on Debian here are some of the debian specific paths.

Apache2 apxs binary [/usr/bin/apxs2]
Apache2 headers directory [/usr/include/apache2/]
Apache2 APR headers directory [/usr/include/apr-0/]

or if you have APR 1.2.7 (Debian Testing)

Apache2 APR headers directory [/usr/include/apr-1/]

make

Once you have configured your build, issuing the make command will build the targets you requested:

$ make

If you are compiling on a 32bit machine and run into errors such as:

/usr/include/apr-1.0/apr.h:270: error:
     expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘apr_off_t’

… then add this to your make command:

$ CFLAGS=-D_LARGEFILE64_SOURCE make 

make install

If Postgres is installed in a non-standard location you will need to add its bin directory to your PATH

$ export PATH="$PATH:/opt/postgres/bin/"

To install Evergreen, issue the following command:

$ make install

The command will copy over the files to the directories specified in the config process. If your distribution has mangled its Apache configuration files, the install may fail because it cannot find apache2.conf. You can probably simply create a symbolic link from httpd.conf to apache2.conf'' to satisfy the installer.

building_and_installing_evergreen.1183437372.txt.gz · Last modified: 2022/02/10 13:33 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.