Compiling Perl Modules

Posted By: ziphir ()
Posted On: 2006-Jun-12 09:19

Hi,
I want to compile perl modules specifically
database access to allow a web based perl
system to access mysql / msql.

Can Visual C 6.00 provide the compiler
and linker ( CL ) that will handle this ?

Thanks

Z


Posted By: Prowler (Staff)
Posted On: 2006-Jun-12 09:37

You head to CPAN and select the modules you need. Then download it to your server and issue something like this after the download:

tar -xvzf module.tgz

And then compile the module like so :

perl Makefile.PL
make
make test
make install





Posted By: ziphir ()
Posted On: 2006-Jun-12 18:14

Hi Prowler,
THanks for your prompt reply.

Yes your response was correct. What I was refering to was
when you do the perl Makefile.PL and make some modules
instead of having a pure perl implementation for that
individual module have preferred to code the module in C.

This requires that each install and or upgrade go thru
the compile and link procedure and finally using the makefile
"install" command place the (C compiled) module in the
appropriate subdirectory and perhaps update (append to )
various global parameters in the perl installation.

If I was on Unix of some kind a compiler would be no issue
however with the current platform being Windows
and the variety of compilers available some are able
to initiate the compile and link (CL) and some are not.
This is due to technical compatibility issues not
the ability to initiate command line command and then link.
As far as I now all Microsoft compilers can do command
line compile and link.

What I was wondering was had anyone used these compilers
and which ones did they have success with ?

Thanks,
Z