[OPEN-ILS-DEV] Location of perl modules

Dan Scott denials at gmail.com
Wed Oct 3 19:44:31 EDT 2007


On 03/10/2007, Noel Goodman <goldenchild_gt at yahoo.com> wrote:
> Hey all,
> I would have mentioned not so long ago that I'm carrying out the evergreen
> on Gentoo installation on two systems. My present system suffered from two
> bad installations because I wasn't clear on what services were needed during
> installation  for the Gentoo system to function properly.
> Where on the file system are the perl modules and their dependencies stored
> after download? I want to copy them from the working system so I won't have
> to go through the tedious download process.
>
> thanks,
> Noel

Hi Noel:

When you use the CPAN module to install Perl modules, CPAN typically
places the source packages of the Perl modules in a .cpan directory
(note the leading period!) in the home directory of the user with
which you issued the perl -MCPAN -e shell; command.

If you were following the Gentoo install instructions closely, this
directory would exist under the user "opensrf" home directory -- so
"ls -a /home/opensrf" should show the .cpan directory, and under that
you should be able to find "build" and "sources" directories (the
latter contains all of the source packages you have downloaded), with
a Metadata file describing all of the packages on CPAN.

But maybe this isn't what you want. If you just want to copy the final
results of building all of the Perl modules and their associated
libraries / man pages, etc, the Gentoo install instructions will place
all of these in your /openils/ directory structure (e.g.
/openils/lib/perl5 will contain all of the Perl modules and shared
libraries required by those Perl modules; /openils/share/man will
contain any man pages generated for the Perl modules; /openils/bin
will contain any Perl binaries that were generated as a result of
installing the Perl modules (such as "cpan", "shasum", etc).

So assuming that you followed the Gentoo install instructions closely,
and that your old machine and new machine are the same architectures,
your easiest option might be to simply copy the contents of the
/openils directory from the old machine to the new machine and rebuild
OpenSRF and Evergreen on the new machine.

I hope this helps!

-- 
Dan Scott
Laurentian University


More information about the Open-ils-dev mailing list