Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: how to install perlmodules in windowsXP

by veeruch (Sexton)
on Mar 06, 2007 at 05:39 UTC ( [id://603352]=note: print w/replies, xml ) Need Help??


in reply to Re^3: how to install perlmodules in windowsXP
in thread how to install perlmodules in windowsXP

hi Rob,
I have added the path mingw\bin.
C:\Perl\lib\Config.pm is also there.
but the same error showing
dmake: Error: -- `C:\Perl\libConfig.pm' not found, and can't be made

insted of C:\Perl\lib\Config.pm
  • Comment on Re^4: how to install perlmodules in windowsXP

Replies are listed 'Best First'.
Re^5: how to install perlmodules in windowsXP
by syphilis (Archbishop) on Mar 06, 2007 at 09:24 UTC
    My apologies - I did not read your post carefully enough and failed to notice the missing '\'. I've seen this problem before ... damn, I can't recall where it comes from, and I don't have time to investigate right now .... is it a bug in Extutils::MakeMaker ? or a bug in the ActivePerl configuration ? I think ExtUtils::MakeMaker might be the culprit. What is revealed when you run:
    perl -MExtUtils::MakeMaker -e "print $ExtUtils::MakeMaker::VERSION"
    What's the build number of your Active Perl ? ('perl -v' will tell you, if you're unsure.)

    In the Makefile that was generated when you ran 'perl Makefile.PL', check that you have something like:
    # --- MakeMaker constants section: AR_STATIC_ARGS = cr DIRFILESEP = \\ DFSEP = $(DIRFILESEP)
    What do you have for "DIRFILESEP" ? Iirc, that's where the problem lies. I'll try to dig up more tomorrow, when I have time. In the meantime, hopefully someone else can fill in the gaps :-)

    Cheers,
    Rob
      Hi Rob,
      if iam giving,
      perl -MExtUtils::MakeMaker -e "print $ExtUtils::MakeMaker::VERSION"
      out put is:
      Set up gcc environment - 3.4.2 (mingw-special) 6.30
      perl -v
      This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 25 registered patches, see perl -V for more detail)
      Copyright 1987-2006, Larry Wall
      Binary build 817 257965 provided by ActiveState http://www.ActiveState.com Built Mar 20 2006 17:54:25
      Makefile Information

      AR_STATIC_ARGS = cr
      DIRFILESEP = ^\
      DFSEP = $(DIRFILESEP)
      NAME = Net::Telnet
      NAME_SYM = Net_Telnet
      VERSION = 3.03
      VERSION_MACRO = VERSION
      VERSION_SYM = 3_03
      DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
      XS_VERSION = 3.03
      XS_VERSION_MACRO = XS_VERSION
      XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
      INST_ARCHLIB = blib\arch
        In your perl/lib/ExtUtils/MM_Win32.pm you should have:
        sub init_DIRFILESEP { my($self) = shift; # The ^ makes sure its not interpreted as an escape in nmake $self->{DIRFILESEP} = $NMAKE ? '^\\' : $DMAKE ? '\\\\' : '\\'; }
        Change the code so that it is as above, and see if that fixes things. (Remove the existing Makefile and start with 'perl Makefile.PL' again.) The fact that you have '^\' leads me to believe that ActivePerl is probably finding 'nmake' - and writing a Makefile that is compatible with 'nmake', not 'dmake'. ActivePerl will accept either - it will wrtite a Makefile suited to the one that it finds first when searching the path environment variable. Both 'nmake' and 'dmake' should work fine with the MinGW compiler on ActiveState perl, so it shouldn't really matter which is found first. (As I've mentioned elsewhere, my personal preference is 'dmake' - but feel free to stick with 'nmake' if you like.) But if ActivePerl has written a Makefile to be used with 'nmake' then you can't build using 'dmake' - and if the Makefile has been written for use with 'dmake' then you can't use 'nmake'.

        To verify precisely which flavour of make is being found, run:
        perl -V:make
        That will tell you which 'make' utility you need to use.
        Let us know if that still doesn't work.

        Cheers,
        Rob Update:Rewritten .... to be hopefully a little clearer and more to the point

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found