Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Install a perl module to the main perl lib dir

Reply
Thread Tools

Install a perl module to the main perl lib dir

 
 
Thomas Steinbach
Guest
Posts: n/a
 
      02-13-2009
Hello NG,

if I install new modules with the cpan
shell (windows), the modules will be installed
and stored under perldir/site/lib/[MODULE]
and not under perldir/lib/[MODULE] like the "base"
system which was installed after compiling perl
and use dmake install.

But if I look at ActiveStates Layout and
other diestributions, they have additional
modules installed under perldir/lib/[MODULE]
and _NOT_ under perldir/site/lib/[MODULE]

How they are made this? And Why?


Thomas
 
Reply With Quote
 
 
 
 
Larry Gates
Guest
Posts: n/a
 
      02-13-2009
On Fri, 13 Feb 2009 04:52:00 +0100, Thomas Steinbach wrote:

> Hello NG,
>
> if I install new modules with the cpan
> shell (windows), the modules will be installed
> and stored under perldir/site/lib/[MODULE]
> and not under perldir/lib/[MODULE] like the "base"
> system which was installed after compiling perl
> and use dmake install.
>
> But if I look at ActiveStates Layout and
> other diestributions, they have additional
> modules installed under perldir/lib/[MODULE]
> and _NOT_ under perldir/site/lib/[MODULE]
>
> How they are made this? And Why?
>
>
> Thomas


Hello Thomas,

I've been struggling with some of your same questions but achieved a minor
breakthrough tonight.

I downloaded a recognizable, small module (Acme::something) and then
searched for it. I installed a dos window in this "fortunate place."


C:\Perl\site\lib>dir
Volume in drive C has no label.
Volume Serial Number is 942A-AD55

Directory of C:\Perl\site\lib

02/13/2009 01:15 AM <DIR> .
02/13/2009 01:15 AM <DIR> ..
02/13/2009 01:09 AM <DIR> Acme
02/13/2009 01:09 AM <DIR> auto
01/30/2009 10:06 PM <DIR> DateTime
12/29/2008 10:39 PM <DIR> HTML
02/13/2009 01:15 AM 1,425 perl4.lnk
01/23/2007 04:15 PM 31 sitecustomize.pl
2 File(s) 1,456 bytes
6 Dir(s) 66,651,992,064 bytes free

C:\Perl\site\lib>

You don't need perldir; you need the actual dir where activestate is
looking for this stuff. Peace.
--
larry gates

/* This bit of chicanery makes a unary function followed by
a parenthesis into a function with one argument, highest precedence. */
-- Larry Wall in toke.c from the perl source code
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gemspec: How to install a Ruby extension into GEM/lib/SOME_DIR/rather than GEM/lib/ IƱaki Baz Castillo Ruby 1 02-28-2011 03:26 PM
External prog get file from main dir, want file in diff dir Kga Agk Ruby 2 06-29-2009 02:09 PM
Perl MakeMaker - how to force Perl linking with the static C library (libcrt.lib) instead of dynamic C library (msvcrt.lib) Avi Perl Misc 0 04-17-2007 09:20 PM
install_driver(Oracle) failed: Can't load 'C:/Perl/site/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle: load_file:The specified procedure could not be found at C:/Perl/lib/DynaLoader.pm line 230. Feyruz Perl Misc 4 10-14-2005 06:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57