|
Posted by A. Sinan Unur on April 15, 2008, 2:35 am
Please log in for more thread options
>
>
>>> Here's where I run into double trouble. I'm having a heckuva
>>> time figuring out what he means with win32::ansiconsole.
...
>> In any case, I am not sure but I am assuming it is an
>> version of the following module:
>>
>> http://search.cpan.org/~jlmorel/Win32-Console-ANSI-1.00/
>
> I don't think it is.
I think it is.
You snipped it but
http://backpan.perl.org/authors/id/J/JL/JLMOREL/
http://backpan.perl.org/authors/id/J/JL/JLMOREL/Win32-ANSIConsole-0.01.tar.gz
shows it to be.
> When I have a script with
> use Win32::ANSIConsole qw/coninit cls/;
> , perl.exe is looking for an absent ANSIConsole.pm that has
> coninit and cls defined.
...
> First of all, Cls is, by your criterion, different from cls, and
> there is no coninit at all.
The API might have changed between Win32::ANSIConsole and
Win32::Console::ANSI. Clearly, the module is available from the
backpan link. If it is a Pure Perl module, you can install it
by unpacking the archive and manually copying the files to
a custom directory and reading
perldoc lib
>> If you cannot find that through ppm, you might want to
>> add the following repositories:
>>
>> Name: uwinnipeg
>> URL: http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.xml
>>
>> Name: trouchelle
>> URL: http://trouchelle.com/ppm10/package.xml
>>
>> Name: Bribes
>> URL: http://www.bribes.org/perl/ppm/package.xml
>
> I looked at these, and they look like:
> Common Gateway Interface Class Lincoln D. Stein (lstein@cshl.org)
Those are repositories to add to ppm.
> This looks like it was expecting a program to read text, not a
> human ambling about, trying to find a module.
Exactly. Add the repositories to ppm.
>> perl -MNet::NNTP -e "print qq"
>> will print the version installed (assuming it is installed).
> 2.24
>
>>> win32::ansiconsole. Without the module for me to look at, I'm
>>> not gonna figure out what, e.g. coninit is.
>>
>> E:\Home\asu1> ppm install Win32::Console::ANSI
>> Downloading Win32-Console-ANSI-1.00...done
>> Unpacking Win32-Console-ANSI-1.00...done
>> Generating HTML for Win32-Console-ANSI-1.00...done
>> Updating files in site area...done
>> 7 files installed
> How do I replicate this process on windows? As it is, a file that
> ends in tar.gz just creates huge problems for me.
Use ppm.
If I understand correctly, right now you are trying to get a program
written by someone else to run on your system. Since clp.misc is not
a support group for random scripts found on the web, you should expect
to either do a considerable amount of work yourself or obtain support
from the author of the script.
After reading the source of the module
http://backpan.perl.org/authors/id/J/JL/JLMOREL/Win32-ANSIConsole-0.01.tar.gz
you can decide if consinit and cls are necessary and look for a way of
replacing that functionality if needed.
Or, as I mentioned above, you can manually unpack the module files
without relying on the automated process which ppm gives you for
modules found in current repositories.
Sinan
--
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/
|