bazzar has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I moved my perl tree from "C:\My Programs" to "C:\"
After hacking the Windows registry and changing references to the old location in the files in the perl base dir
I've got perl working again
However, I cannot get CPAN / nmake to install modules
===== Example =====
CPAN.pm: Going to build A/AN/ANDK/CPAN-1.76.tar.gz Checking if your kit is complete... Looks good Error: Unable to locate installed Perl libraries or Perl source code. .... .... (You get this message, because MakeMaker could not find "C:\<b>My Prog +rams</b>\Perl\lib\CORE\perl.h") # Looks like your test died before it could output anything. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install
====================
If I do a :
C:\WINDOWS>perl -V<br> Summary of my perl5 (revision 5 version 6 subversion 1) configuration: +<br> Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thr +ead<br> .....<br> .....<br> .....<br> .....<br> Linker and Libraries:<br> ld='link', ldflags ='-nologo -nodefaultlib -release -libpath:"C:\ +<b>My Programs</b>\Perl\lib\CORE" -machine:x86'<br> libpth="C:\<b>My Programs</b>\Perl\lib\CORE"<br> libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib + comdlg32 .lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uui +d.lib wsoc k32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt. +lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool +.lib comd lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib + uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msv +crt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '<br> cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -l +ibpath:"C:\<b>My Programs</b>\Perl\lib\CORE" -machine:x86'

===========================
How can I edit the

linker -loadpath
libries -libpth
dynamic linking -libpath

to remove references to "My Programs"?
Any pointers would be much appreciated, Barry Keeling (barry@foxbat.demon.co.uk)

20040212 Edit by Corion: Added code tags around program output

Replies are listed 'Best First'.
Re: MakeMaker looking in the wrong place
by PodMaster (Abbot) on Feb 12, 2004 at 23:20 UTC
    Try `perl -h' to see where the -V info comes from. Then edit the file mentioned :)

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.