Unix Stuff

cfengine 2 on HP-UX

At least when I wrote this, it was difficult to get cfengine2 to build on HP-UX 11i.

Building cfengine 2 on HP-UX:


#
# Cfengine on HP-UX uses components of the perl build in /opt/perl-5.8/local.
#

# Set your environment up thus:
export CC=/opt/ansic/bin/cc
export CXX=/opt/aCC/bin/aCC
export CFLAGS="+DD64 +Z -I/opt/perl-5.8/local/include -I/opt/cfengine/include"
export CXXFLAGS=$CFLAGS
export LDFLAGS="-L/opt/perl-5.8/local/lib -L/opt/cfengine/lib"
export PATH=/opt/ansic/bin:/usr/ccs/bin:/opt/perl-5.8/local/bin:/opt/perl-5.8/bin:/usr/bin:/usr/local/bin:/bin:/sbin
export PERL=/opt/perl-5.8/bin/perl
export MAKE=/usr/local/bin/gmake
alias make=/usr/local/bin/gmake

## PCRE 5.0
./configure --prefix=/opt/cfengine

## cfengine 2.x
./configure --prefix=/opt/cfengine \
            --enable-DCE \
            --with-openssl=/opt/perl-5.8/local \
            --with-berkeleydb=/opt/perl-5.8/local \
            --with-pcre=/opt/cfengine