<?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>geeky updates &#187; mysql</title>
	<atom:link href="http://sergeyvlasov.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://sergeyvlasov.com</link>
	<description>spontaneous posts about computers, internet and the life</description>
	<lastBuildDate>Sat, 13 Feb 2010 22:54:04 +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>Be prepared to Rails 2.2 &#8211; how to install mysql gem on Ubuntu</title>
		<link>http://sergeyvlasov.com/be-prepared-to-rails-22-how-to-install-mysql-gem-on-ubuntu</link>
		<comments>http://sergeyvlasov.com/be-prepared-to-rails-22-how-to-install-mysql-gem-on-ubuntu#comments</comments>
		<pubDate>Tue, 25 Nov 2008 18:59:12 +0000</pubDate>
		<dc:creator>sergey</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://sergeyvlasov.com/?p=366</guid>
		<description><![CDATA[Rails 2.2 is already out, and this release should be an exciting leap torwards multithreading, i18n etc. I definitely will give it a try. Today I&#8217;m using 2.1.2, and each time I run &#8216;rake test:units&#8217; I get distracted a bit by a message that tells me that internal Rails&#8217; MySQL adapter already deprecated. So I [...]]]></description>
			<content:encoded><![CDATA[<p>Rails 2.2 is already out, and this release should be an exciting leap torwards multithreading, i18n etc. I definitely will give it a try. Today I&#8217;m using 2.1.2, and each time I run &#8216;rake test:units&#8217; I get distracted a bit by a message that tells me that internal Rails&#8217; MySQL adapter already deprecated. So I decided to get rid of it.</p>
<p>&gt;sudo aptitude install mysql</p>
<p><span id="more-366"></span></p>
<p>Doesn&#8217;t work! It says some libraries are missing. And since build-essential I&#8217;ve already installed</p>
<p>&gt;sudo aptitude install build-essential</p>
<p>I jumped into Google. I&#8217;ve found that some development version of libmysqlclient library is the cure. Both</p>
<p>&gt;sudo aptitude install libmysqlclient5-dev</p>
<p>and</p>
<p>&gt;sudo aptitude install libmysqlclient12-dev</p>
<p>are failed. So, how to find out the actual version number?</p>
<p>&gt; sudo aptitude search mysqlclient | grep dev</p>
<p>It would print out something like this:</p>
<p>v   libmysqlclient-dev              -<br />
i   libmysqlclient15-dev            &#8211; MySQL database development files</p>
<p>So it turns out that there is a meta-package(libmysqlclient-dev), and performing following command</p>
<p>&gt;sudo aptitude install libmysqldev</p>
<p>would care about right version automatically. Now the time to install mysql gem has came:</p>
<p>&gt;sudo  gem install mysql</p>
<p>And finally, if you brave enough, do the last move:</p>
<p>&gt;sudo gem update rails</p>
<script type="text/javascript" class="owbutton" src="http://www.onlywire.com/button" title="Be prepared to Rails 2.2 - how to install mysql gem on Ubuntu" url="http://sergeyvlasov.com/?p=366"></script>]]></content:encoded>
			<wfw:commentRss>http://sergeyvlasov.com/be-prepared-to-rails-22-how-to-install-mysql-gem-on-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
