Forum: Cfengine Help Subject: Re: Static cf3 binaries on Solaris & Linux Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,17198,17544#msg-17544
I did a shot for Linux based on a howto from Jarle Bjorgeengen and I managed to create a cfengine 3 static binary successfully. Here what I did; BerkeleyDB tar xvfz db-5.0.21.NC.tar.gz && cd db-5.0.21.NC/build_unix ../dist/configure --prefix=/var/cfengine --enable-static --disable-shared make && make install cd ../.. OpenSSL tar xvfz openssl-0.9.8o.tar.gz && cd openssl-0.9.8o ./config --prefix=/var/cfengine no-shared no-dso make && make install cd ../.. PCRE tar xvfz pcre-8.02.tar.gz && cd pcre-8.02 ./configure --enable-static --disable-shared --prefix=/var/cfengine --enable-unicode-properties make && make install cd ../.. Cfengine 3 tar xvfz cfengine-3.0.5.tar.gz && cd cfengine-3.0.5 ./configure --with-openssl=/var/cfengine --with-pcre=/var/cfengine --with-berkeleydb=/var/cfengine --enable-static --disable-shared LDFLAGS='--static' make && make install Verification /usr/local/src/cfengine-3.0.5# ldd src/cf-agent not a dynamic executable /usr/local/src/cfengine-3.0.5# ls -lh src/cf-agent -rwxr-xr-x 1 root root 5.4M 2010-06-18 16:23 src/cf-agent /usr/local/src/cfengine-3.0.5# src/cf-agent -V This comprises cf-agent core community version 3.0.5 - Copyright (C) Cfengine AS 2008- _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine