SPVM::Document::EnvironmentVariables - Environment Variables
This document explains environment variables.
If an environment variable is an empty string, it is treated as an undefined value.
A directory for files generated by the compiler and linker.
C source codes for precompilation, dynamic link libraries and object files are stored into this directory.
These files are output when attempting to build a module containing methods with the native attribute or the precompile attribute.
native
precompile
If these files are output and the directory given by the SPVM_BUILD_DIR environment variable does not exist, an exception is thrown. Examples:
SPVM_BUILD_DIR
# bash export SPVM_BUILD_DIR=~/.spvm_build # csh setenv SPVM_BUILD_DIR ~/.spvm_build
If the SPVM_CC_DEBUG environement variable is a true value of Perl, debug messages and messages from the SPVM native class compiler and linker are printed to stderr.
SPVM_CC_DEBUG
If the SPVM_CC_QUIET environement variable is a true value of Perl, messages the SPVM native class compiler and linker are not printed to stderr.
SPVM_CC_QUIET
If it is defined and a false value of Perl, the messages are printed.
This setting has a higher priority than SPVM::Builder::Config#quiet field.
If the SPVM_CC_FORCE environement variable is a true value of Perl, the compilation and link by the SPVM native class compiler and linker are forced.
SPVM_CC_FORCE
This setting has a higher priority than SPVM::Builder::Config#force field.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.