<?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>狂人山庄 &#124; Silence,声仔,吴洪声,奶罩 &#187; iconv</title>
	<atom:link href="http://wuhongsheng.com/tag/iconv/feed/" rel="self" type="application/rss+xml" />
	<link>http://wuhongsheng.com</link>
	<description>响应我党号召,全面建设和谐博客,坚持和谐写博的路线不动摇</description>
	<lastBuildDate>Mon, 14 Jun 2010 06:54:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>64bit Leopard下重新编译PHP并且添加iconv模块</title>
		<link>http://wuhongsheng.com/it/2008/04/recompile-php-and-add-iconv-module-under-64bit-mac-os-x-leopard/</link>
		<comments>http://wuhongsheng.com/it/2008/04/recompile-php-and-add-iconv-module-under-64bit-mac-os-x-leopard/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 02:47:17 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[iconv]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=176</guid>
		<description><![CDATA[有关如何在64bit Mac OS X Leopard下面重新编译PHP并添加自己需要模块的文章请参考Leopard 编译 universal php5 重新编译后会出现一个问题：iconv无法编译进去。按照上文的方法，有些机器可以编译，但我的就死活不行。于是只能把iconv单独编译为so，再到php.ini里面添加。 $ cd php-5.2.5/ext/iconv/ $ phpize $ ./configure $ make &#38;&#38; make install 然后编辑php.ini，先修改extension_dir为PHP扩展的路径，比如 ; Directory in which the loadable extensions (modules) reside. extension_dir = &#34;/usr/local/lib/php/extensions/no-debug-non-zts-20060613/&#34; 再把iconv.so添加进去，如 extension=iconv.so 保存后再看一下php -m，iconv已经加载进去了 Sam@Bogon:~$ php -m &#91;PHP Modules&#93; apc ctype curl date dom filter gd hash http iconv json libxml [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>有关如何在64bit Mac OS X Leopard下面重新编译PHP并添加自己需要模块的文章请参考<a href="http://www.nimab.org/2007/12/11/24.html">Leopard 编译 universal php5</a></p>
<p>重新编译后会出现一个问题：iconv无法编译进去。按照上文的方法，有些机器可以编译，但我的就死活不行。于是只能把iconv单独编译为so，再到php.ini里面添加。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> php-5.2.5<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>iconv<span style="color: #000000; font-weight: bold;">/</span>
$ phpize
$ .<span style="color: #000000; font-weight: bold;">/</span>configure
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>然后编辑php.ini，先修改extension_dir为PHP扩展的路径，比如</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">; Directory in which the loadable extensions (modules) reside.</span>
<span style="color: #000099;">extension_dir</span> <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;/usr/local/lib/php/extensions/no-debug-non-zts-20060613/&quot;</span></pre></div></div>

<p>再把iconv.so添加进去，如</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">iconv.so</span></pre></div></div>

<p>保存后再看一下php -m，iconv已经加载进去了</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Sam<span style="color: #000000; font-weight: bold;">@</span>Bogon:~$ php <span style="color: #660033;">-m</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>PHP Modules<span style="color: #7a0874; font-weight: bold;">&#93;</span>
apc
ctype
curl
<span style="color: #c20cb9; font-weight: bold;">date</span>
dom
filter
gd
<span style="color: #7a0874; font-weight: bold;">hash</span>
http
iconv
json
libxml
mbstring
mysql
pcre
PDO
pdo_mysql
pdo_sqlite
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Zend Modules<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Sam<span style="color: #000000; font-weight: bold;">@</span>Bogon:~$</pre></div></div>



<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/it/2008/04/recompile-php-and-add-iconv-module-under-64bit-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.242 seconds -->
