- 论坛徽章:
- 0
|
I am trying to configure nagios under AIX 5.1
I am facing the following
- to find cc or gcc in my export path
- to configure the html and cgi-bin for nagios
any help in this issue?
# cd nagios-1.1
# ls
.cvsignore README config.log install-sh sample-config
Changelog UPGRADING configure make-tarball subst
INSTALLING base configure.in mkpackage subst.in
LEGAL cgi contrib nagios.spec update-version
LICENSE common daemon-init.in p1.pl xdata
Makefile.in confdefs.h functions pkg
OutputTrap.pm config.cache html pkginfo.in
# pwd
/usr/ftp/nagios/nagios-1.1
# ./configure --prefix=/usr/local/nagios
--with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios
--with-nagios-grp=nagios
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
# ksh: --with-cgiurl=/nagios/cgi-bin: not found.
# ksh: --with-nagios-grp=nagios: not found.
#
# find / -name "httpd.conf" -print
/etc/opt/freeware/apache/httpd.conf
# find / -name "cgi-bin" -print
/opt/freeware/apache/share/cgi-bin
/usr/HTTPServer/cgi-bin
/usr/local/nagios/cgi-bin
/usr/local/share/apache/cgi-bin
/usr/lpp/IMNSearch.rte.httpdlite/inst_root/var/docsearch/cgi-bin
/usr/lpp/internet/server_root/cgi-bin
/var/docsearch/cgi-bin
vi httpd.conf
...
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/opt/freeware/apache/share/htdocs"
#
ScriptAlias /cgi-bin/ "/opt/freeware/apache/share/cgi-bin/"
#
# "/opt/freeware/apache/share/cgi-bin" should be changed to whatever your ....
#
<Directory "/opt/freeware/apache/share/cgi-bin">;
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>;
... |
|