[Xymon] How to compile client
Ricardo A. Schütz
ricardo at lxti.com.br
Thu Aug 22 16:17:56 CEST 2013
Ok. After some research, here's what I did to compile the client on a Gentoo machine.
- Compiled the server
- rm Makefile
- vi Makefile
PCREINCDIR = -I/usr/lib64
- vi xymond/Makefile
../client/xymond_client: $(CLIENTOBJS) ../lib/libxymonclient.a
$(CC) -o $@ $(RPATHOPT) $(CLIENTOBJS) ../lib/loadhosts.o ../lib/matching.o ../lib/timing.o ../lib/locator.o ../lib/libxymonclientcomm.a ../lib/libxymonclient.a -lpcre $(PCRELIBS) $(NETLIBS) $(LIBRTDEF)
- vi client/Makefile
- And finally make
- make install
Then I just needed to change the main client task in clientlaunch.cfg and remove the --local option.
Hope this can help someone.
Ricardo Alberto Schütz
LXTI - www.lxti.com.br
Telefone: +55 (47) 3385-4345
Celular: +55 (47) 8802-3881
----- Mensagem original -----
De: "Henrik Størner" <henrik at hswn.dk>
Para: xymon at xymon.com
Enviadas: Quarta-feira, 21 de Agosto de 2013 17:20:45
Assunto: Re: [Xymon] How to compile client
On 20-08-2013 20:57, Ricardo A. Schütz wrote:
> I need help compiling the client.
> I have compiled the server and it's working fine. Now I need to compile the client but it doesn't compile. The first error (which I can't remember) I have corrected compiling the server before the client.
> Now I get the following error:
> make: Entering directory `/usr/src/xymon-4.3.12/xymond'
> make: *** No rule to make target `../lib/xymonclient.a', needed by `../client/xymond_client'. Stop.
> make: Leaving directory `/usr/src/xymon-4.3.12/xymond'
> make: *** [xymond-client] Error 2
Seems there is a problem with the Makefile's when trying to build the
client in the non-default "client-side" configuration.
I don't have a quick fix for it, but I would also recommend using the
Xymon mailing list
Xymon at xymon.com
More information about the Xymon