User Tools

Site Tools


usage_on_fly

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
usage_on_fly [2012/02/23 18:19]
k2patel
usage_on_fly [2012/02/23 18:25]
k2patel [To install Modules Locally]
Line 35: Line 35:
  o conf init  o conf init
 </​code>​ </​code>​
-to reconfigure CPAN, replace all \*/​root/​.cpan/​\* with  /​home/​$username/​.cpan/​*+<​note>​to reconfigure CPAN, replace all */​root/​.cpan/​* with  /​home/​$username/​.cpan/​*</​note>​
  
-Then edit ''/​home/​$username/​.cpan/​CPAN/​MyConfig.pm''​ and change the makepl_arg so that it has your PREFIX line as well:+change the makepl_arg so it should look like.
  
-<​code ​oobas>+<​code ​bash | /​home/​$username/​.cpan/​CPAN/​MyConfig.pm>
  '​makepl_arg'​ => q[INSTALLDIRS=site PREFIX=/​home/​$username/​perl/​],​  '​makepl_arg'​ => q[INSTALLDIRS=site PREFIX=/​home/​$username/​perl/​],​
 </​code>​ </​code>​
Line 45: Line 45:
  
 <code oobas> <code oobas>
- ​export PERL5LIB="/​home/​$user/​perl/​share/​perl/​5.8.4/:/home/$user/​perl/​lib/​perl/​5.8.4/";+ ​export PERL5LIB="/​home/​$username/​perl/​share/​perl/​custom_lib/:/home/$username/​perl/​lib/​perl/​custom_lib/";
 </​code>​ </​code>​
 and then you should be able to use CPAN to install modules. and then you should be able to use CPAN to install modules.
  
-I then modified ​the Oddmuse script so that the new module install directory was in @INC so that Oddmuse could pick up the modules. Put the following ​line somewhere near the top+I then modified following ​file
  
-<​code ​oobas+<​code ​bash | ~/.bashrc
- push @INC,qw(/home/$user/​perl/​share/​perl/​5.8.4/ /home/$user/​perl/​lib/​perl/​5.8.4/);+export PERL_LOCAL_LIB_ROOT="​/home/$username/​perl";​ 
 +export PERL_MB_OPT="​--install_base /​home/​$username/​perl";​ 
 +export PERL_MM_OPT="​INSTALL_BASE=/​home/​$username/​perl";​ 
 +export PERL5LIB="/​home/​$username/​perl/​share/​perl/​custom_lib/:/home/$username/​perl/​lib/​perl/​custom_lib/"; 
 +export PATH="/​home/​$username/​perl/​bin:​$PATH"​;
 </​code>​ </​code>​
- 
  
usage_on_fly.txt · Last modified: 2020/08/10 02:35 (external edit)