<?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>船长日志 &#187; leopard</title>
	<atom:link href="http://www.cslog.cn/tag/leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cslog.cn</link>
	<description>最让我激动的是不知道下一个星球上能发现什么...</description>
	<lastBuildDate>Wed, 30 Jul 2025 16:06:05 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>[BUG] cross-thread violation on rb_gc()</title>
		<link>http://www.cslog.cn/Content/BUG-cross-thread-violation-on-rb_gc-ruby-leopard/</link>
		<comments>http://www.cslog.cn/Content/BUG-cross-thread-violation-on-rb_gc-ruby-leopard/#comments</comments>
		<pubDate>Wed, 13 May 2009 18:08:11 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[今天在mac os x leopard上安装typo时遇到 [BUG] cros &#8230; <a href="http://www.cslog.cn/Content/BUG-cross-thread-violation-on-rb_gc-ruby-leopard/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>今天在mac os x leopard上安装typo时遇到<br />
[BUG] cross-thread violation on rb_gc()<br />
错误.<br />
google了一下, 发下有可能是因为系统上安装了多个版本的ruby 引起的. 我的mac上的确有多个ruby: 一个是leopard原带的, 另一个是自己用macport安装的. 但是系统原带的ruby1.8.6已经在清理硬盘空间时给删除了, 文件快捷链接也都换了, 使用ruby -v也显示是1.8.7版的信息. <br />
全系统搜索了一下, 竟然发现系统上还有个<br />
/System/Library/Frameworks/Ruby.framework/Versions/Current/usr<br />
里面带有ruby文件.<br />
将它去除, 改成一个文件快捷链接到自己安装的那个ruby文件那里, 问题解决了.
<div style="margin-top: 15px; font-style: italic">
<p>转载请注明: 转自<a href="http://www.cslog.cn/">船长日志</a>, 本文链接地址: <a href="http://www.cslog.cn/Content/BUG-cross-thread-violation-on-rb_gc-ruby-leopard/">http://www.cslog.cn/Content/BUG-cross-thread-violation-on-rb_gc-ruby-leopard/</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cslog.cn/Content/BUG-cross-thread-violation-on-rb_gc-ruby-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在leopard上安装php</title>
		<link>http://www.cslog.cn/Content/leopard-php/</link>
		<comments>http://www.cslog.cn/Content/leopard-php/#comments</comments>
		<pubDate>Tue, 05 May 2009 23:46:22 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[信息处理]]></category>
		<category><![CDATA[站长文档]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[怎样在苹果leopard上安装php语言环境? 其实不用安装. 因为leopar &#8230; <a href="http://www.cslog.cn/Content/leopard-php/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>怎样在苹果leopard上安装php语言环境? 其实不用安装. 因为leopard已经默认安装了php5. 但默认设置下apache没有装载php组件, 所在不能使用. 要使用php时, 要先将它启动, 方法如下:<br />
1.打开 /etc/apache2/httpd.conf 文件<br />
2.找到<br />
<typo:code><br />
#LoadModule php5_module libexec/apache2/libphp5.so<br />
</typo:code><br />
将前面的注解符#去除, 变成<br />
<typo:code><br />
LoadModule php5_module libexec/apache2/libphp5.so<br />
</typo:code><br />
保存文件<br />
3.重启apache<br />
<typo:code><br />
sudo apachectl restart<br />
</typo:code><br />
现在可以在leopard上使用php5了.</p>
<p>附:</p>
<p>apache的默认根目录:<br />
/Library/WebServer/Documents/<br />
可以在 /etc/apache2/httpd.conf 文件中修改.</p>
<p>用来显示php环境的语句:<br />
<typo:code><br />
&lt;?php phpinfo(); ?&gt;<br />
</typo:code><br />
<br />
php.ini文件:<br />
/etc 目录下有一个php.ini.default文件. 复制并改名为php.ini文件:<br />
<typo:code><br />
sudo cp /etc/php.ini.default /etc/php.ini<br />
</typo:code><br />
(修改后重启apache才能生效)</p>
<p>在php.ini文件中找到<br />
mysql.default_socket =<br />
可以修改mysql socket位置, 如:<br />
<typo:code><br />
mysql.default_socket = /tmp/mysql.sock<br />
</typo:code>
<div style="margin-top: 15px; font-style: italic">
<p>转载请注明: 转自<a href="http://www.cslog.cn/">船长日志</a>, 本文链接地址: <a href="http://www.cslog.cn/Content/leopard-php/">http://www.cslog.cn/Content/leopard-php/</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cslog.cn/Content/leopard-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
