Installation/OS Specific Notes/Installing Amanda on Solaris: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(update peter's text with some more hints)
Line 15: Line 15:


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


For latest (2.5.3alpha, while writing this) builds, requiring glib, <tt>/usr/bin/pkg-config</tt> might not give you valid results on Solaris 10 (and earlier releases where gnome is installed). You will get errors while running <tt>./configure</tt>, which tries to get glib config from <tt>/usr/bin/pkg-config</tt>.  
To build with gcc, you'll need to install at least <tt>pkg-config</tt>, <tt>gettext</tt> and <tt>glib2</tt>.  You could download them manually and install them into e.g. <tt>--prefix=/usr/local</tt> (for source packages search at freshmeat.net), or use http://blastwave.com or http://sunfreeware.com.  


One of the (many) possible workarounds is to install latest <tt>pkg-config, gettext</tt> and <tt>glib</tt> into e.g. <tt>--prefix=/usr/local</tt> (for source packages search at freshmeat.net). Then set e.g. <tt>/usr/local/bin</tt> as first entry into your <tt>PATH</tt> environment variable. Another good hint would be to set <tt>CFLAGS</tt> and <tt>LDFLAGS</tt> appropriately on the commandline while doing <tt>./configure</tt>. e.g.:
Then call <tt>./configure</tt> with an explicit path for pkg-config:
./configure PKG_CONFIG=/opt/csw/bin/pkg-config --with-...
Alternately, set e.g. <tt>/usr/local/bin</tt> as the first entry in your <tt>PATH</tt> environment variable.  


<tt>CFLAGS="-I/usr/local/include -I/usr/local/include/glib-2.0" LDFLAGS="-R/usr/local/lib -L/usr/local/lib" ./configure</tt>
If that doesn't work, you can set <tt>CFLAGS</tt> and <tt>LDFLAGS</tt> appropriately on the commandline while doing <tt>./configure</tt>. 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 ==
== Solaris 9 ==

Revision as of 22:07, 3 October 2007

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 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.

To build with gcc, you'll need to install at least pkg-config, gettext and glib2. You could download them manually and install them into e.g. --prefix=/usr/local (for source packages search at freshmeat.net), or use http://blastwave.com or http://sunfreeware.com.

Then call ./configure with an explicit path for pkg-config:

./configure PKG_CONFIG=/opt/csw/bin/pkg-config --with-...

Alternately, set e.g. /usr/local/bin as the first entry in your PATH environment variable.

If that doesn't work, you can set CFLAGS and LDFLAGS appropriately on the commandline while doing ./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.