<?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>Rubyat - Ruby blog</title>
	<atom:link href="http://rubyat.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubyat.com/blog</link>
	<description>For Ruby and Ruby on Rails developers, and Linux administrators</description>
	<lastBuildDate>Sat, 18 Feb 2012 18:17:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Upgrading to Ruby 1.9.3 and Rails 3.2</title>
		<link>http://rubyat.com/blog/2012/02/upgrading-to-ruby-1-9-3-and-rails-3-2/</link>
		<comments>http://rubyat.com/blog/2012/02/upgrading-to-ruby-1-9-3-and-rails-3-2/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 18:17:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql2]]></category>
		<category><![CDATA[pik]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 3.2]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ruby 1.9.3]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=52</guid>
		<description><![CDATA[<p>My Windows machine had ruby 1.9.2 and Rails 3.1. Now that ruby 1.9.3 and rails 3.2 are out, it was time to upgrade. This method isn&#8217;t the easiest, but it worked just fine for me. Note that this machine has MySQL version 5, so step 7 is necessary for me. If you have MySQL version [...]]]></description>
			<content:encoded><![CDATA[<p>My Windows machine had ruby 1.9.2 and Rails 3.1. Now that ruby 1.9.3 and rails 3.2 are out, it was time to upgrade. This method isn&#8217;t the easiest, but it worked just fine for me. Note that this machine has MySQL version 5, so step 7 is necessary for me. If you have MySQL version 6, copy libmysql.dll from there if it isn&#8217;t already on the path.</p>
<pre>
1. Install the latest version of ruby (currently 1.9.3-p125)
  a. Follow the instructions on rubyinstaller.org
  b. I recommend you use the defaults (install to C:\ruby193)
  c. make sure to also install DevKit (install to C:\ruby193\DevKit)
2. install pik
  a. gem install pik
  b. pik_install C:\bin (or other directory that is always on your path)
3. Add this ruby to pik
  a. pik add C:\ruby193\bin
4. Use this version of ruby
  a. pik use ruby 1.9.3p125 (note: there is no dash between the version and the p)
     I put this in a batch file, rather than have it load automatically with cmd
5. gem install rails
6. gem install mysql2
7. copy version 6 of libmysql.dll to C:\ruby193\bin (same directory as this version of ruby.exe)
  a. download it from the site shown on the gem install mysql2
8. rails new yourproject -d mysql
9. cd yourproject
10. edit database.yaml so adapter is mysql2
11. bundle install
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2012/02/upgrading-to-ruby-1-9-3-and-rails-3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to ruby-1.9.2-p290</title>
		<link>http://rubyat.com/blog/2011/11/upgrading-to-ruby-1-9-2-p290/</link>
		<comments>http://rubyat.com/blog/2011/11/upgrading-to-ruby-1-9-2-p290/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 08:12:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby 1.9.2-p290]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=40</guid>
		<description><![CDATA[<p>Upgrading to ruby-1.9.2-p290 on my development machines (Windows and Linux) was a breeze. There were some extra steps needed to upgrade on the server:</p>
<p>1. rvm get head
2. rvm reload</p>
<p>After that, just:</p>
<p>3. rvm install ruby-1.9.2-p290
4. rvm &#8211;default 1.9.2-p290
5. rvm gemset create 3.1.1
6. rvm gemset use 3.1.1 &#8211;default
7. gem install rails &#8211;no-rdoc &#8211;no-ri</p>
<p>and ready to roll.</p>
]]></description>
			<content:encoded><![CDATA[<p>Upgrading to ruby-1.9.2-p290 on my development machines (Windows and Linux) was a breeze. There were some extra steps needed to upgrade on the server:</p>
<p>1. rvm get head<br />
2. rvm reload</p>
<p>After that, just:</p>
<p>3. rvm install ruby-1.9.2-p290<br />
4. rvm &#8211;default 1.9.2-p290<br />
5. rvm gemset create 3.1.1<br />
6. rvm gemset use 3.1.1 &#8211;default<br />
7. gem install rails &#8211;no-rdoc &#8211;no-ri</p>
<p>and ready to roll.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2011/11/upgrading-to-ruby-1-9-2-p290/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to Rails 3.1.1 on Windows</title>
		<link>http://rubyat.com/blog/2011/10/upgrading-to-rails-3-1-1-on-windows/</link>
		<comments>http://rubyat.com/blog/2011/10/upgrading-to-rails-3-1-1-on-windows/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 21:00:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql2]]></category>
		<category><![CDATA[pik]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 3.1.1]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=32</guid>
		<description><![CDATA[<p>I just upgraded my Windows XP computer to use Ruby on Rails 3.1.1 with MySQL 5.1. Here&#8217;s how I did it:</p>
<p>0. pik is already installed via gem
1. Download rubyinstaller-1.9.2-p290.exe
2. Install ruby at c:\ruby\1.9.2-p290
3. pik add c:\ruby\1.9.2-p290\bin
4. Download DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe
5. Install DevKit at c:\ruby\1.9.2-p290\DevKit
6. PATH=C:\ruby\1.9.2-p290\DevKit;%PATH%
7. pik use ruby 1.9.2p290
8. gem install json &#8211;platform=ruby
9. gem install mysql2 &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p>I just upgraded my Windows XP computer to use Ruby on Rails 3.1.1 with MySQL 5.1. Here&#8217;s how I did it:</p>
<p>0. pik is already installed via gem<br />
1. Download rubyinstaller-1.9.2-p290.exe<br />
2. Install ruby at c:\ruby\1.9.2-p290<br />
3. pik add c:\ruby\1.9.2-p290\bin<br />
4. Download DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe<br />
5. Install DevKit at c:\ruby\1.9.2-p290\DevKit<br />
6. PATH=C:\ruby\1.9.2-p290\DevKit;%PATH%<br />
7. pik use ruby 1.9.2p290<br />
8. gem install json &#8211;platform=ruby<br />
9. gem install mysql2 &#8212; &#8216;&#8211;with-mysql-lib=&#8221;c:\Program Files\MySQL\MySQL Server 5.1\lib\opt&#8221; &#8211;with-mysql-include=&#8221;c:\Program Files\MySQL\MySQL Server 5.1\include&#8221;&#8216;</p>
<p>and now create a new rails app as usual:<br />
rails new <app> -d mysql<br />
bundle install</p>
<p>and everything works!</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2011/10/upgrading-to-rails-3-1-1-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.1 Is Out!</title>
		<link>http://rubyat.com/blog/2011/08/rails-3-1-is-out/</link>
		<comments>http://rubyat.com/blog/2011/08/rails-3-1-is-out/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 08:23:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails 3.1]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[working]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=30</guid>
		<description><![CDATA[<p>My first non-trivial Rails 3.1.0 app is working less than one hour after installing the rails 3.1.0 gem.  Here is what I needed to do, including the rails install:</p>
<p>1. rvm gemset create 3.1.0
2. rvm gemset use 3.1.0
3. gem install rails
4. cd 
4. rails new 
5. cd rails_app
6. edit config/database.yml (user, password and database)
7. edit [...]]]></description>
			<content:encoded><![CDATA[<p>My first non-trivial Rails 3.1.0 app is working less than one hour after installing the rails 3.1.0 gem.  Here is what I needed to do, including the rails install:</p>
<p>1. rvm gemset create 3.1.0<br />
2. rvm gemset use 3.1.0<br />
3. gem install rails<br />
4. cd <rails dir><br />
4. rails new <rails_app -d mysql><br />
5. cd rails_app<br />
6. edit config/database.yml (user, password and database)<br />
7. edit config/application.rb (added one directory to path)<br />
8. edit Gemfile (added two gems &#8216;execjs&#8217; and &#8216;therubyracer&#8217;)<br />
9. bundle install<br />
10. copied over two models, one helper and one app file under /lib<br />
11. changed program debug variable to 0<br />
12. ran the app </p>
<p>Note: So far, this app has no views. It does have multiple models and a 49 year-old database that started as flat files..</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2011/08/rails-3-1-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uninitialized constant Rake::DSL</title>
		<link>http://rubyat.com/blog/2011/07/uninitialized-constant-rakedsl/</link>
		<comments>http://rubyat.com/blog/2011/07/uninitialized-constant-rakedsl/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 10:51:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[Rails 3]]></category>
		<category><![CDATA[rake]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=26</guid>
		<description><![CDATA[<p>Using Ruby 1.9.2, Rails 3.0.9, and rake 0.9.2
This happened to me when doing a heroku rake db:migrate. The solution:
In my Rakefile, add require &#8216;rake/dsl_definition&#8217; before require &#8216;rake&#8217;</p>
<p>Hat tip to http://stackoverflow.com/questions/6181312/how-to-fix-the-uninitialized-constant-rakedsl-problem-on-heroku and Kale!</p>
]]></description>
			<content:encoded><![CDATA[<p>Using Ruby 1.9.2, Rails 3.0.9, and rake 0.9.2<br />
This happened to me when doing a heroku rake db:migrate. The solution:<br />
In my Rakefile, add require &#8216;rake/dsl_definition&#8217; before require &#8216;rake&#8217;</p>
<p>Hat tip to http://stackoverflow.com/questions/6181312/how-to-fix-the-uninitialized-constant-rakedsl-problem-on-heroku and Kale!</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2011/07/uninitialized-constant-rakedsl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cucumber/json on Windows XP</title>
		<link>http://rubyat.com/blog/2011/03/cucumberjson-on-windows-xp/</link>
		<comments>http://rubyat.com/blog/2011/03/cucumberjson-on-windows-xp/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 18:59:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=24</guid>
		<description><![CDATA[<p>I recently received this message while running my first cucumber application on my XP development machine:</p>
<p>ruby.exe &#8211; Unable To Locate Component
This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem.</p>
<p>The solution turns out to be easy. Update old gems that still use ruby 1.8. In my case:
1. [...]]]></description>
			<content:encoded><![CDATA[<p>I recently received this message while running my first cucumber application on my XP development machine:</p>
<p>ruby.exe &#8211; Unable To Locate Component<br />
This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem.</p>
<p>The solution turns out to be easy. Update old gems that still use ruby 1.8. In my case:<br />
1. gem update &#8211;system<br />
2. gem uninstall json<br />
3. gem install json</p>
<p>In my case, this updated rubygems to 1.6.2, and json from 1.4.6 to 1.5.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2011/03/cucumberjson-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing ruby 1.9.2p0 and Rails 3.0.3 and getting it to work with MySQL on Windows</title>
		<link>http://rubyat.com/blog/2010/12/installing-ruby-1-9-2p0-and-rails-3-0-3-and-getting-it-to-work-with-mysql-on-windows/</link>
		<comments>http://rubyat.com/blog/2010/12/installing-ruby-1-9-2p0-and-rails-3-0-3-and-getting-it-to-work-with-mysql-on-windows/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 17:35:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rails3]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=15</guid>
		<description><![CDATA[<p>Installing ruby 1.9.2 on Windows took several false starts before I got on the right track.</p>
<p>My development machine is a dual-boot Windows and Linux monster with pre-existing versions of Ruby, Rubygems, Rails, and MySQL. On the Windows side, I have a working version using ruby 1.86, rubygems 1.3.5, rails 2.3.8, and MySQL 5.1. The oldest [...]]]></description>
			<content:encoded><![CDATA[<p>Installing ruby 1.9.2 on Windows took several false starts before I got on the right track.</p>
<p>My development machine is a dual-boot Windows and Linux monster with pre-existing versions of Ruby, Rubygems, Rails, and MySQL. On the Windows side, I have a working version using ruby 1.86, rubygems 1.3.5, rails 2.3.8, and MySQL 5.1. The oldest version of ruby was sitting in C:\ruby\bin, with newer versions in subdirectories like C:\ruby\1.9.2-rc2. I get some warning messages because the ruby version is older than the rubygems and rails, but the bottom line is the programs work. So, writing over a working version of ruby or MySQL was not an option.</p>
<p>The rvm gem is not available on Windows, so to switch ruby versions I run a batch script that prepends the desired ruby bin to the path. I tried to install ruby version 1.9.2-p0 in the same way that I had 1.8.7, but got flaky errors. For whatever reason, the 1.9.2 ruby version had the 1.8 gems on the path. This meant that I could install gems on 1.9.2, and gem list would report the new gems, but programs used gems from 1.8. This was not good. I finally installed ruby 1.9.2 in a directory that was not a subdirectory of C:\ruby, made sure the path had only one ruby entry, etc. Finally I chose to regedit and revise any references to ruby 1.8 executables to ruby 1.9.2. Now ruby 1.9.2 programs were using the gems I had installed. But programs using MySQL still didn&#8217;t run.</p>
<p>One error I frequently (but not always) saw was segmentation fault. Luis Lavena says that is always a MySQL dll issue. He was right. Luis Lavena is the expert on ruby and Windows. He said that you need to run MySQL 5.0, as the ruby bindings use that version of libmysql.dll. Plus, the documentation on the web references the mysql gem but not the mysql2 gem. Luis Lavena is correct, but incomplete.</p>
<p>First, the mysql2 gem now works on Windows with ruby 1.9.2, and the rails s command expects the mysql2 gem if you specified -d mysql when creating your rails project. The solution was to have the libmysql.dll from MySQL 5.0.89 as the first/only libmysql.dll in the path. But you don&#8217;t need to install an old version of MySQL to do this. The best solution is on http://www.fuyun.org/2010/01/ruby-mysql-adapter-on-windows/. Download mysql-noinstall-5.0.89-win32.zip, which can currently be found at http://dev.mysql.com/downloads/mysql/5.4.html, and extract only libmysql.dll from there, using your favorite unzip program (mine is 7-Zip). Then, place libmysql.dll in your path. I have it in my ruby bin; your path may differ.</p>
<p>To complete the solution, I&#8217;ve taken both my ruby bin and MySQL Server 5.1\bin off my default path and added two batch files to add one or the other back in. There is a ruby gem patheditor that you may want to try out, but of course it requires that ruby be in your path.</p>
<p><strong>Addendum: April 6, 2011</strong> With the latest versions of Rails (3.0.5) and the mysql2 gem (0.2.6 and 0.2.7), you need to use the MySQL 5.1 version of libmysql.dll instead of the MySQL 5.0.89 version. Either have the MySQL 5.1 bin in your path or a copy of the MySQL 5.1 version of libmysql.dll somewhere in your path.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2010/12/installing-ruby-1-9-2p0-and-rails-3-0-3-and-getting-it-to-work-with-mysql-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Rails/Passenger to Debian Using Ruby Gems</title>
		<link>http://rubyat.com/blog/2010/07/adding-railspassenger-to-debian-using-ruby-gems/</link>
		<comments>http://rubyat.com/blog/2010/07/adding-railspassenger-to-debian-using-ruby-gems/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 04:06:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Passenger]]></category>
		<category><![CDATA[Rails 2]]></category>
		<category><![CDATA[Ruby Gems]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=16</guid>
		<description><![CDATA[<p>I needed to serve both static and Ruby on Rails (RoR) pages on my rubyat.com site running Debian gnu/Linux stable (lenny). The apt-get/Debian way is unsatisfactory, as, among other issues, Debian does not yet have Passenger in its stable (lenny) branch. After doing some research, and some trial and error, this is what worked for [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to serve both static and Ruby on Rails (RoR) pages on my rubyat.com site running Debian gnu/Linux stable (lenny). The apt-get/Debian way is unsatisfactory, as, among other issues, Debian does not yet have Passenger in its stable (lenny) branch. After doing some research, and some trial and error, this is what worked for me.</p>
<p>1. Uninstall any gems. I&#8217;d installed  rake and Rails via Debian apt-get. Unfortunately, most Ruby gems aren&#8217;t available that way.</p>
<p>2. Uninstall rubygems via apt-get. Same logic.</p>
<p>3. Install ruby development headers.<br />
sudo apt-get install ruby1.8-dev</p>
<p>4. Install rubygems from source. This gets me the newest version of rubygems, and also makes all future gems available.</p>
<p>sudo wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz<br />
sudo tar -xzvf rubygems-1.3.7.tgz<br />
cd rubygems-1.3.7<br />
sudo ruby setup.rb</p>
<p>5. Install Rails.<br />
sudo gem install rails (Installs the latest stable version of Rails. Today it is 2.3.8).</p>
<p>6. Install Passenger.<br />
6a. Install the Passenger Ruby Gem.<br />
sudo gem install passenger</p>
<p>6b. Install the Apache Passenger module.<br />
sudo apt-get install apache2-prefork-dev<br />
sudo apt-get install libapr1-dev (Note: already installed on my machine.)<br />
sudo apt-get install libaprutil1-dev (Note: already installed on my machine.)<br />
sudo passenger-install-apache2-module</p>
<p>6c. Edit my Apache configuration file. In Debian, this is /etc/apache2/apache2.conf.<br />
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so<br />
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15<br />
PassengerRuby /usr/bin/ruby1.8</p>
<p>Now, some of my web sites use an older version of rails. So:</p>
<p>7. Install older version of rails.<br />
sudo gem install -v=2.1.0 rails</p>
<p>8. Restart Apache.<br />
sudo /etc/init.d/apache2 restart</p>
<p>At this point, Ruby on Rails pages get served, but other content (such as this WordPress blog) does not.</p>
<p>9a. Edit my site Apache configuration.<br />
sudo nano /etc/apache2/sites-available/mysite<br />
inside &lt;VirtualHost&gt; add the following three lines:<br />
&lt;Location /blog&gt;<br />
 PassengerEnabled off<br />
&lt;/Location&gt;</p>
<p>And these three lines:<br />
&lt;Location /mail&gt;<br />
 PassengerEnabled off<br />
&lt;/Location&gt;</p>
<p>9b. Restart Apache.<br />
sudo /etc/init.d/apache2 restart</p>
<p>9c. Test the configuration. Make sure everything works. For me, it does.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2010/07/adding-railspassenger-to-debian-using-ruby-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 2.3.8 &#8211; Segmentation Fault</title>
		<link>http://rubyat.com/blog/2010/06/rails-2-3-8-segmentation-fault/</link>
		<comments>http://rubyat.com/blog/2010/06/rails-2-3-8-segmentation-fault/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 07:35:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rails 2]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/2010/06/rails-2-3-8-segmentation-fault/</guid>
		<description><![CDATA[<p>I just upgraded to Rails 2.3.8 on my development machine. I created a standard Rails app, started up WEBrick, and got a Segmentation fault. Not enough code to be my error, so I searched for the core problem and possible solutions.</p>
<p>Turns out the issue is known, and a solution exists. First, I updated to the [...]]]></description>
			<content:encoded><![CDATA[<p>I just upgraded to Rails 2.3.8 on my development machine. I created a standard Rails app, started up WEBrick, and got a Segmentation fault. Not enough code to be my error, so I searched for the core problem and possible solutions.</p>
<p>Turns out the issue is known, and a solution exists. First, I updated to the latest version of Ruby 1.8.6. Not 1.8.7, and certainly not 1.9.2. Too many people reported unresolved problems with Ruby 1.8.7, and Ruby 1.9.2 hasn&#8217;t yet gone stable. As of 16 June 2010, the latest version available as an exe for Windows is ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32].</p>
<p>Next, did a gem install rails (version 2.3.8). Third, a gem install mysql (2.8.1 x86-mingw32). This gave errors for the documentation, but the gem installs.</p>
<p>Finally, I copied libmySQL.dll (1484 KB) from http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll as recommended at http://forums.aptana.com/viewtopic.php?f=20&amp;t=7563&amp;p=27407&amp;hilit=libmysql.dll#p27407 . After that, everything just works.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2010/06/rails-2-3-8-segmentation-fault/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rails 3.0.0.beta install</title>
		<link>http://rubyat.com/blog/2010/02/rails-3-0/</link>
		<comments>http://rubyat.com/blog/2010/02/rails-3-0/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 05:13:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rails 3.0]]></category>

		<guid isPermaLink="false">http://rubyat.com/blog/?p=4</guid>
		<description><![CDATA[<p>Installed Rails 3.0.0.beta on my test machine. Here&#8217;s a few notes on what was easy, what was not.</p>
<p>My test machine uses Debian squeeze (testing), ruby 1.9.1 and rubygems 1.3.5. You need to have ruby 1.8.7 or newer. Ruby 1.8.6 will not work.</p>
<p>To find out what version of ruby you have, enter: ruby -v.</p>
<p>For a full [...]]]></description>
			<content:encoded><![CDATA[<p>Installed Rails 3.0.0.beta on my test machine. Here&#8217;s a few notes on what was easy, what was not.</p>
<p>My test machine uses Debian squeeze (testing), ruby 1.9.1 and rubygems 1.3.5. You need to have ruby 1.8.7 or newer. Ruby 1.8.6 will not work.</p>
<p>To find out what version of ruby you have, enter: <strong>ruby -v</strong>.</p>
<p>For a full rubygems environment listing, enter: <strong>gem env</strong></p>
<p>To find out what paths ruby is looking for, enter: <strong>irb</strong></p>
<p>followed by: <strong>puts $LOAD_PATH</strong></p>
<p>My first attempt in installing Rails 3 failed, with this error message:</p>
<p><strong>sudo gem install rails &#8211;pre</strong><br />
ERROR:  Error installing rails:<br />
actionpack requires rack-mount (~&gt; 0.4.0, runtime)</p>
<p>So, I get to go a bit deeper:</p>
<p><strong>sudo gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n<br />
sudo gem install rack-mount &#8211;version 0.4.0<br />
sudo gem install rails &#8211;pre</strong></p>
<p>But this isn&#8217;t enough to create a new project. So:</p>
<p><strong>sudo gem install abstract<br />
rails rubyat.com -d mysql</strong></p>
<p>Now, there&#8217;s still more to be done in order to use rails console:</p>
<p><strong>sudo apt-get install libmysql-ruby1.9<br />
sudo apt-get install libmysqlclient-dev<br />
sudo gem install mysql &#8212; &#8211;with-mysql-dir=/usr/bin &#8211;with-mysql-lib=/usr/lib/mysql<br />
sudo gem install mime-types<br />
sudo gem install text-hyphen</strong></p>
<p>Finally, enter: <strong>rails console</strong> and we have the familiar irb console.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyat.com/blog/2010/02/rails-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

