How to find out which version of mod_perl is installed?

To debug my perl code, I need to find out which version of mod_perl installed.

How to find out the version of mod_perl that I installed?

+7
source share
2 answers

Try:

 perl -Mmod_perl\ 999 

If this does not work, try:

 perl -Mmod_perl2\ 999 

The first check for mod_perl, version 999. Since this does not exist, it displays the actual version that you installed, or an error message that cannot be found in @INC. The second does the same, but for mod_perl2.

Example output for me:

> perl -Mmod_perl2 \ 999

Version required

mod_perl2 version 999 is only version 2.000005. BEGIN failed - compilation canceled.

+7
source

Generally:

 perl -Mmod_perl -E 'say $mod_perl::VERSION' 
+5
source

All Articles