<?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>Preston Lee&#039;s Blog &#187; troubleshooting</title>
	<atom:link href="http://www.prestonlee.com/tag/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prestonlee.com</link>
	<description>Technologist, businessman and entrepreneur.</description>
	<lastBuildDate>Fri, 23 Jul 2010 23:47:47 +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>Installing The MySQL Ruby Gem When Using The Official MySQL .dmg</title>
		<link>http://www.prestonlee.com/2008/08/12/installing-the-mysql-ruby-gem-when-using-the-official-mysql-dmg/</link>
		<comments>http://www.prestonlee.com/2008/08/12/installing-the-mysql-ruby-gem-when-using-the-official-mysql-dmg/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 18:10:36 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.prestonlee.com/?p=288</guid>
		<description><![CDATA[If you installed MySQL using the official .dmg package provided by MySQL AB/Sun and are trying to install the native MySQL gem, you&#8217;ll need to pass a bunch of flags to the gem install process to get the thing to compile. Try this.. sudo gem install mysql &#8212; &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config ..if you still have issues (check your /opt/local/lib/ruby/gems/&#60;ruby_ver&#62;/gems/mysql-&#60;gem_ver&#62;/mkmf.log [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.prestonlee.com/wp-content/uploads/2008/08/logo_mysql_sun.gif"><img class="alignright size-medium wp-image-289" title="logo_mysql_sun" src="http://www.prestonlee.com/wp-content/uploads/2008/08/logo_mysql_sun.gif" alt="" width="205" height="68" /></a></p>
<p>If you installed MySQL using <a href="http://dev.mysql.com/downloads/mysql/">the official .dmg package provided by MySQL AB/Sun</a> and are trying to install the native MySQL gem, you&#8217;ll need to pass a bunch of flags to the gem install process to get the thing to compile. Try this..</p>
<blockquote><p>sudo gem install mysql &#8212; &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config</p></blockquote>
<p>..if you still have issues (check your /opt/local/lib/ruby/gems/&lt;ruby_ver&gt;/gems/mysql-&lt;gem_ver&gt;/mkmf.log file), try this instead..</p>
<blockquote><p>sudo gem install mysql &#8212; &#8211;with-mysql-dir=/usr/local/mysql &#8211;with-mysql-include=/usr/local/mysql/include/ &#8211;with-mysql-lib=/usr/local/mysql/lib/ &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config</p></blockquote>
<p>Run `sudo gem install mysql` and definitely recheck the log file again as the gem install process sometimes reports false positives even if native components fail to install.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.prestonlee.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.prestonlee.com/2008/08/12/installing-the-mysql-ruby-gem-when-using-the-official-mysql-dmg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby Troubleshooting: Hpricot On OS X Leopard</title>
		<link>http://www.prestonlee.com/2008/01/03/ruby-troubleshooting-hpricot-on-os-x-leopard/</link>
		<comments>http://www.prestonlee.com/2008/01/03/ruby-troubleshooting-hpricot-on-os-x-leopard/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 04:52:36 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[hpricot]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.prestonlee.com/archives/184</guid>
		<description><![CDATA[If you upgraded to Leopard, you may be getting this nasty error when trying to install Hpricot, which is required by other popular gems such as mechanize.. preston$ sudo gem install mechanize Password: ******** Bulk updating Gem source index for: http://gems.rubyforge.org Install required dependency hpricot? [Yn] Select which gem to install for your platform (i686-darwin8.10.3) [...]]]></description>
			<content:encoded><![CDATA[<p>If you upgraded to Leopard, you may be getting this nasty error when trying to install <a href="http://code.whytheluckystiff.net/hpricot/">Hpricot</a>, which is required by other popular gems such as mechanize..</p>
<blockquote><p><strong>preston$ <em>sudo gem install mechanize</em></strong><br />
Password: <strong><em>********</em></strong></p>
</blockquote>
<blockquote><p>Bulk updating Gem source index for: http://gems.rubyforge.org<br />
Install required dependency hpricot? [Yn]<br />
Select which gem to install for your platform (i686-darwin8.10.3)<br />
1. hpricot 0.6 (mswin32)<br />
2. hpricot 0.6 (jruby)<br />
3. hpricot 0.6 (ruby)<br />
4. hpricot 0.5 (ruby)<br />
5. hpricot 0.5 (mswin32)<br />
6. Skip this gem<br />
7. Cancel installation<br />
&gt; 3<br />
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 mechanize<br />
checking for main() in -lc&#8230; no<br />
creating Makefile</p>
<p>make<br />
gcc -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.10.3 -I. -I/opt/local/include -fno-common -O2  -fno-common -pipe -fno-common  -c hpricot_scan.c<br />
cc -dynamic -bundle -undefined suppress -flat_namespace -L/opt/local/lib   -L&#8221;/opt/local/lib&#8221; -o hpricot_scan.bundle hpricot_scan.o  -lruby  -lpthread -ldl -lobjc<br />
/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libpthread.dylib unknown flags (type) of section 6 (__TEXT,__dof_plockstat) in load command 0<br />
/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libdl.dylib unknown flags (type) of section 6 (__TEXT,__dof_plockstat) in load command 0<br />
/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libobjc.dylib load command 9 unknown cmd field<br />
/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib unknown flags (type) of section 6 (__TEXT,__dof_plockstat) in load command 0<br />
/usr/bin/ld: /usr/lib/libSystem.B.dylib unknown flags (type) of section 6 (__TEXT,__dof_plockstat) in load command 0<br />
collect2: ld returned 1 exit status<br />
make: *** [hpricot_scan.bundle] Error 1</p>
<p>Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/hpricot-0.6 for inspection.<br />
Results logged to /opt/local/lib/ruby/gems/1.8/gems/hpricot-0.6/ext/hpricot_scan/gem_make.out</p>
</blockquote>
<blockquote></blockquote>
<p>The issue is that <a href="http://developer.apple.com/tools/xcode/">Xcode</a> 3 must be upgraded as well; Hpricot&#8217;s native components cannot be built with the older Tiger development tools on Leopard. After installing Xcode 3 from either your Leopard DVD or <a href="http://developer.apple.com/">Apple Developer Connection</a>, run the install again&#8230;</p>
<blockquote><p><strong>preston$ <em>sudo gem install mechanize</em></strong></p>
</blockquote>
<blockquote><p>Install required dependency hpricot? [Yn]  Y<br />
Select which gem to install for your platform (i686-darwin8.10.3)<br />
1. hpricot 0.6 (mswin32)<br />
2. hpricot 0.6 (jruby)<br />
3. hpricot 0.6 (ruby)<br />
4. hpricot 0.5 (ruby)<br />
5. hpricot 0.5 (mswin32)<br />
6. Skip this gem<br />
7. Cancel installation<br />
&gt; 3<br />
Building native extensions.  This could take a while&#8230;<br />
Successfully installed mechanize-0.6.11<br />
Successfully installed hpricot-0.6<br />
Installing ri documentation for mechanize-0.6.11&#8230;<br />
Installing ri documentation for hpricot-0.6&#8230;<br />
Installing RDoc documentation for mechanize-0.6.11&#8230;<br />
Installing RDoc documentation for hpricot-0.6&#8230;</p>
</blockquote>
<blockquote></blockquote>
<p><span style="font-style: italic" class="Apple-style-span">Success!</span></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.prestonlee.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.prestonlee.com/2008/01/03/ruby-troubleshooting-hpricot-on-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Solaris 10 x64: Get Your Sound Card Working</title>
		<link>http://www.prestonlee.com/2007/08/17/solaris-10-x64-get-your-sound-card-working/</link>
		<comments>http://www.prestonlee.com/2007/08/17/solaris-10-x64-get-your-sound-card-working/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 22:18:49 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.prestonlee.com/archives/141</guid>
		<description><![CDATA[When I built the $1000, 2TB file server, the on-board nVidia HD audio support of the Asus M2NPV-VM motherboard didn&#8217;t work out of the box. It&#8217;s a trivial fix using the recently open sourced OSS drivers from 4Front Technologies. (I also tested a Creative Audigy 2 PCI sound card using these drivers under Solaris 10 [...]]]></description>
			<content:encoded><![CDATA[<p>When I built the <a href="http://www.prestonlee.com/archives/118">$1000, 2TB file server</a>, the on-board nVidia HD audio support of the <a href="http://www.asus.com/products4.aspx?l1=3&amp;l2=101&amp;l3=0&amp;model=1138&amp;modelmenu=1">Asus M2NPV-VM</a> motherboard didn&#8217;t work out of the box. It&#8217;s a trivial fix using the <a href="http://www.opensound.com/press/2007/oss-gpl-cddl.txt">recently open sourced OSS drivers</a> from <a href="http://www.opensound.com/">4Front Technologies</a>. (I also tested a Creative Audigy 2 PCI sound card using these drivers under Solaris 10 11/06, and the playback worked just as well.)</p>
<ol>
<li><a href="http://www.opensound.com/download.cgi"><strong>Download</strong> the Solaris x64 .pkg</a>.</li>
<li>`<strong>pkgadd</strong> -d oss-solaris-v4.0-1004-i386.pkg`</li>
<li><strong>`osstest`</strong>. You should here the sweet sweet sound of.. umm.. sound, and the following printed on the console..</li>
</ol>
<p><em>bash-3.00$ osstest<br />
Sound subsystem and version: OSS 4.0 (build 1004/200707062145) (0&#215;00040002)<br />
Platform: SunOS/i86pc 5.10 Generic_118855-33</em></p>
<p><em>*** Scanning sound adapter #-1 ***<br />
/dev/oss/hdaudio0/pcm0 (audio engine 0): nVidia HD Audio play-front output<br />
Note! Device is in use (by PID 0/VMIX) but will try anyway<br />
- Performing audio playback test&#8230;<br />
OK  OK  OK<br />
/dev/oss/hdaudio0/pcm1 (audio engine 1): nVidia HD Audio play-side output<br />
- Performing audio playback test&#8230;<br />
OK  OK  OK<br />
/dev/oss/hdaudio0/pcm2 (audio engine 2): nVidia HD Audio play-center/LFE output<br />
- Performing audio playback test&#8230;<br />
OK  OK  OK<br />
/dev/oss/hdaudio0/spdout0 (audio engine 3): nVidia HD Audio spdif output<br />
- Performing audio playback test&#8230;<br />
OK  OK  OK<br />
/dev/oss/hdaudio0/pcmin0 (audio engine 4): nVidia HD Audio record input<br />
- Skipping input only device</em></p>
<p><em>*** All tests completed OK ***</em></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.prestonlee.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.prestonlee.com/2007/08/17/solaris-10-x64-get-your-sound-card-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X Ruby Troubleshooting: &quot;command not found: dot&quot;</title>
		<link>http://www.prestonlee.com/2007/04/26/os-x-ruby-troubleshooting-command-not-found-dot/</link>
		<comments>http://www.prestonlee.com/2007/04/26/os-x-ruby-troubleshooting-command-not-found-dot/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 20:59:39 +0000</pubDate>
		<dc:creator>preston.lee</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[graphviz]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.prestonlee.com/archives/115</guid>
		<description><![CDATA[If you&#8217;re trying to run rdoc but are getting errors like.. Generating HTML&#8230; Diagrams: ./opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27: command not found: dot -Tismap dot/f_0.dot ./opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27: command not found: dot -Tismap dot/f_1.dot ..the package you need to install is called graphviz. You can install it using Darwin Ports on OS X like so.. sudo port install graphviz]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re trying to run rdoc but are getting errors like..</p>
<p><strong>Generating HTML&#8230;<br />
Diagrams: ./opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27: command not found: dot -Tismap dot/f_0.dot<br />
./opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27: command not found: dot -Tismap dot/f_1.dot</strong></p>
<p>..the package you need to install is called <a href="http://www.graphviz.org/">graphviz</a>. You can install it using <a href="http://darwinports.com/">Darwin Ports</a> on OS X like so..</p>
<p><em> sudo port install graphviz<br />
</em></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.prestonlee.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.prestonlee.com/2007/04/26/os-x-ruby-troubleshooting-command-not-found-dot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
