• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

I've found on my system (RedHat Enterprise AS3) that when using perl Makefile.PL LIB=/my/local/lib, some modules install to /my/local/lib/i386-linux-thread-multi, ie $CPANBASE/$SITEARCH.

setlib.cfg does not add this by default to @localPerlLibPath, instead it adds $CPANBASE/$VER/$SITEARCH. So I think this diff would be helpful:

--- setlib.cfg~ 2006-07-12 14:44:15.000000000 +0100
+++ setlib.cfg  2006-07-21 16:10:25.000000000 +0100
@@ -39,7 +39,7 @@
        require Config;
        my $VER = $Config::Config{version};
        my $SITEARCH = $Config::Config{archname};
-       push @localPerlLibPath, ( "$CPANBASE/arch/", "$CPANBASE/$VER/$SITEARCH/", "$CPANBASE/$VER/", "$CPANBASE/" );
+       push @localPerlLibPath, ( "$CPANBASE/arch/", "$CPANBASE/$VER/$SITEARCH/", "$CPANBASE/$VER/", "$CPANBASE/$SITEARCH/", "$CPANBASE/" );
 }

 # Prepend to @INC, the Perl search path for modules

Are the trailing slashes at the end of each (and $CPANBASE) really needed? The standard @INC doesn't need them, and as things stand you get a double slash between $CPANBASE and the rest of each path.


Done CC

4.1.0 released

KJL

ItemTemplate
Summary Extra CPAN dir needed in setlib.cfg @localPerlLibpath
ReportedBy TWiki:Main.BenJWheeler
Codebase 4.0.4
SVN Range Wed, 12 Jul 2006 build 11001
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 11452
TargetRelease minor
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-01-16 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback