]> sipb.mit.edu Git - ikiwiki.git/commitdiff
fix PERL5LIB in examples
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 6 May 2008 00:12:06 +0000 (20:12 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 6 May 2008 00:12:06 +0000 (20:12 -0400)
Using `pwd` makes some modules that call cpan recursively succeed to
install

doc/install.mdwn
doc/tips/nearlyfreespeech.mdwn

index 052fc71dc1faf0fb5d3802b7c489b71bc0c47c89..179428cb4865c7ceeeda9aaf952cf2213e8b9a0a 100644 (file)
@@ -38,8 +38,8 @@ If you want to install by hand from the tarball, you should make sure that
 all the perl modules are installed. This is one way to install them, using
 CPAN:
 
-       PERL5LIB=. PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki")'
-       PERL5LIB=. PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki::Extras")'
+       PERL5LIB=`pwd` PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki")'
+       PERL5LIB=`pwd` PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki::Extras")'
 
 Then to build and install ikiwiki:
 
index ca1c3d1ef11a6df003b996997525bd4e74810636..b8984a4b72a4114169ebf1c0ee083be0e83cef19 100644 (file)
@@ -38,12 +38,12 @@ Use `wget` to [[download]] the ikiwiki tarball. Then unpack it:
 
 Use CPAN to install the perl modules it uses into your home directory:
 
-       PERL5LIB=ikiwiki:ikiwiki/cpan:. PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki")'
-       PERL5LIB=ikiwiki:ikiwiki/cpan:. PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->force(install => "Bundle::IkiWiki::Extras")'
+       PERL5LIB=`pwd`/ikiwiki:`pwd`/ikiwiki/cpan:`pwd`/lib/perl5 PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Bundle::IkiWiki")'
+       PERL5LIB=`pwd`/ikiwiki:`pwd`/ikiwiki/cpan:`pwd`/lib/perl5 PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->force(install => "Bundle::IkiWiki::Extras")'
 
-(This will take a while. As long as the first command succeeds, ikiwiki will be
-usable. The second command adds extra modules that some plugins use, and
-installation of some of them might fail.)
+This will take a while. As long as the first command succeeds, ikiwiki will be
+usable. The second command adds extra modules that some plugins use, so it's
+ok if installation of some of them fails.
 
 ## Build and install ikiwiki