Installation/OS Specific Notes/Installing Amanda on Solaris

From wiki.zmanda.com
Jump to navigation Jump to search

General Notes

You may get errors running make: Assure that you use the BSD-version of make, usually /usr/ccs/bin/make. Add /usr/ccs/bin to the path before running configure.

Specific Versions

Solaris 10

The recommended configuration is to compile with the Sun Studio CC.

Sun Studio cc

Assuming Sun Studio is installed in /opt/SUNWspro, add the following to PATH:

PATH="$PATH:/opt/SUNWspro/bin:/usr/ccs/bin"

If /usr/sfw/bin is in you PATH, configure will find and try to use gcc, which won't work well. If this is a problem, remove that directory from PATH, or add CC=/opt/SUNWspro/bin/cc to your ./configure line.

Proceed to ./configure; make; make install as usual.

GNU gcc

For latest (2.5.3alpha, while writing this) builds, requiring glib, /usr/bin/pkg-config might not give you the valid results on Solaris 10 (and earlier releases where gnome is installed). You will get errors while running "./configure", which tries to get glib config from "/usr/bin/pkg-config".

One of the (many) possible workarounds is to install latest pkg-config, gettext and glib into e.g. --prefix=/usr/local (for sources packages search at freshmeat.net). Then set e.g. /usr/local/bin as first entry into your PATH environment variable. Another good hint would be to set CFLAGS and LDFLAGS appropriately on the commandline before doing the "./configure". e.g.:

CFLAGS="-I/usr/local/include -I/usr/local/include/glib-2.0" LDFLAGS="-R/usr/local/lib -L/usr/local/lib" ./configure

Solaris 9

TBD

Solaris 8

TBD

Trusted Solaris

According to Julian Stevens <[email protected]>, the format of inetd on Trusted Solaris 1.2 is a bit different. Just before the user name, you should insert the word `untrusted':

amanda dgram udp wait untrusted amuser /usr/local/libexec/amandad amandad

The patch-system script is *NOT* aware of this detail; you must fix it yourself.

Solaris 2.6

You may have compilation errors on statfs.c if you're running, on a Solaris 2.6 host, a gcc that was not build on a Solaris 2.6 host. This happens because gcc stores fixed copies of some Solaris header files on an internal directory. You must rebuild gcc if you get this kind of trouble. Note, however, that gcc 2.7.2.3 does not support Solaris 2.6, you should upgrade to 2.8.0 or higher, or egcs.

SunOS 4.x

A bug in GNU-tar 1.12 causes it to miscalculate (in fact, to misreport) the size of filesystems. A patch for GNU-tar is available in the patches directory.