Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lcc-win32 'c' compiler for perl modules

Status
Not open for further replies.

tchatzi

Technical User
Joined
Dec 15, 2004
Messages
744
Location
GR
i just download this lcc-win32, a c compiler,
and i was wondering if anyone knows how would i be able to compile perl modules downloaded from cpan.
I'm asking that because i read in cpan that to install some modules that have files like *.xs, *.cpp, *.h, before you install them you have to compile them with a c compiler,
so i download lcc-win32.
But do i have to compile the files of a module one by one, or all together like one project,
and then nmake them?

I'm sorry if i stuck with installing modules manually, but i want to learn everything considering perl, and c in the future.
 
Ensure that the lcc-win32 compiler is set in your environment variable. Depending on your version of Windows this is either done via the AUTOEXE.bat script or through the registery (right click on your 'My Computer' icon on the desktop and click the 'Advanced' tab, where you can set environment variables directly).

If you normally compile modules by hand, i.e. the 'perl Makefile.PL;nmake;nmake test;nmake install' scenario, then that is enough. However, if you use 'cpan', or even 'cpanp', you will need to rerun the configuration to pick up the new compiler.

Barbie
Leader of Birmingham Perl Mongers
 
Code:
cpan>o conf [init]


cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top