Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

ppm install without creating HTML documentation?

by strat (Canon)
on Apr 20, 2009 at 14:47 UTC ( #758733=perlquestion: print w/replies, xml ) Need Help??
strat has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

Since I need to install a lot of Activestate-Perl-Modules by PPM, I am just writing a little setup script which works fine. Just one problem: it is by far too slow, since I install perl and a lot of modules on a network filesystem. Building html requires lots of time. I searched perlmonks and even google for an answer, but still haven't found what I've been looking for.

Q:\downloads\ppm-modules>ppm install Win32-Env-0.03.ppmx
Unpacking Win32-Env-0.03...done
Generating HTML for Win32-Env-0.03...done
Updating files in site area...done
2 files installed

Generating HTML takes up to 5 minutes per module.

Do you know a way to prevent generation of HTML documentation after installation of each single module with ppm install modulename.ppdx ?

I can create the documentation at the end with something like perl -MActivePerl::DocTools -e "UpdateHTML('wait')"

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8."

Replies are listed 'Best First'.
Re: ppm install without creating HTML documentation?
by ikegami (Pope) on Apr 20, 2009 at 15:16 UTC

    HTML doc generation is controlled by the following lines of ActivePerl::PPM::Client,

    my $install_html = eval { require ActivePerl::DocTools; }; $install_html = $args{install_html} if defined $args{install_html} +;

    Unfortunately, it's called by ActivePerl::PPM::GUI as follows:

    $ppm->install( area => $INSTALL_AREA, packages => \@install_pkgs, run_cb => \&run_cmd, );


    $ppm->install( area => $INSTALL_AREA, packages => \@install_pkgs, run_cb => \&run_cmd, ( exists($ENV{INSTALL_HTML}) ? ( install_html => $ENV{INSTALL_HTML} ) : () ), );

    That could be patched fairly easy.

    perl -i.bak -ple"s/\$ppm->install\(\K/exists(\$ENV{INSTALL_HTML}) ? ( +install_html => \$ENV{INSTALL_HTML} ) : ()," c:\progs\perl5100\lib\Ac +tivePerl\PPM\
Re: ppm install without creating HTML documentation?
by ateague (Monk) on Jan 16, 2015 at 18:47 UTC

    I apologise for necro'ing this thread but for the benefit of those that come after, here is the "proper" way to disable the HTML docs in ActivePerl:

    ppm config install_html 0

    You can also get a list of all the ppm configuration options with the following command:

    C:\Users\DEV>ppm config list ppm config *name* [ *value* ] Get or set various PPM configuration values. The following configuration options might be of interest: arch The architecture of the current database. For internal use +. Don't change this. repo_dbimage If set to '1' look for package.db.gz indexes in repositori +es before looking for the package.xml file. install_html If set to '0' don't generate and install the HTML version +of the documentation for the modules installed. This makes instal +lation considerably faster. gui.* Various settings for the graphical user interface. ppm config list List all configuration options currently set.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://758733]
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-09-26 13:07 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (294 votes). Check out past polls.