My install directory was /opt/ganglia.
Error -
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Solution -
Add gcc bin path to PATH environment variable
Error -
checking for pcre.h... no
checking for pcre_compile in -lpcre... no
libpcre not found, specify --with-libpcre=no to build without PCRE support
Solution -
PCRE is not installed.
# wget ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/pcre-8.10.tar.gz
# /usr/local/bin/tar -xzf pcre-8.10.tar.gz
# cd pcre-8.10
# ./configure --prefix=/opt/ganglia
# make && make install
Make sure you add, -I/opt/ganglia/include to CFLAGS environment variable
and -L/opt/ganglia/lib to LDFLAGS after this.
Problem -
Graphs not shown in ganglia or images not shown on ganglia front end.
Reason -
php-gd may not have been installed.
You can do so by ( as root) -
# yum install php-gd
Another reason could be front-end can't find RRD path. Make sure it is set in conf.phpError -
checking for apr-1-config... no
configure: error: apr-1-config binary not found in path
configure: error: apr-1-config binary not found in path
Reason -
APR is not installed or path of apr-1-config is not available through the PATH environment variable.
Error -
libgcc_s.so.1: open failed: No such file or directory
Solution-
Execute the following:
# ldd gmond
...
libgcc_s.so.1 => (file not found)
...
So gmond can link to libgcc
Add the following to you LDFLAGS
# setenv LDFLAGS $LDFLAGS:-R/yourgccpath/gcc-4.0.3/lib
-R records the runtime search path.
Install again
# ./configure --prefix=/opt/ganglia --sysconfdir=/opt/ganglia/etc
# make && make install
Error -
After installation, while executing gmond
apr_pollset_create failed: Invalid argument
Solution -
In your config file gmond.conf, if there is no udp_recv_channel or tcp_accept_channel
defined, gmond fails to run with this error.
Set "deaf = yes " under "globals"
Error -
/usr/bin/ld: cannot find -lpython2.3
collect2: ld returned 1 exit status
make[4]: *** [modpython.la] Error 1
Solution -
I dont remember exactly how i resolved it.
Most likely it was the linker not being able to find python.
Probably by setting library flags this error was resolved.
Error -
false cru libgetopthelper.a getopt1.o getopt.o getopt_init.o
make[2]: *** [libgetopthelper.a] Error 1
Solution -
Add /usr/ccs/bin to PATH environment variable.
In case of dependency not found errors, you could configure options, like --with-libapr, --with-libconfuse to point to dependency paths.
Error -
Some gm_protocol_xdr.c related warnings and finally build fails with this error
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
Solution -
Uninstall the dependency 'confuse' and install it by setting CFLAGS="-O3 -fPIC"
> cd ../confuse-2.7/
> make uninstall
> make clean
> env CFLAGS="-O3 -fPIC" ./configure --prefix=/opt/ganglia
> make && make install
Do a configure, make and make install and you should be good.