[Nagiosplug-help] Cross compile nagios?

Andreas Ericsson ae at op5.se
Thu Feb 10 01:00:50 CET 2005


vanny wrote:
> Hi, everyone.
> 
> I want to cross compile Nagios on x86, and then upload its binary to run on
> PowerPC. Is it possible to do so?
> 

Not without a cross-compiler. You'll probably need to compile your own 
gcc (make sure it doesn't install over your current one!) and read the 
docs carefully.

For nagios, run CC="/usr/local/bin/cross-compiling-gcc" ./configure
to make sure it uses that one instead (you might have to disable a few 
checks in ./configure as well, particularly the one checking if gcc can 
produce valid programs). You'll also need to cross-compile all libraries 
used by nagios, or compile nagios statically.

> (I have a small PowerPc-modeled machine without hard disk, but Compact Flash
> . That's why I can't compile Nagios directly on it.)
> 
> 
> 
> thanks
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Help mailing list