2

I am trying to install and run collectd on Solaris 10 x86. I downloaded the Solaris x86 version of the installer. Installed using pkd_add command and chose the default folders.

Now I am trying to run the daemon, but it doesn't seem to work. Here is the problem / error:

bash-3.00# sbin/collectd
bash: sbin/collectd: cannot execute binary file
Kevdog777
  • 3,224

1 Answers1

2

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