﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>P.Linux Laboratory &#187; 编译</title>
	<atom:link href="http://www.penglixun.com/tag/%e7%bc%96%e8%af%91/feed" rel="self" type="application/rss+xml" />
	<link>http://www.penglixun.com</link>
	<description>MySQL DBA &#38; Linux SA</description>
	<lastBuildDate>Sun, 22 Jan 2012 16:34:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>为什么采用源码编译配置服务器</title>
		<link>http://www.penglixun.com/tech/system/why_use_src_conf_server.html</link>
		<comments>http://www.penglixun.com/tech/system/why_use_src_conf_server.html#comments</comments>
		<pubDate>Mon, 18 Jan 2010 05:32:41 +0000</pubDate>
		<dc:creator>P.Linux</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[源码]]></category>
		<category><![CDATA[编译]]></category>

		<guid isPermaLink="false">http://www.penglixun.com/?p=894</guid>
		<description><![CDATA[本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/tech/system/why_use_src_conf_server.html 为什么我喜欢采用源码编译来配置... ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;">本文内容遵从<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">CC版权协议</a>, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明</br>网址: http://www.penglixun.com/tech/system/why_use_src_conf_server.html </p>
<p></span>为什么我喜欢采用源码编译来配置服务器，张宴老师给出了很好的解释：</p>
<p><strong>“</strong> 之所以编译安装，而不采用RPM包安装，有以下几个方面的原因：<br />
1、编译安装的自由度很大，需要哪些功能模块，就编译哪些功能模块，用不到的可以不安装，需要哪些参数，就加上哪些差数，能够节省系统资源，充分发挥性能优势；<br />
2、一些自行开发的模块，或对程序源码作出的修改，必须通过编译安装才能实现；<br />
3、编译安装的程序配置起来很方便；<br />
4、我编译安装都是用SecureCRT等<acronym title="Secure Shell">SSH</acronym>客户端软件连上服务器，直接往里面一次粘贴多行安装语句，然后干别的事，所花的时间也不长。<br />
5、我编译安装软件的每一行步骤和整个流程，都会写入文档，交接起来很方便。<strong> ”</strong></p><h2  class="related_post_title">类似的文章</h2><ul class="related_post"><li>2010年01月18日 -- <a href="http://www.penglixun.com/tech/system/linux_compile_php_error.html" title="Linux下编译PHP的几种错误">Linux下编译PHP的几种错误</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.penglixun.com/tech/system/why_use_src_conf_server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下编译PHP的几种错误</title>
		<link>http://www.penglixun.com/tech/system/linux_compile_php_error.html</link>
		<comments>http://www.penglixun.com/tech/system/linux_compile_php_error.html#comments</comments>
		<pubDate>Mon, 18 Jan 2010 05:03:56 +0000</pubDate>
		<dc:creator>P.Linux</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[编译]]></category>

		<guid isPermaLink="false">http://www.penglixun.com/?p=890</guid>
		<description><![CDATA[本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/tech/system/linux_compile_php_error.html Forcing buildconf buildconf: checking install... ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #888888;">本文内容遵从<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">CC版权协议</a>, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明</br>网址: http://www.penglixun.com/tech/system/linux_compile_php_error.html </p>
<p></span>Forcing buildconf<br />
buildconf: checking installation…<br />
buildconf: autoconf version 2.65 (ok)<br />
buildconf: Your version of autoconf likely contains buggy cache code.<br />
Running vcsclean for you.<br />
To avoid this, install autoconf-2.13.<br />
Can’t figure out your VCS, not cleaning.<br />
rebuilding configure<br />
configure.in:492: warning: AC_CACHE_VAL(have_broken_glibc_fopen_append, …): suspicious cache-id, must contain _cv_ to be cached<br />
autoconf/general.m4:2013: AC_CACHE_VAL is expanded from…<br />
aclocal.m4:1736: PHP_BROKEN_GLIBC_FOPEN_APPEND is expanded from…<br />
ext/mbstring/config.m4:356: warning: AC_CACHE_VAL(cv_php_mbstring_stdarg, …): suspicious cache-id, must contain _cv_ to be cached<br />
autoconf/general.m4:2026: AC_CACHE_CHECK is expanded from…<br />
ext/mbstring/config.m4:205: PHP_MBSTRING_SETUP_MBREGEX is expanded from…<br />
ext/pdo_dblib/config.m4:71: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:2754: PHP_CHECK_PDO_INCLUDES is expanded from…<br />
ext/pdo_firebird/config.m4:48: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_mysql/config.m4:160: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_oci/config.m4:211: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_odbc/config.m4:59: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_pgsql/config.m4:121: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_sqlite/config.m4:31: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/sqlite/config.m4:50: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/standard/config.m4:235: warning: AC_CACHE_VAL(php_can_support_proc_open, …): suspicious cache-id, must contain _cv_ to be cached<span id="more-890"></span><br />
configure.in:1347: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:3585: AC_LIBTOOL_LINKER_OPTION is expanded from…<br />
aclocal.m4:5597: _LT_AC_LANG_C_CONFIG is expanded from…<br />
aclocal.m4:5492: AC_LIBTOOL_LANG_C_CONFIG is expanded from…<br />
aclocal.m4:3109: AC_LIBTOOL_SETUP is expanded from…<br />
aclocal.m4:2967: _AC_PROG_LIBTOOL is expanded from…<br />
aclocal.m4:2947: AC_PROG_LIBTOOL is expanded from…<br />
configure.in:1347: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:3548: AC_LIBTOOL_COMPILER_OPTION is expanded from…<br />
aclocal.m4:8133: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from…<br />
configure.in:1347: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:6549: _LT_AC_LANG_CXX_CONFIG is expanded from…<br />
aclocal.m4:5605: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from…<br />
aclocal.m4:4737: _LT_AC_TAGCONFIG is expanded from…<br />
rebuilding main/php_config.h.in<br />
autoheader: WARNING: Using auxiliary files such as `acconfig.h’, `config.h.bot’<br />
autoheader: WARNING: and `config.h.top’, to define templates for `config.h.in’<br />
autoheader: WARNING: is deprecated and discouraged.<br />
autoheader:<br />
autoheader: WARNING: Using the third argument of `AC_DEFINE’ and<br />
autoheader: WARNING: `AC_DEFINE_UNQUOTED’ allows one to define a template without<br />
autoheader: WARNING: `acconfig.h’:<br />
autoheader:<br />
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,<br />
autoheader:             [Define if a function `main' is needed.])<br />
autoheader:<br />
autoheader: WARNING: More sophisticated templates can also be produced, see the<br />
autoheader: WARNING: documentation.<br />
configure.in:492: warning: AC_CACHE_VAL(have_broken_glibc_fopen_append, …): suspicious cache-id, must contain _cv_ to be cached<br />
autoconf/general.m4:2013: AC_CACHE_VAL is expanded from…<br />
aclocal.m4:1736: PHP_BROKEN_GLIBC_FOPEN_APPEND is expanded from…<br />
ext/mbstring/config.m4:356: warning: AC_CACHE_VAL(cv_php_mbstring_stdarg, …): suspicious cache-id, must contain _cv_ to be cached<br />
autoconf/general.m4:2026: AC_CACHE_CHECK is expanded from…<br />
ext/mbstring/config.m4:205: PHP_MBSTRING_SETUP_MBREGEX is expanded from…<br />
ext/pdo_dblib/config.m4:71: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:2754: PHP_CHECK_PDO_INCLUDES is expanded from…<br />
ext/pdo_firebird/config.m4:48: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_mysql/config.m4:160: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_oci/config.m4:211: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_odbc/config.m4:59: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_pgsql/config.m4:121: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/pdo_sqlite/config.m4:31: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/sqlite/config.m4:50: warning: AC_CACHE_VAL(pdo_inc_path, …): suspicious cache-id, must contain _cv_ to be cached<br />
ext/standard/config.m4:235: warning: AC_CACHE_VAL(php_can_support_proc_open, …): suspicious cache-id, must contain _cv_ to be cached<br />
configure.in:1347: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:3585: AC_LIBTOOL_LINKER_OPTION is expanded from…<br />
aclocal.m4:5597: _LT_AC_LANG_C_CONFIG is expanded from…<br />
aclocal.m4:5492: AC_LIBTOOL_LANG_C_CONFIG is expanded from…<br />
aclocal.m4:3109: AC_LIBTOOL_SETUP is expanded from…<br />
aclocal.m4:2967: _AC_PROG_LIBTOOL is expanded from…<br />
aclocal.m4:2947: AC_PROG_LIBTOOL is expanded from…<br />
configure.in:1347: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:3548: AC_LIBTOOL_COMPILER_OPTION is expanded from…<br />
aclocal.m4:8133: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from…<br />
configure.in:1347: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, …): suspicious cache-id, must contain _cv_ to be cached<br />
aclocal.m4:6549: _LT_AC_LANG_CXX_CONFIG is expanded from…<br />
aclocal.m4:5605: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from…<br />
aclocal.m4:4737: _LT_AC_TAGCONFIG is expanded from…</p>
<p>貌似因为autoconf版本太高。</p>
<p>在debian下执行<br />
aptitude install autoconf2.13<br />
export PHP_AUTOCONF=/usr/bin/autoconf2.13<br />
export PHP_AUTOHEADER=/usr/bin/autoheader2.13<br />
然后再重新autoconf就行了。</p>
<p>64位下编译最好加上在 configure 时加参数 –with-libdir=lib64 指定使用64位库。</p><h2  class="related_post_title">类似的文章</h2><ul class="related_post"><li>2009年07月9日 -- <a href="http://www.penglixun.com/tech/program/add_database_module_for_php.html" title="为PHP添加数据库模块">为PHP添加数据库模块</a> (0)</li><li>2012年01月23日 -- <a href="http://www.penglixun.com/tech/database/case_about_innodb_faster_than_oracle.html" title="一个InnoDB性能超过Oracle的调优Case">一个InnoDB性能超过Oracle的调优Case</a> (1)</li><li>2010年08月27日 -- <a href="http://www.penglixun.com/tech/system/linux_cache_discovery.html" title="Linux Cache 机制探究">Linux Cache 机制探究</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.penglixun.com/tech/system/linux_compile_php_error.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

