|
Hi,
I'm a person more familiar with the *X world and have been trying to do some work on MS Windows.
My machine also has Cygwin installed and I have developement tools installed.
I have a perl script which works just fine when run from a 'command prompt' window. However, I now have occasion to use the 'Encode' perl module and so I've turned to CPAN.
The problem I have is probably more related to CPAN setup.
I have installed the module successfully using a cygwin shell, and it runs successfully from the shell, but it fails when run from a 'command prompt' :
C:\cygwin\home\max>perl test.pl
Can't locate Encode.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.
If I print out @INC and try to add the paths printed from the script run in a shell to try and add to @INC (in the script) in the hope that it will have the same paths when run in the 'command prompt'; it doesn't work - I still get the above message.
Thinking the cygwin modules are somehow different to the windows ones, I also tried to add the Encode module using "perl -MCPAN -e 'install Encode'" from the command prompt, but it has a problem with the make command, for example :
Makefile:295: *** target pattern contains no `%'. Stop.
c:\cygwin\bin\make.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
I'm not sure how best to move forward with finding a solution to this problem. Can someone point me in the right direction?
Thanks.
Max.
|