On Wed, Jun 23, 2010 at 01:40:52PM -0500, Douglas Wagner wrote:
> 
> So I build libconfuse on Cygwin on my local XP development box and it gets
> stuck into /usr/local/* (lib, include, etc.).

is it libconfuse 2.7 compiled as an static library and no nls support as
suggested in README.WIN? is this using cygwin 1.5 on 32bit windows or are
you using 1.7?

> Come back around (according to the README.WIN and tell ganglia to compile
> --with-libconfuse=/usr/local and it blows up telling me it can't find
> libconfuse.

config.log would explain why, but hope it is not that you are trying to
build it for 64bit windows.

> Linking everything into /usr/lib doesn't help either.  I've
> seen docs on this but assumed it was supposed to be fixed in 3.1.2.

not sure what you are referring here, but are you trying to build 3.1.7?
noticed the README.WIN documents are not mentioning the need to override
sysconfdir (which is irrelevant for cygwin anyway) and were not completely
updated when the libpcre dependency was added (which also changed name
recently in cygwin) for that release but used to work at least with 3.1.4
from what I remember and therefore probably also for 3.1.2.

the following seemed to work for me on an updated windows vista laptop I
had access with and with the latest cygwin (mostly using instructions
from README.WIN and against the recommendation of sticking with 1.5,
which will therefore require some patching) :

  $ tar -xvzf confuse-2.7.tar.gz
  $ cd confuse-2.7
  $ ./configure --disable-nls
  $ make
  $ make install
  $ cd ..
  $ tar -xvzf ganglia-3.1.7.tar.gz
  $ cd ganglia-3.1.7
  $ find . -type f -name "*.h" -a ! -name "config.h" -exec fgrep -l 
"<rpc/rpc.h>" {} \; | xargs -n1 perl -pi -e "s;#include <rpc/rpc.h>;#include 
<cygwin/in.h>\n#include <rpc/rpc.h>;g"
  $ ./configure GANGLIA_ACK_SYSCONFDIR=1 --with-libconfuse=/usr/local 
--enable-static-build
  $ make
  $ cd ..
  $ mkdir dist
  $ cp -a ganglia-3.1.7/gmond/gmond.exe dist/
  $ cp -a ganglia-3.1.7/gmetric/gmetric.exe dist/
  $ cp -a ganglia-3.1.7/gstat/gstat.exe dist/
  $ cd confuse
  $ make uninstall
  $ cd ..
  $ rm -rf confuse* ganglia*

the binaries in dist will need to be installed in the other nodes probably
including the corresponding cygwin dll that they were built with if cygwin
won't be installed independently (cygwin1.dll, cygapr-1-0.dll, cygexpat-1.dll,
cygpcre-0.dll, and libpython2.6.dll).

the following dependencies were installed as prerequisites on the system 
that was used for building this package (listed with `cygcheck.exe -c -d`) :

  diffutils            2.9-1
  expat                2.0.1-1
  libexpat1            2.0.1-1
  libexpat1-devel      2.0.1-1
  gcc                  3.4.4-999
  gcc-core             3.4.4-999
  gcc-g++              3.4.4-999
  gcc-mingw-core       20050522-1
  gcc-mingw-g++        20050522-1
  libgcc1              4.3.4-3
  libapr1              1.4.2-1
  libapr1-devel        1.4.2-1
  make                 3.81-2
  libpcre-devel        8.02-1
  libpcre0             8.02-1
  python               2.6.5-2
  sharutils            4.8-1
  sunrpc               4.0-3

Carlo

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to