Everything works great except for one thing, which makes me think I didn't complete the installation. Could you please tell me if I didn't install it correctly or if this is a known issue with the installation script.
I installed to the directory D:\app\xampp on my Windows 98 computer, then ran the installation script 'd:\app\xampp\setup_xampp.bat'. When I used CPAN.pm to install new modules from CPAN (as with the command 'perl -MCPAN -e shell') I would get the following error message and the CPAN install would fail:
- Code: Select all
perl -MCPAN -e shell
cpan>install Text::Diff
[..]
Checking if your kit is complete...
Looks good
Warning: prerequisite Algorithm::Diff 0 not found.
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 "C:\xampp\perl\lib\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
cpan>
<end of snip>
I get the same error message when trying the following with various modules which I download by hand (rather than with CPAN.pm):
- Code: Select all
perl Makefile.PL
but in those cases I can install without error by using this more specific command:
- Code: Select all
perl Makefile.PL PERL_SRC=D:\app\xampp\perl
BTW, CPANPLUS has the same issue.
Looking around, it appears that my settings in file D:\app\xampp\perl\lib\Config.pm are wrong for my installation. For example:
- Code: Select all
d:\app\xampp\perl\lib\Config.pm
-------------------------------
archlibexp='c:\xampp\perl\lib'
archname='MSWin32-x86-multi-thread'
installarchlib='c:\xampp\perl\lib'
installprivlib='c:\xampp\perl\lib'
prefix='c:xampp\perl'
privlibexp='c:\xampp\perl\lib'
[..]
I can correct the problem by manually changing all those 'c:\xampp' to 'd:\app\xampp' in Config.pm.
Perl: 5.8.0, ActiveState Build 806, with various updated individual modules
OS: MSWin32
Perl Directory: D:\app\xampp\perl
$CPAN::VERSION 1.61