<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Super fast IP to lat/lng in Rails &#8211; Part 2</title>
	<atom:link href="http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/</link>
	<description>The guys behind LivingSocial</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:58:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-125</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-125</guid>
		<description>I tried to download and install the gem and got this:
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (RuntimeError)
    Error instaling geoip_city-0.1.gem:
        ERROR: Failed to build gem native extension.

ruby extconf.rb install geoip_city-0.1.gem
checking for GeoIP_record_by_ipnum() in -lGeoIP... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby
        --with-geoip-dir
        --without-geoip-dir
        --with-geoip-include
        --without-geoip-include=${geoip-dir}/include
        --with-geoip-lib
        --without-geoip-lib=${geoip-dir}/lib
        --with-GeoIPlib
        --without-GeoIPlib


Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/geoip_city-0.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/geoip_city-0.1/gem_make.out</description>
		<content:encoded><![CDATA[<p>I tried to download and install the gem and got this:<br />
Building native extensions.  This could take a while&#8230;<br />
ERROR:  While executing gem &#8230; (RuntimeError)<br />
    Error instaling geoip_city-0.1.gem:<br />
        ERROR: Failed to build gem native extension.</p>
<p>ruby extconf.rb install geoip_city-0.1.gem<br />
checking for GeoIP_record_by_ipnum() in -lGeoIP&#8230; no<br />
*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers.  Check the mkmf.log file for more<br />
details.  You may need configuration options.</p>
<p>Provided configuration options:<br />
        &#8211;with-opt-dir<br />
        &#8211;without-opt-dir<br />
        &#8211;with-opt-include<br />
        &#8211;without-opt-include=${opt-dir}/include<br />
        &#8211;with-opt-lib<br />
        &#8211;without-opt-lib=${opt-dir}/lib<br />
        &#8211;with-make-prog<br />
        &#8211;without-make-prog<br />
        &#8211;srcdir=.<br />
        &#8211;curdir<br />
        &#8211;ruby=/usr/local/bin/ruby<br />
        &#8211;with-geoip-dir<br />
        &#8211;without-geoip-dir<br />
        &#8211;with-geoip-include<br />
        &#8211;without-geoip-include=${geoip-dir}/include<br />
        &#8211;with-geoip-lib<br />
        &#8211;without-geoip-lib=${geoip-dir}/lib<br />
        &#8211;with-GeoIPlib<br />
        &#8211;without-GeoIPlib</p>
<p>Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/geoip_city-0.1 for inspection.<br />
Results logged to /usr/local/lib/ruby/gems/1.8/gems/geoip_city-0.1/gem_make.out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Batalion</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-126</link>
		<dc:creator>Aaron Batalion</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-126</guid>
		<description>Brian,

Good catch.  I already had the GeoIP C library installed.  I&#039;ve since updated the install instructions above to include that.

Thanks.
Aaron</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>Good catch.  I already had the GeoIP C library installed.  I&#8217;ve since updated the install instructions above to include that.</p>
<p>Thanks.<br />
Aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muntasim</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-127</link>
		<dc:creator>Muntasim</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-127</guid>
		<description>Hi, I am in trouble to install GeoIP C library in windows...
Please help..

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi, I am in trouble to install GeoIP C library in windows&#8230;<br />
Please help..</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aman Gupta</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-128</link>
		<dc:creator>Aman Gupta</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-128</guid>
		<description>Does GeoIPCity return any city information?

irb(main):008:0&gt; g.look_up(&#039;99.136.101.165&#039;)
=&gt; {:country_name=&gt;&quot;United States&quot;, :latitude=&gt;38.0, :longitude=&gt;-97.0, :country_code=&gt;&quot;US&quot;, :country_code3=&gt;&quot;USA&quot;}</description>
		<content:encoded><![CDATA[<p>Does GeoIPCity return any city information?</p>
<p>irb(main):008:0&gt; g.look_up(&#8216;99.136.101.165&#8242;)<br />
=&gt; {:country_name=&gt;&quot;United States&quot;, :latitude=&gt;38.0, :longitude=&gt;-97.0, :country_code=&gt;&quot;US&quot;, :country_code3=&gt;&quot;USA&quot;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philippe April</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-129</link>
		<dc:creator>Philippe April</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-129</guid>
		<description>That&#039;s great, you saved me a lot of time, and you even did the benchmarks!</description>
		<content:encoded><![CDATA[<p>That&#8217;s great, you saved me a lot of time, and you even did the benchmarks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Barek</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-130</link>
		<dc:creator>Abdul Barek</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-130</guid>
		<description>Hi all, I wanna use geo_ip for windows.Please let me know if anybody kind on me.I did it for linux server but can not use for windows(XP).Please help me ASAP

Thanks</description>
		<content:encoded><![CDATA[<p>Hi all, I wanna use geo_ip for windows.Please let me know if anybody kind on me.I did it for linux server but can not use for windows(XP).Please help me ASAP</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Y</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-131</link>
		<dc:creator>Tom Y</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-131</guid>
		<description>Hi, I installed this plugin step by step, and when I run require &#039;geoip_city&#039;, I got following error msg:

LoadError: libGeoIP.so.1: cannot open shared object file: No such file or directory - /var/lib/gems/1.8/gems/geoip_city-0.1/./geoip_city.so

Can anyone help me with this? Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi, I installed this plugin step by step, and when I run require &#8216;geoip_city&#8217;, I got following error msg:</p>
<p>LoadError: libGeoIP.so.1: cannot open shared object file: No such file or directory &#8211; /var/lib/gems/1.8/gems/geoip_city-0.1/./geoip_city.so</p>
<p>Can anyone help me with this? Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amjith PS</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-132</link>
		<dc:creator>Amjith PS</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-132</guid>
		<description>Hi,

Can you fix this error,

I have error in

--&gt;require &#039;geoip_city&#039;

Its missing this file., with error &quot;no such file to load -- geoip_city&quot;

Can anyone tel me where this file is located?

Thanks in advance.

Amjith PS</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can you fix this error,</p>
<p>I have error in</p>
<p>&#8211;&gt;require &#8216;geoip_city&#8217;</p>
<p>Its missing this file., with error &quot;no such file to load &#8212; geoip_city&quot;</p>
<p>Can anyone tel me where this file is located?</p>
<p>Thanks in advance.</p>
<p>Amjith PS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JD</title>
		<link>http://blog.hungrymachine.com/2007/10/31/super-fast-ip-to-lat-lng-in-rails-part-2/comment-page-1/#comment-133</link>
		<dc:creator>JD</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:04:00 +0000</pubDate>
		<guid isPermaLink="false">blog.hungrymachine.com/2008/11/13/super-fast-ip-to-lat-lng-in-rails-part-2#comment-133</guid>
		<description>Good find on the geoip_city gem aaron, it really is ridiculously faster (and getting a Hash back is a lot nicer also). From their README the default is to load the whole binary db into RAM, which will use at least 27MB of it (I haven&#039;t tested how much it actually uses). But even passing the :filesystem parameter it seems a good 20x faster than the regular geoip gem.</description>
		<content:encoded><![CDATA[<p>Good find on the geoip_city gem aaron, it really is ridiculously faster (and getting a Hash back is a lot nicer also). From their README the default is to load the whole binary db into RAM, which will use at least 27MB of it (I haven&#8217;t tested how much it actually uses). But even passing the :filesystem parameter it seems a good 20x faster than the regular geoip gem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
