kaj zna ruby::na::rails narediti za vas

  • sprogramira program v ruby ali objective-c
  • naredi kičasto spletišče namesto vas
  • svetuje pri razvoju in nameščanju Rails spletišč
  • sestavi namizno aplikacijo v Cocoa
  • izdela kičasto iPhone aplikacijo
  • razmišlja namesto vas, kadar rabite tehnološke možgane

how to install geoip_city gem on leopard

dan: 235, teden: 33 [22.08.08]

had some corners installing this gem on OSX 10.5.4.

first get geoip c API

then do this to install the api:

./configure
make
make check
make install

then install the gem like this:

install the GeoCity C library

tar xvfz GeoIP.tar.gz 
cd GeoIP
./configure
make && sudo make install

download the GeoLite City database

gzip -d GeoLiteCity.dat.gz

copy it into share:

/usr/local/share/GeoIP/GeoLiteCity.dat

install the geoip_city gem

sudo gem install geoip_city

if it fails, saying you have no GeoIP library installed… try this:

git clone git://github.com/ry/geoip-city.git 
cd geoip_city
export ARCHFLAGS="-arch i386" 
rake

don’t care for the failing tests but don’t forget to export the archflags and:

make install

this will install the C bindings in proper place

/usr/bin/install -c -m 0755 geoip_city.bundle /Library/Ruby/Site/1.8/universal-darwin9.0

now you can go and require ‘geoip_city’

Malo se pohecaj al pa ne