Hi,
Nagios 4.0.2
can anyone confirm the parameter "--with-mail=" ist not accepted with ./configure ?
.configure parameter --with-mail not accepted
.configure parameter --with-mail not accepted
Kind Regards
Karl-Heinz
Karl-Heinz
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: .configure parameter --with-mail not accepted
I just tested on my trunk version of 4.0.2 and it works perfectly fine for me. I verified with /bin/nologin, and it seemed to accept it fine. Why do you feel it is failing?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: .configure parameter --with-mail not accepted
thats the reason why
Code: Select all
./configure -–with-mail=/usr/bin/sendmail
configure: error: unrecognized option: -–with-mail=/usr/bin/sendmail
Try `./configure --help' for more information.
Kind Regards
Karl-Heinz
Karl-Heinz
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: .configure parameter --with-mail not accepted
strange... Let's check what config options you presently have. You might also try quoting the file and path to sendmail, but normally that isn't needed.
Code: Select all
./configure --help | grep '/-/-with/-'
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: .configure parameter --with-mail not accepted
Hi.
your grep did not bring any output.
your grep did not bring any output.
Code: Select all
./configure --help
`configure' configures this package to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local/nagios]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/nagios/bin', `/usr/local/nagios/lib' etc. You can specify
an installation prefix other than `/usr/local/nagios' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-statusmap disables compilation of statusmap CGI
--disable-statuswrl disables compilation of statuswrl (VRML) CGI
--enable-nanosleep enables use of nanosleep (instead of sleep) in event
timing
--enable-event-broker enables integration of event broker routines
--enable-cygwin enables building under the CYGWIN environment
--enable-libtap Enable built-in libtap for unit-testing (default:
no).
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-nagios-user=<user>
sets user name to run nagios
--with-nagios-group=<grp>
sets group name to run nagios
--with-command-user=<user>
sets user name for command access
--with-command-group=<grp>
sets group name for command access
--with-mail=<path_to_mail>
sets path to equivalent program to mail
--with-httpd-conf=<path_to_conf>
sets path to Apache conf.d directory
--with-checkresult-dir=<path>
sets path to check results spool directory
--with-temp-dir=<path> sets path to temp directory
--with-init-dir=<path> sets directory to place init script into
--with-lockfile=<path> sets path and file name for lock file
--with-iobroker=<method>
specify the method to use with iobroker: epoll,
poll, or select
--with-gd-lib=DIR sets location of the gd library
--with-gd-inc=DIR sets location of the gd include files
--with-cgiurl=<local-url>
sets URL for cgi programs (do not use a trailing
slash)
--with-htmurl=<local-url>
sets URL for public html
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Kind Regards
Karl-Heinz
Karl-Heinz
Re: .configure parameter --with-mail not accepted
I copy and pasted the configure line and your hyphens are not the same. Was this copied from an email or from a word doc? Rerun the configure, but type in the hyphens by hand:averlon wrote:thats the reason why
Code: Select all
./configure -–with-mail=/usr/bin/sendmail configure: error: unrecognized option: -–with-mail=/usr/bin/sendmail Try `./configure --help' for more information.
Code: Select all
./configure --with-mail=/usr/bin/sendmail
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: .configure parameter --with-mail not accepted
Hi,
I can't believe it.
The whole configure is a longer string with several "--" but this one was somehow corupt.
I usually copy/paste between editor and shell - but never seen such a behaviour.
Thanks for help.
I can't believe it.
The whole configure is a longer string with several "--" but this one was somehow corupt.
I usually copy/paste between editor and shell - but never seen such a behaviour.
Thanks for help.
Kind Regards
Karl-Heinz
Karl-Heinz
Re: .configure parameter --with-mail not accepted
No problem. We are no strangers to oddities. Glad we could help. Enjoy the week!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.