{"id":2591,"date":"2017-08-11T21:02:01","date_gmt":"2017-08-11T13:02:01","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=2591"},"modified":"2017-08-11T21:02:01","modified_gmt":"2017-08-11T13:02:01","slug":"%e8%a7%a3%e5%86%b3centos%e7%bc%96%e8%af%91-configure%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/jishu\/%e8%a7%a3%e5%86%b3centos%e7%bc%96%e8%af%91-configure%e9%97%ae%e9%a2%98\/","title":{"rendered":"\u89e3\u51b3centos\u7f16\u8bd1.\/configure\u95ee\u9898"},"content":{"rendered":"<p>\u6211\u7684\u95ee\u9898\u662f\u8fd9\u6837\u7684\uff1a\u5728\u5b89\u88c5nagios\uff0c\u7f16\u8bd1nrpe\u548cnagios-plugin\u65f6\u90fd\u51fa\u73b0\u4e0b\u9762\u7684\u9519\u8bef<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost nagios-plugins-2.1.2]# .\/configure<br \/>\nchecking for a BSD-compatible install&#8230; \/usr\/bin\/install -c<br \/>\nchecking whether build environment is sane&#8230; yes<br \/>\nchecking for a thread-safe mkdir -p&#8230; \/bin\/mkdir -p<br \/>\nchecking for gawk&#8230; gawk<br \/>\nchecking whether make sets $(MAKE)&#8230; yes<br \/>\nchecking whether to disable maintainer-specific portions of Makefiles&#8230; yes<br \/>\nchecking build system type&#8230; x86_64-unknown-linux-gnu<br \/>\nchecking host system type&#8230; x86_64-unknown-linux-gnu<br \/>\nchecking for gcc&#8230; gcc<br \/>\nchecking for C compiler default output file name&#8230;<br \/>\n<strong>configure: error: in\u00a0\/root\/nagios-plugins-2.1.2&#8242;:<br \/>\nconfigure: error: C compiler cannot create executables<\/strong><br \/>\nSeeconfig.log&#8217; for more details.<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost nrpe-2.12]# .\/configure<br \/>\nchecking for a BSD-compatible install&#8230; \/usr\/bin\/install -c<br \/>\nchecking build system type&#8230; x86_64-unknown-linux-gnu<br \/>\nchecking host system type&#8230; x86_64-unknown-linux-gnu<br \/>\nchecking for gcc&#8230; gcc<br \/>\n<strong>checking for C compiler default output file name&#8230; configure: error: C compiler cannot create executables<\/strong><br \/>\nSee `config.log&#8217; for more details.<\/p>\n<p>&nbsp;<\/p>\n<p>\u65e5\u5fd7\u6700\u540e\u63d0\u793a\uff1a\u00a0configure: exit 77<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u7136\u540e\u67e5\u770b\u5f88\u591a\u8d44\u6599<\/strong><\/p>\n<p><strong>\u6709\u7684\u8bf4\u7f3a\u5931\u8fd9\u4e2a\u5305libc6-dev \uff0c\u4f46\u662fyum\u6839\u672c\u5c31\u5b89\u88c5\u4e0d\u4e86<\/strong><\/p>\n<p><strong>gcc\u6211\u4e5f\u5378\u8f7d\u4e86\uff0c\u7136\u540e\u7528yum\u91cd\u88c5\u4e86\u8fd8\u662f\u4e0d\u884c\uff0c\uff0c\u7136\u540e\u6211\u53c8\u4e0b\u8f7d\u4e86gcc\u5b89\u88c5\u5305\u624b\u52a8\u5b89\u88c5\uff0c\u4f46\u662f\u5230\u7f16\u8bd1\u7684\u90e8\u5206\u8fd8\u662f\u63d0\u793a\u7c7b\u4f3c\u4e0a\u9762\u7684\u9519\u8bef\u3002<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\u6211\u5c31\u641c\u7d22yum \u5b89\u88c5\u00a0libc6-dev\uff0c\u7ec8\u4e8e\u627e\u5230\u4e86\u7b54\u6848<\/p>\n<p>https:\/\/superuser.com\/questions\/491504\/how-do-i-install-package-libc6-dev-i386-on-fedora<\/p>\n<p><strong>\u00a0yum install\u00a0glibc-devel \u95ee\u9898\u89e3\u51b3\u4e86\uff01<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7684\u95ee\u9898\u662f\u8fd9\u6837\u7684\uff1a\u5728\u5b89\u88c5nagios\uff0c\u7f16\u8bd1nrpe\u548cnagios-plugin\u65f6\u90fd\u51fa\u73b0\u4e0b\u9762\u7684\u9519\u8bef &nbsp; &#8230; <a title=\"\u89e3\u51b3centos\u7f16\u8bd1.\/configure\u95ee\u9898\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/jishu\/%e8%a7%a3%e5%86%b3centos%e7%bc%96%e8%af%91-configure%e9%97%ae%e9%a2%98\/\" aria-label=\"\u9605\u8bfb \u89e3\u51b3centos\u7f16\u8bd1.\/configure\u95ee\u9898\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49,5],"tags":[760],"class_list":["post-2591","post","type-post","status-publish","format-standard","hentry","category-linux","category-jishu","tag-centosconfigure"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=2591"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2591\/revisions"}],"predecessor-version":[{"id":2592,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/2591\/revisions\/2592"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=2591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=2591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=2591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}