Next Previous Contents

2. Building Harvest

2.1 Where can I get bison and flex?

Bison and flex are available at GNU FTP Site and its mirrors.

2.2 How can I install Harvest in "/my/directory/harvest" instead of "/usr/local/harvest"?

Do

        # ./configure --prefix=/my/directory/harvest
        # make
        # make install

2.3 How can I avoid "syntax error before `regoff_t'" error message when compiling Harvest?

On some systems, building Harvest may fail with following message:

        Making all in util
        gcc  -I../include -I./../include -c buffer.c
        In file included from ../include/config.h:350,
                         from ../include/util.h:112,
                         from buffer.c:86:
        /usr/include/regex.h:46: syntax error before `regoff_t'
        /usr/include/regex.h:46: warning: data definition has no type or storage class
        /usr/include/regex.h:56: syntax error before `regoff_t'
        *** Error code 1

If you get this error, edit src/common/include/autoconf.h and add "#define USE_GNU_REGEX 1" before typing make to build Harvest.

2.4 Where can I get more information for building Harvest on FreeBSD?

See FreshPorts Harvest page http://www.freshports.org/www/harvest/ for more informations about building Harvest on FreeBSD.


Next Previous Contents