Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 8 of 8
  1. #1
    svenrg is offline Registered User
    Join Date
    Sep 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    GotMail Perl script

    Hi everyone.

    I'm pretty new to all the unix stuff so the solution to my problem might be easy. I'm trying to use a Perl script called GotMail to download messages from my hotmail account.

    When I try to run the script using this command:
    perl gotmail

    I get this error message:
    Can't locate URI/Escape.pm in @INC (@INC contains: /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at gotmail line 31.
    BEGIN failed--compilation aborted at gotmail line 31.

    You can get the script here:
    http://ssl.usu.edu/paul/gotmail/

    Thanks

  2. #2
    jwalk76 is offline Registered User
    Join Date
    Oct 2002
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the perl script is trying to use a module called URI::Escape which doesn't exist in your perl include path (the array @INC contains all the directories in the include path). you probably need to install this module...

  3. #3
    svenrg is offline Registered User
    Join Date
    Sep 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's just that the GotMail homepage says the script needs only Curl and Perl to run. Is the OS X (10.2.2) default installation of Perl not a full one?

    Thanks

  4. #4
    jwalk76 is offline Registered User
    Join Date
    Oct 2002
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the default install of perl does not contain all available modules. you need to download URI::Escape yourself.

    in your terminal, as superuser, type:

    perl -MCPAN -e shell

    you will be prompted to answer a few questions. hitting enter picks the default answer, and this should be fine.

    once you get a cpan> prompt, type:

    install URI::Escape

    that should do it.

  5. #5
    svenrg is offline Registered User
    Join Date
    Sep 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmmm....

    It didnt work...

    When I try to install the module, this is what I get in the end:

    Checking if your kit is complete...
    Looks good
    Warning: prerequisite MIME::Base64 failed to load: Can't locate MIME/Base64.pm in @INC (@INC contains: /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at (eval 4) line 3.

    Error: Unable to locate installed Perl libraries or Perl source code.

    It is recommended that you install perl in a standard location before
    building extensions. Some precompiled versions of perl do not contain
    these header files, so you cannot build extensions. In such a case,
    please build and install your perl from a fresh perl distribution. It
    usually solves this kind of problem.

    (You get this message, because MakeMaker could not find "/System/Library/Perl/darwin/CORE/perl.h")
    Running make test
    Make had some problems, maybe interrupted? Won't test
    Running make install
    Make had some problems, maybe interrupted? Won't install

  6. #6
    jwalk76 is offline Registered User
    Join Date
    Oct 2002
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i don't know what to say. i'm using OS X 10.1.5 with the default installation of Perl, and everything worked for me. i'm not familiar with Jaguar, but i don't think it would ship with a less complete version of Perl. did you install the Developer's Tools?

  7. #7
    svenrg is offline Registered User
    Join Date
    Sep 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, I have not installed the developer tools.

  8. #8
    jwalk76 is offline Registered User
    Join Date
    Oct 2002
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    then you probably need to, and try the previous instructions again.

 

 

Similar Threads

  1. Perl: How do I "Require" or "Include" another perl script file?
    By Jasoco in forum Software Programming & Web Scripting
    Replies: 11
    Last Post: March 7th, 2009, 02:20 PM
  2. Example Perl script - FileMaker to MySQL migration generated by FmPro Migrator
    By dsimpson in forum Software Programming & Web Scripting
    Replies: 0
    Last Post: April 18th, 2003, 03:24 PM
  3. silly perl script
    By vertigo in forum Software Programming & Web Scripting
    Replies: 1
    Last Post: August 9th, 2002, 08:53 PM
  4. MacOSX.com free perl script assoc.
    By xoot in forum Bob's Place
    Replies: 22
    Last Post: May 16th, 2002, 05:06 PM
  5. HOW TO STOP SPAM -- join the fight!
    By GadgetLover in forum Apple News, Rumors & Discussion
    Replies: 11
    Last Post: April 11th, 2002, 02:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •