CompilingOnSolaris - boxbackup/boxbackup GitHub Wiki
Compiling on Solaris
Unless otherwise stated, these instructions have only been tested on Solaris 10 (SPARC and x86). If anyone has instructions for earlier/later versions of Solaris or can confirm these instructions work for other versions, please update this page.
You will need extra packages to compile Box Backup. The easiest way to install these is from Blastwave, using pkg-get
. You may also use Sun Freeware, but these instructions apply to Blastwave.
Once you have installed pkg-get
, run the following commands:
# pkg-get install autoconf
# pkg-get install automake
# pkg-get install bdb4
# pkg-get install openssl
(The m4
package is automatically installed as a dependency of autoconf.)
Next, make sure that /opt/csw/bin and /usr/ccs/bin are in your PATH:
bash-3.00$ echo $PATH
/usr/bin:/usr/sbin:/usr/sfw/bin
bash-3.00$ PATH=$PATH:/opt/csw/bin:/usr/ccs/bin
bash-3.00$ export PATH
bash-3.00$
The build process is as follows:
bash-3.00$ ./bootstrap
bash-3.00$ ./configure --with-ssl-headers=/opt/csw/include/openssl --with-ssl-lib=/opt/csw/lib \
--with-bdb-headers=/opt/csw/bdb4/include --with-bdb-lib=/opt/csw/bdb4/lib \
LDFLAGS="-R /opt/csw/lib:/opt/csw/bdb4/lib"
bash-3.00$ make
The version of OpenSSL that ships with Solaris 10 is broken, so you need to use the above configure
flags to make sure it looks at the Blastwave version. The Berkeley DB flags are also included for completeness.
SMF integration
Some SMF manifests and methods are here. They assume they will be located in /opt/boxbackup and the executables in /opt/boxbackup/bin -- eventually they should be installed (and paths changed by autoconf) in the build process.