Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.


In reply to Re^4: Zip Code Module? by sifen
in thread Zip Code Module? by powerhouse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-29 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found