<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>おれ最前線ねっと &#187; rubygems</title>
	<atom:link href="http://ore.saizensen.net/archives/tag/rubygems/feed" rel="self" type="application/rss+xml" />
	<link>http://ore.saizensen.net</link>
	<description>イェ〜〜ィ。見てる〜〜〜？？</description>
	<lastBuildDate>Tue, 12 Jul 2011 06:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/tag/rubygems/feed" />
		<item>
		<title>rubygems &#8211; mysqlアダプタがインストール出来ない</title>
		<link>http://ore.saizensen.net/archives/20</link>
		<comments>http://ore.saizensen.net/archives/20#comments</comments>
		<pubDate>Tue, 29 Jan 2008 14:40:46 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[Lang]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/archives/20</guid>
		<description><![CDATA[mac OSX 10.4 にgemでmysql2.7のネイティブアダプタがインストール出来ない場合。 sudo gem install mysql &#8212; &#8211;with-mysql-dir=/usr/l [...]]]></description>
			<content:encoded><![CDATA[				<p>mac OSX 10.4 にgemでmysql2.7のネイティブアダプタがインストール出来ない場合。</p>
				<p>sudo gem install mysql &#8212; &#8211;with-mysql-dir=/usr/local/mysql</p>
				<p>Select which gem to install for your platform (i686-darwin8.11.1)<br />
				1. mysql 2.7.3 (mswin32)<br />
				2. mysql 2.7.1 (mswin32)<br />
				3. mysql 2.7 (ruby)<br />
				4. mysql 2.6 (ruby)<br />
				5. Skip this gem<br />
				6. Cancel installation<br />
				&gt; Building native extensions.  This could take a while&#8230;<br />
				ERROR:  While executing gem &#8230; (Gem::Installer::ExtensionBuildError)<br />
				ERROR: Failed to build gem native extension.</p>
				<p>ruby extconf.rb install mysql &#8212; &#8211;with-mysql-dir=/usr/local/mysql<br />
				checking for mysql_query() in -lmysqlclient&#8230; yes<br />
				checking for mysql_ssl_set()&#8230; yes<br />
				checking for mysql.h&#8230; yes<br />
				creating Makefile</p>
				<p>make<br />
				gcc -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.11.1 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -I/usr/local/mysql/include -I/opt/local/include -fno-common -O2 -fno-common -pipe -fno-common -c mysql.c<br />
				mysql.c: In function ‘query’:<br />
				mysql.c:635: error: invalid storage class for function ‘res_free’<br />
				mysql.c:637: error: ‘res_free’ undeclared (first use in this function)<br />
				mysql.c:637: error: (Each undeclared identifier is reported only once<br />
				mysql.c:637: error: for each function it appears in.)<br />
				mysql.c: In function ‘Init_mysql’:<br />
				mysql.c:1299: error: ‘ulong’ undeclared (first use in this function)<br />
				mysql.c:1299: error: parse error before numeric constant<br />
				mysql.c:1302: error: parse error before numeric constant<br />
				make: *** [mysql.o] Error 1</p>
				<p>Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.<br />
				Results logged to /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out</p>
				<p>と、エラーを吐く。<br />
				以下、解決法↓</p>
				<p>sudo vim /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/mysql.c.in.<br />
				ファイル先頭に<br />
				#define ulong unsigned long<br />
				と記述。</p>
				<p>cd /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7<br />
				sudo ruby extconf.rb &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config<br />
				sudo make<br />
				sudo make install</p>
				<p>以上。メモ。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/20/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/20" />
	</item>
	</channel>
</rss>

