Based on your output from file sbin/collectd
, you are attempting to execute a binary for AMD64 (also known as x86_64), which I see the collectd website offers in package form for Solaris 10. This will only work on x86_64, not on i386. I suspect that you have i386 (you can double-check with uname -p
or uname -a
).
Since the collectd folks aren't offering a ready-to-go package for Solaris 10 x86, it seems, the only option would be to compile it from source.
Do you have SUNWspro installed for the Sun cc
compiler? I ran into difficulty trying to compile collectd with gcc on Solaris 10 x86, but Sun's cc
worked like this:
wget http://collectd.org/files/collectd-5.0.3.tar.bz2
gtar xjf collectd-5.0.3.tar.bz2
cd collectd-5.0.3
./configure CC=/path/to/cc CFLAGS="-m64 -mt -D_POSIX_PTHREAD_SEMANTICS"
make && make install
file sbin/collectd
yield? This error typically comes from using a binary made for another platform (SPARC vs x86, Solaris vs Linux, MacOS vs Linux).sbin/collectd: ELF 64-bit LSB executable AMD64 Version 1 [SSE2 SSE FXSR FPU], dynamically linked, not stripped