<?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>big5 &#187; ruby</title>
	<atom:link href="http://big5.jp/blog/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://big5.jp/blog</link>
	<description>犬と猫と串カツが好きなエンジニアの日記</description>
	<lastBuildDate>Sun, 25 Jul 2010 18:17:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mac+Ruby Enterprise Editionはダメみたい</title>
		<link>http://big5.jp/blog/2009/12/macruby-enterprise-edition/</link>
		<comments>http://big5.jp/blog/2009/12/macruby-enterprise-edition/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 09:17:52 +0000</pubDate>
		<dc:creator>big5</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ree]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://big5.jp/blog/?p=110</guid>
		<description><![CDATA[本番サーバがRuby Enterprise EditionでRails動かしているということで、ローカル環境を一生懸命あわせにいったんだけど、思わぬところでエラーが落ちてはまったよ。
結局解決しなかったけど、ダメだったところを力任せに書き付けます。このボケがあああああ。
やろうとしたこと
OS:
Darwin Macintosh.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
ruby:
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0], MBARI 0&#215;8770, Ruby Enterprise Edition 2009.10
rails:
rails 2.3.5
Macに本番と同じREEいれてmysqlいれてヒャッハーしようという話。
ダメだったこと
ActiveRecordの:conditionsにプレースホルダを指定しようとすると、consoleが落ちる。
↑文章がスーパーハッカーっぽくてかっこいいねこれ。
script/consoleで、
MyModel.find(:all,:conditions=&#62;["userId in (?)",'big5'])
とやると
dyld: lazy symbol binding failed: Symbol not found: _rb_str_set_len
Referenced from: /Users/big5/.gem/ruby/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle
Expected in: flat namespace
dyld: Symbol not found: _rb_str_set_len
Referenced from: /Users/big5/.gem/ruby/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle
Expected in: flat namespace
Trace/BPT trap
こんなことになる。
MyModel.find(:all,:conditions=&#62;&#8221;userId in [...]]]></description>
			<content:encoded><![CDATA[<p>本番サーバがRuby Enterprise EditionでRails動かしているということで、ローカル環境を一生懸命あわせにいったんだけど、思わぬところでエラーが落ちてはまったよ。</p>
<p>結局解決しなかったけど、ダメだったところを力任せに書き付けます。このボケがあああああ。</p>
<h4>やろうとしたこと</h4>
<blockquote><p>OS:</p>
<p>Darwin Macintosh.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386<br />
ruby:</p>
<p>ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0], MBARI 0&#215;8770, Ruby Enterprise Edition 2009.10<br />
rails:</p>
<p>rails 2.3.5</p></blockquote>
<p>Macに本番と同じREEいれてmysqlいれてヒャッハーしようという話。</p>
<h4>ダメだったこと</h4>
<p>ActiveRecordの:conditionsにプレースホルダを指定しようとすると、consoleが落ちる。</p>
<p>↑文章がスーパーハッカーっぽくてかっこいいねこれ。</p>
<p>script/consoleで、</p>
<blockquote><p>MyModel.find(:all,:conditions=&gt;["userId in (?)",'big5'])</p></blockquote>
<p>とやると</p>
<blockquote><p>dyld: lazy symbol binding failed: Symbol not found: _rb_str_set_len</p>
<p>Referenced from: /Users/big5/.gem/ruby/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle</p>
<p>Expected in: flat namespace</p>
<p>dyld: Symbol not found: _rb_str_set_len</p>
<p>Referenced from: /Users/big5/.gem/ruby/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle</p>
<p>Expected in: flat namespace</p>
<p>Trace/BPT trap</p></blockquote>
<p>こんなことになる。</p>
<blockquote><p>MyModel.find(:all,:conditions=&gt;&#8221;userId in (&#8217;big5&#8242;)&#8221;)</p></blockquote>
<p>はOK。<br />
コードが悪いのかといろいろ思考錯誤したけど解決しなかった。</p>
<p><a href="http://groups.google.co.jp/group/rubyonrails-talk/browse_thread/thread/577aa65fabb59139/9ddafd73eff374fe?#9ddafd73eff374fe" target="_blank">ググったり</a>、<a href="http://www.evilrob.org/journal/archives/000198.html" target="_blank">ググったり</a>したけど解決できる方法がわからなかったよ！！<br />
同僚のrubyに詳しい人に聞いたけどわからなかったよ！！</p>
<h4>結局</h4>
<p>普通のrubyでやったら普通にうまくいくらしいので、環境作り直すことにしたよ！！！！！</p>
]]></content:encoded>
			<wfw:commentRss>http://big5.jp/blog/2009/12/macruby-enterprise-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
