Error installing nagios-plugins-1.4.15

Source: Internet
Author: User

Unzip and go to tar zvxf nagios-plugins-1.4.15.tar.gz && CD nagios-plugins-1.4.15

Compiling the installation

./configure--with-nagios-user=nagios--with-nagios-group=nagios

Make

# # encounters an error

# # Show
# # # in file included from localcharset.c:26:0:
# # # /stdio.h:456:1: Error: ' gets ' is not declared (not inside the function)
# # # _gl_warn_on_use (gets, "gets is a security hole-use fgets instead");
###  ^
# # Make[4]: * * * [LOCALCHARSET.O] Error 1
# # # Make[4]: Leave directory "/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL"
# # Make[3]: * * * [all-recursive] Error 1
# # # Make[3]: Leave directory "/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL"
# # Make[2]: * * * [ALL] Error 2
# # # Make[2]: Leave directory "/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL"
# # Make[1]: * * * [all-recursive] Error 1
# # # Make[1]: Leave directory "/nagios/nagios-plugins-1.4.15"
# # # Make: * * * [ALL] Error 2

# # # Solution

# # CD/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL

# # # Sed-i-E '/gets is a security/d './stdio.in.h

# # # then re-make

Error installing nagios-plugins-1.4.15

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.