Get the ip-to-country.csv cvs database from http://ip-to-country.webhosting.info/node/view/6
and copy it to your home directory.

Type
make
make install


To use:
ip_to_country -i 66.249.72.114



