SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem installing fakemail

    Hi guys,

    I downloaded fakemail from lastcraft's site but I'm having trouble installing it.

    - I'm running Windows XP

    - Perl is installed successfully ("hello world" in Perl works fine)

    - I have apparently installed Net::Server::Mail::SMTP although the installation procedure asked me a load of questions I didn't know the answer to and just kept pressing return - including asking me where my tar, gzip and make(file?) programs were, do these even exist on Windows?

    - Trying to run fakemail results in the following error: "Can't locate Net/Server/Mail/SMTP.pm at fakemail line 5" and says the INC path is c:/perl/lib and c:/perl/site/lib

    I coped the SMTP.pm file to the perl/lib directory but it didn't make any difference.

    I am fairly unfamiliar with anything but basic Perl so please be gentle!!

    Any help is greatly appreciated!

  2. #2
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to install the module. If you are using activeperl you should first try using the PPM application to install modules. See the activeperl documentation for "Perl Package Manager" instructions. Or if the module is pure perl you can store the file in a directory and use the lib pragma to add the directory to @INC.

  3. #3
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Kevin, thanks for your answer! I had installed a different version of perl which didn't come with the ppm gui, now I've installed it.

    The only thing is, I can't find the Net::Server::Mail::SMTP class on the list of packages. It is a CPAN module as far as I'm aware, do I need to do anything to PPM to make it find it? Does CPAN have its own repository I need to add?

  4. #4
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can install modules using the CPAN shell with activeperl, but I have never done it. See the Perl Package Manger instructions in the activeperl documentatio, I am pretty sure it expalns how to use CPAN with activeperl. You need dmake or nmake with Windows to make the file and a C compiler if its not pure perl. You can also try adding repositories, once again se the PPM instructions on how to do that. These ones are listed in my activeperl documentation:

    http://theoryx5.uwinnipeg.ca/ppms/package.lst
    http://bioperl.org/DIST
    http://www.roth.net/perl/packages/
    http://www.bribes.org/perl/ppm/

    http://cpan.uwinnipeg.ca/htdocs/faqs/cpan-search.html - Randy Kobes' excellent package search engine, with browsable categories of the packages at the University of Winnipeg's CPAN site, allows you to search for modules and displays the availability of Win32 ppm packages from a number of repositories.

  5. #5
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you the same person posting on perlguru too as "hem"? If so we can keep it over there, if not, nevermind.

  6. #6
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by KevinR View Post
    Are you the same person posting on perlguru too as "hem"? If so we can keep it over there, if not, nevermind.
    nope, not me!

    I've found the module and used nmake to install it. nmake test returned errors though.

    I can start fakemail (with 'perl fakemail --host=localhost etc') but as soon as I open another window to use telnet to that port, fakemail shuts down?! the telnet window says 'connection to host lost' and the fakemail window says 'starting request' then boots me back to the command line.

    has this got something to do with the fact I have to use the command 'perl fakemail' instead of just 'fakemail' to start fakemail? doesn't that mean the path variable isn't set? or is it something else? argh.

    thanks for all your help so far!!

  7. #7
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kevin, thanks so much for your help but I have installed the python version and it's working fine.. now I just need to get PHP to work with it lol

    Thanks again!

  8. #8
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome, good luck with everything.

  9. #9
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually I may have to try the perl version again, as per my other thread the python version seems to use some commands unavailable to windows.

    I downloaded Strawberry Perl, and I actually found the Net::Server::Mail::SMTP download but now I'm getting the erorr when I test Net::Server::Mail::SMTP it fails the tests, and if I use 'force install' it just hangs.

    Any idea why this might be happening? :/

    :/

  10. #10
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it helps, here is the complete output from the terminal:

    Code:
    cpan shell -- CPAN exploration and modules installation (v1.9301)
    ReadLine support enabled
    
    
    cpan> test Net::Server::Mail::SMTP
    Fetching with LWP:
      http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
    Fetching with LWP:
      http://cpan.strawberryperl.com/modules/02packages.details.txt.gz
    Fetching with LWP:
      http://cpan.strawberryperl.com/modules/03modlist.data.gz
    Creating database file ...
    
    Gathering information from index files ...
    Populating database tables ...
    Done!
    Running test for module 'Net::Server::Mail::SMTP'
    Running make for G/GU/GUIMARD/Net-Server-Mail-0.17.tar.gz
    Fetching with LWP:
      http://cpan.strawberryperl.com/authors/id/G/GU/GUIMARD/Net-Server-Mail-0.17.ta
    r.gz
    Fetching with LWP:
      http://cpan.strawberryperl.com/authors/id/G/GU/GUIMARD/CHECKSUMS
    Checksum for C:\strawberry\cpan\sources\authors\id\G\GU\GUIMARD\Net-Server-Mail-
    0.17.tar.gz ok
    Scanning cache C:\strawberry\cpan\build for sizes
    DONE
    
      CPAN.pm: Going to build G/GU/GUIMARD/Net-Server-Mail-0.17.tar.gz
    
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Net::Server::Mail
    cp lib/Net/Server/Mail/LMTP.pm blib\lib\Net\Server\Mail\LMTP.pm
    cp lib/Net/Server/Mail/ESMTP/Extension.pm blib\lib\Net\Server\Mail\ESMTP\Extensi
    on.pm
    cp lib/Net/Server/Mail/ESMTP/PIPELINING.pm blib\lib\Net\Server\Mail\ESMTP\PIPELI
    NING.pm
    cp lib/Net/Server/Mail.pm blib\lib\Net\Server\Mail.pm
    cp lib/Net/Server/Mail/SMTP.pm blib\lib\Net\Server\Mail\SMTP.pm
    cp lib/Net/Server/Mail/ESMTP/XFORWARD.pm blib\lib\Net\Server\Mail\ESMTP\XFORWARD
    .pm
    cp lib/Net/Server/Mail/ESMTP/8BITMIME.pm blib\lib\Net\Server\Mail\ESMTP\8BITMIME
    .pm
    cp lib/Net/Server/Mail/ESMTP.pm blib\lib\Net\Server\Mail\ESMTP.pm
      GUIMARD/Net-Server-Mail-0.17.tar.gz
      C:\strawberry\c\bin\dmake.EXE -- OK
    Running make test
    C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
    'blib\lib', 'blib\arch')" t/*.t
    t/esmtp.... Dubious, test returned 5 (wstat 1280, 0x500)
     Failed 9/10 subtests
    t/lmtp.....ok
    t/smtp..... Dubious, test returned 5 (wstat 1280, 0x500)
     Failed 9/10 subtests
    
    Test Summary Report
    -------------------
    t/esmtp (Wstat: 1280 Tests: 1 Failed: 0)
      Non-zero exit status: 5
      Parse errors: Bad plan.  You planned 10 tests but ran 1.
    t/smtp (Wstat: 1280 Tests: 1 Failed: 0)
      Non-zero exit status: 5
      Parse errors: Bad plan.  You planned 10 tests but ran 1.
    Files=3, Tests=3,  6 wallclock secs ( 0.05 usr +  0.01 sys =  0.06 CPU)
    Result: FAIL
    Failed 2/3 test programs. 0/3 subtests failed.
    dmake.EXE:  Error code 133, while making 'test_dynamic'
      GUIMARD/Net-Server-Mail-0.17.tar.gz
      C:\strawberry\c\bin\dmake.EXE test -- NOT OK
    //hint// to see the cpan-testers results for installing this module, try:
      reports GUIMARD/Net-Server-Mail-0.17.tar.gz
    Failed during this command:
     GUIMARD/Net-Server-Mail-0.17.tar.gz          : make_test NO

  11. #11
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sorry but I don't know what the problem is or even have a good guess. I know one thing though, if you had activeperl installed you probably should completely uninstall it before installing strawberry perl. Because of the way Windows works you can't easily have more than one install of perl.

  12. #12
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did uninstall ActivePerl

    I'm going to try and install some other modules and see if I get the same problem every time or if it's just this one.

  13. #13
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just installed a random other module (Session) from the same author RSOLIV and it worked fine.



    I'm trying previous versions of Mail-Net-Server-SMTP but they're not installing either..


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
  •