http://qs321.pair.com?node_id=415545


in reply to Re^3: Zip Code Module?
in thread Zip Code Module?

I'm really sorry about this. Unlike sgifford, I have actually never used this module. I guess I assumed that it would be straight forward to install.

I figured out it's not actually.

I would have attempted to recreate your exact environment so as to figure out what to do, but as I don't have access to cPanel, I used CPAN. It didn't install cleanly and failed most of it's make tests. My solution was to find the build directory made by CPAN, download said data, and run make test and make install by hand.

That probably wasn't too helpful, so bellow is *actually* what I did:

sudo cpan install Geo::PostalCode lwp-download http://tjmather.com/Geo-PostalCode_19991101.txt.gz gunzip Geo-PostalCode_19991101.txt.gz cd ~/.cpan/build/Geo-PostalCode-0.06/ sudo cp ~/Geo-PostalCode_19991101.txt ./ sudo ./load.pl sudo make test sudo make install perl -e 'use Geo::PostalCode'

That got it to install and pass the two sets of test code included with the module. The load.pl script seems to take the downloaded textfile and separate it out into three db files. I also tried downloading the first source I gave you, and although it works, it gives you one DBase db, and I'm not really sure how you would use it ( thought you probably could ).

Hopefully *this* time I've acutally been some help to you.