Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Not able to compile perl modules in windows

by Corion (Pope)
on Oct 01, 2005 at 12:14 UTC ( #496631=note: print w/ replies, xml ) Need Help??


in reply to Not able to compile perl modules in windows

Hello and welcome!

First a side note - please write full english sentences and words and try to use proper capitalization on words, b'coz its hrd to udst oth'rwz.

To compile Perl modules for Perl on Win32, you need to have the same compiler that was used to compile your Perl. Usually this means MSVC, at least if you're using ActiveState Perl. You can get half a hint to your compiler from running

perl -V:cc

This will tell you what program was used to compile your perl:

  • cl means cl.exe, the C compiler of MSVC
  • cc likely means cc.exe from the Cygwin port or the Msys/MingW port - but if you have one of these perls, likely the suitable C compiler is installed anyway.

If you have the compiler, you also must set up $ENV{INC} and $ENV{LIB} to the correct values. With MSVC installed, this is the matter of locating and then running vcvars32.cmd in the command window you want to use.

After that, the errors should disappear.


Comment on Re: Not able to compile perl modules in windows
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-09-22 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls