Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^4: Zip Code Module?

by sifen (Beadle)
on Dec 17, 2004 at 03:56 UTC ( #415545=note: print w/replies, xml ) Need Help??

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 gunzip Geo-PostalCode_19991101.txt.gz cd ~/.cpan/build/Geo-PostalCode-0.06/ sudo cp ~/Geo-PostalCode_19991101.txt ./ sudo ./ 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 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://415545]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2021-03-04 13:36 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (104 votes). Check out past polls.