[collectd] Installing collectd on Solaris hosts

Florian Forster octo at collectd.org
Sun Jan 9 15:14:30 CET 2011


Hi,

On Sun, Jan 09, 2011 at 09:48:30PM +0800, Jean-Paul Blaquiere wrote:
> I've tried a couple of methods, first, rsync /opt/collectd from the
> build host onto other hosts.

installing into a directory and copying that directory is the way to go
(unless a package is available, of course). It's likely that you need to
copy to the same directory on the target host.

> That gives me a whole heap of libtool errors
>  - lt_dlopen (/opt/collectd/lib/collectd/syslog.so) failed: file not found

Assuming that the file "syslog.so" actually exists at that path (would
have been an interesting information), this very likely means that a
shared library the plugin is linked with wasn't found. You can verify
this by running

  $ ldd /opt/collectd/lib/collectd/syslog.so

and looking for any dependencies not found. If you copy the binaries it
is very important that the *same* libraries exist on the target host and
that they have the same (or a compatible) SONAME version and that they
are found at the same location (or are in the standard search path).

> - etc etc etc

What other errors do you get?

> Method two is to copy the build directory across to a new host, and
> run 'make install.'

That won't do any good. Either you copy the binaries (as described
above) or you build on the target host directly. Copying a dirty build
directory will only cause trouble.

> I think the easiest way is to work out how to make libtool realise
> that there's a bunch of libraries associated with collectd, but I have
> no idea how to make that happen.

I don't understand what you mean by that? The plugins *are* linked with
their dependencies, that's what libtool is for.

> The other question, is, what process is followed for building the
> Solaris packages as listed on the website?  That would be really
> useful information to have publicly available.

See: <http://www.sunfreeware.com/pkgadd.html>

Best regards,
—octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x0C705A15
http://octo.it/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20110109/fc084bcf/attachment.pgp>


More information about the collectd mailing list