<?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>rob's blog &#187; podcastinople</title>
	<atom:link href="http://banagale.com/category/podcastinople/feed" rel="self" type="application/rss+xml" />
	<link>http://banagale.com</link>
	<description>because, it is better.</description>
	<lastBuildDate>Sat, 24 Jul 2010 18:40:19 +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>Common Errors When Installing postgres SQL and Ruby on Rails</title>
		<link>http://banagale.com/common-errors-when-installing-postgres-sql-and-ruby-on-rails.htm</link>
		<comments>http://banagale.com/common-errors-when-installing-postgres-sql-and-ruby-on-rails.htm#comments</comments>
		<pubDate>Tue, 06 Mar 2007 08:43:24 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[podcastinople]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://banagale.com/common-errors-when-installing-postgres-sql-and-ruby-on-rails.htm</guid>
		<description><![CDATA[I was setting up my local development environment for Podcastinople on my new Vista install and ran into some problems that I was able to find hidden deep in Ruby and Postgres forums and list archives. One problem I had was that when I was creating some of my local postgres databases using a normal [...]]]></description>
			<content:encoded><![CDATA[<p>I was setting up my local development environment for Podcastinople on my new Vista install and ran into some problems that I was able to find hidden deep in Ruby and Postgres forums and list archives.</p>
<p>One problem I had was that when I was creating some of my local postgres databases using a normal windows command prompt, this would cause it to spit out: psql: FATAL:  password authentication failed for user &#8216;Rob&#8217;.  &#8216;Rob&#8217; is the name of my Windows Vista username, and shouldn&#8217;t have been a part of any postgres SQL operation, so I was confused.</p>
<p>Then I realized that I needed to be running psql to &#8216;postgres&#8217; which is an installed shortcut with postgres.<span id="more-58"></span></p>
<p>The next problem I ran into was that postgres was reporting that I already had users in my database, specifically the default user: &#8216;postgres.&#8217;  The problem is that I had performed a full uninstall using the Control Panel, so I figured that the users should have been cleared out, they weren&#8217;t.</p>
<p>Vista did not report these users, but I was able to view them using the &#8220;net user&#8221; command from the Windows shell.  Specifically, I used &#8220;net user postgres /delete&#8221;.  I&#8217;m not sure how you are supposed to view users from this net command in Vista.  I got this answer from <a href="http://www.pokertracker.com/forum/viewtopic.php?t=6310&#038;postdays=0&#038;postorder=asc&#038;start=105">this forum thread</a>.<br />
Another problem was that postgres was saying:</p>
<blockquote><p>If you have an existing database with the same major version number, you do not need to initialise a database cluster.<br />
If you have an existing database with a different major version number you need to backup your old database and create a new one.</p></blockquote>
<p>The answer to this one was that you need to delete <span class="postbody"> c:\program files\postgresql\8.x\data folder before you reinstall.</span>  (Or during.  If you delete the folder and then click next on the setup dialog box it will go through.)  The answer to this one <a href="http://www.pokertracker.com/forum/viewtopic.php?t=6310&#038;postdays=0&#038;postorder=asc&#038;start=90&#038;sid=59353e52c8dd3326ee981a4a149d99cc">was here</a>.<br />
Yet another gotcha came from trying to rake, which caused me to get a &#8220;No such file to load &#8212; postgres&#8221; error.  The suggested solution to this was to make sure that the PostgreSQL bindings were installed using &#8220;gem install postgres&#8221;.  This didn&#8217;t work&#8211;I actually had these installed already.  The actual answer was to install the pure Ruby interface to PostgreSQL using  &#8220;gem install postgres-pr&#8221;.    The answer to that was <a href="http://lists.rubyonrails.org/pipermail/rails/2005-March/004874.html">found here</a>.</p>
<p>Another problem is that my rake.bat file was using a require_gem command which is deprecated.  It was shooting a warning:  &#8220;require_gem is obsolete. Use gem instead&#8221;  The solution to this was to go into the rake.bat and change the require_gem command to just gem.  That answer <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/237844">was here</a>. <font size="-1" /></p>
<p><font size="-1"></font><font size="-1">Next in line for problems was that imagemagick was causing a big ugly error during the course of the rake, specifically: &#8220;This application has failed to start because CORE_RL_magick_.dll was not found. Re-installing the application may fix this problem.&#8221;  The answer to this was to check and make sure that the imagemagick folder was in my system path.  That answer is <a href="http://www.imagemagick.org/pipermail/magick-users/2004-November/014109.html">here</a>.</font></p>
<p><font size="-1"></font><font size="-1">Finally, I got an error that my imagemagick and rmagick versions were incompatible.  It turns out that rmagick packages a .msi installation with imagemagick, and that you need to install <em>that</em> version.  Not the latest on the imagemagick website.  So, be sure to do that.</font></p>
<p><font size="-1"></font><font size="-1">What does all this show?  Installing a development environment for Ruby and PostgreSQL with Imagemagick can be a painful experience.  Especially if you botch the installation once.  You don&#8217;t want to do that.</font></p>
<p><font size="-1"></font><font size="-1">Anyway, you either found this using a search engine and it was exactly what you were looking for or this was a totally nonsensical post to you.  Good luck with postgres/RoR! </font> </p>
]]></content:encoded>
			<wfw:commentRss>http://banagale.com/common-errors-when-installing-postgres-sql-and-ruby-on-rails.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
