Put Tail.pm in:
<ActivePerl Install Directory>\site\lib\File
For example:
copy Tail.pm C:\perl\site\lib\File
Main Topics
Browse All TopicsI'm having a terrible time with File/Tail.pm with ActivePerl 5.8.8 Build 820. I contacted ActiveState but they haven't responded yet.
I get this error:
D:\>C:\perl\bin\ppm install File::Tail
Downloading ActiveState Package Repository packlist...failed 500 Can't connect t
o ppm4.activestate.com:80 (Bad hostname 'ppm4.activestate.com')
ppm install failed: Can't find any package that provide File::Tail
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS\system32>C:
C:\WINDOWS\system32>cd C:\File-Tail-0.99.3\t
C:\File-Tail-0.99.3\t>test
Can't locate File/Tail.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .
) at C:\File-Tail-0.99.3\t\test
BEGIN failed--compilation aborted at C:\File-Tail-0.99.3\t\test
Where do I put the File::Tail modules, what folder, its own folder in C: or inside the Perl folder somewhere, ....Its driving me nuts.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I tried copying the file as gripe suggested, but a simple test script using the code sample from the module's documentation just hung.
According to Activestate's module status page, the module "failed" their tests, so I doubt that building from source as teraplane suggests would have better results, but you should try it anyway.
http://ppm.activestate.com
D:\cpanrun\build\5-8-0\bin
Failed 4/6 teFailed 3/3 test scripts, 0.00% okay. 13/15 subtests failed, 13.33% okay.
NMAKE : fatal error U1077: 'D:\cpanrun\build\5-8-0\bi
Stop.
Stat Wstat Total Fail Failed List of Failed
--------------------------
t\10open.t 6 4 66.67% 3-6
t\20tail.t 7 7 100.00% 1-7
t\30name_change.t 2 2 100.00% 1-2
If you look at the CPAN testers results, this module has ALWAYS failed under Windows, so there is probably some bug that prevents it working on this OS. http://cpantesters.perl.or
Perhaps contact the author to point this out?
I use File::Tail in windows with no problems whatsover. (It even works on UNC shares) I originally installed the ppm from:
http://theoryx5.uwinnipeg.
You can install it with ppm directly from there with:
ppm install http://theoryx5.uwinnipeg.
Just to be clear, all the ppm does is copy Tail.pm where I said above. (It also installs an HTML version of the POD and updates the .packlist, but that's irrelevant)
So, if your example is 'hanging', it's likely that something else is going on such as a buffering. (Either internal buffering in File::Tail or filesystem buffering) How are you testing the example? (The example works for me out of the box, except i have to generate a significant amount of output for it to begin outputting anything)
About the can't connect... are you behind a firewall? If so, you need to set some environment variables. See here for details:
http://aspn.activestate.co
Business Accounts
Answer for Membership
by: teraplanePosted on 2007-01-31 at 18:49:16ID: 18441578
You need to be able to connect first, not sure why it isn't connecting.
rabnar/Fil e-Tail-0.9 9.3/
com/downlo ad/vc15/pa tch/1.52/w 95/ en-us/n make15.exe
As a work around, you can get module from CPAN and install manually
http://search.cpan.org/~mg
To build this module, enter
perl Makefile.PL
make
make test
make install
but for windows, you need to get a copy of namke.exe http://download.microsoft.
and subustitute nmake for make above