buildcc - build an executable with shared modules from a perl script
buildcc -o hello hello.pl # pass thru perlcc buildcc -m app.pl # detects dependencies for app.pl, write them to app.mak, # and compile all into shared modules and app buildcc -l -m app.pl # use local ~/.perl5/pcc/ path buildcc -l=~/pcc -m app.pl # use local ~/pcc/ path
buildcc is a perlcc -m frontend to detect and maintain perlcc compiled perl modules as compiled shared libraries. It creates a .mak file for the compiled script with all dependencies.
perlcc -m
-l uses a local path for all compiled shared modules. Otherwise it checks if 'sitearch'/pcc/ is writable and puts/searches the modules there if so.
-l
All other options are passed thru to perlcc verbatim.
Create a .mak for the module depencencies, and create the target.
Use the given local path as prefix for the created shared modules.
To install B::C, copy and paste the appropriate command in to your terminal.
cpanm
cpanm B::C
CPAN shell
perl -MCPAN -e shell install B::C
For more information on module installation, please visit the detailed CPAN module installation guide.