| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> perl >> yi fei chao ji yong hu shen fen an zhuang mod_perl

yi fei chao ji yong hu shen fen an zhuang mod_perl

2008-05-19 06:25:34 编辑來源:互联网 评论
 
 
 
本文为【以非超级用户身份安装mod_perl】的拼音翻译版
  jiu xiang da jia cong yi qian de wen zhang li kan dao de ,mod_perl nbsp; shi Apache you liang ge zu jian zu cheng : nbsp;Perl nbsp; mo kuai he nbsp;Apache nbsp; ben shen 。 sui ran yi fei chao ji yong hu quan xian an zhuang Apache hen jian dan , dan shi ying gai zhi dao ru he an zhuang zai fei xi tong wei zhi de Perl mo kuai 。 ben wen wo jiang lun zheng ji zhong fang fa lai shi xian zhe ge ren wu 。
  zai zhe xie li zi li , wo jiang yong stas zuo wei yong hu ming ,/home/stas zuo wei gai yong hu de si ren mu lu 。
  an zhuang Perl mo kuai dao xuan ze de mu lu
  ji ran bu yong chao ji yong hu quan xian , na me ni jiu bu yuan xu an zhuang dao xi tong mu lu , xiang /usr/lib/perl5。 ni xu yao zhao dao ru he zai ni de si ren mu lu an zhuang zhe xie mo kuai de fang fa 。 zhe hen rong yi 。 nbsp;
  shou xian , ni xu yao jue ding an zhuang zhe xie mo kuai dao shen me di fang 。 zui jian dan de tu jing jiu shi zai ni de si ren mu lu xia mo fang yu Perl you guan de gen mu lu wen jian xi tong de yi zhi 。 shi ji shang , wo men zhi xu yao liang ge mu lu : nbsp;
  /home/stas/bin
  /home/stas/lib
  ji ran ta men hui zai di yi ge mo kuai bei an zhuang shi zi dong chuang jian , na me wo men jiu bu bi chuang jian ta men 。99% de wen jian jiang bei kao bei dao lib mu lu xia 。 you shi hou , dang yi xie mo kuai sui zhe Perl jiao ben fa bu de shi hou hui bei kao bei dao bin mu lu 。 ru guo mu lu bu cun zai hui bei chuang jian 。
  rang wo men an zhuang CGI.pm bao , gai bao bao han le yi xie qi ta CGI::* mo kuai 。 tong chang , cong CPAN ku xia zai gai bao , jie kai gai bao bing jin ru xin jian de mu lu li 。
  xian zai zuo yi ge biao zhun de perl wen jian Makefile.PL qu zhun bei Makefile. dan shi zhe ge shi hou rang nbsp;MakeMaker nbsp; yong ni de Perl an zhuang mu lu , er bu shi que sheng de 。 nbsp;
  % nbsp;perl nbsp;Makefile.PL nbsp;PREFIX=/home/stas
  PREFIX=/home/stas nbsp; zhi shi an zhuang guo cheng bu tong yu tong chang de yi bu fen 。 nbsp; zhu yi ru guo ni bu zai yi MakeMaker ru he xuan ze sheng xia de mu lu , huo zhe ru guo ni zheng zai yong yi ge xu yao xian shi zhi ming suo you mu de mu lu de lao ban ben , na me zhe yang zuo : nbsp;
  % nbsp;perl nbsp;Makefile.PL nbsp;PREFIX=/home/stas nbsp;
  INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;
  INSTALLSCRIPT=/home/stas/bin nbsp;
  INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;
  INSTALLBIN=/home/stas/bin nbsp;
  INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;
  INSTALLMAN3DIR=/home/stas/lib/perl5/man3
  sheng xia de gen tong chang yi yang : nbsp;
  % nbsp;make
  % nbsp;make nbsp;test
  % nbsp;make nbsp;install
  make nbsp;install nbsp; an zhuang suo you de wen jian dao si ren mu lu 。 zhu yi suo you diu shi de mu lu hui bei zi dong chuang jian , yin ci mei you bi yao chuang jian ta men 。
  yi xia jiu shi zhe me zuo de ( shao wei gai dong guo ): nbsp;
  zheng zai an zhuang nbsp;/home/stas/lib/perl5/CGI/Cookie.pm
  zheng zai an zhuang nbsp;/home/stas/lib/perl5/CGI.pm
  zheng zai an zhuang nbsp;/home/stas/lib/perl5/man3/CGI.3
  zheng zai an zhuang nbsp;/home/stas/lib/perl5/man3/CGI::Cookie.3
  zheng zai xie ru nbsp;/home/stas/lib/perl5/auto/CGI/.packlist
  zheng zai zhui jia an zhuang xin xi dao nbsp;/home/stas/lib/perl5/perllocal.pod
  ru guo ni bu de bu yong xian shi mu de shen shu , na me bu yong dan ge PREFIX shen shu , ni hui fa xian jian li yi ge bei tiao yong de wen jian hen you yong 。
  li ru , nbsp;/.perl_dirs nbsp;( zhe li nbsp; zai wo men de li zi zhong shi nbsp;/home/stas) nbsp; de nei rong bao han : nbsp;
  PREFIX=/home/stas nbsp;
  INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;
  INSTALLSCRIPT=/home/stas/bin nbsp;
  INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;
  INSTALLBIN=/home/stas/bin nbsp;
  INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;
  INSTALLMAN3DIR=/home/stas/lib/perl5/man3
  cong xian zai qi , ren he shi hou ni xiang ben di hua an zhuang Perl mo kuai jiu ke yi zhe yang zhi xing : nbsp;
  % nbsp;perl nbsp;Makefile.PL nbsp;`cat nbsp;/.perl_dirs`
  % nbsp;make
  % nbsp;make nbsp;test
  % nbsp;make nbsp;install
  yong zhe ge fang fa , ni ke yi hen rong yi di bao chi bu tong Perl mo kuai de cun chu 。 li ru , ni ke yi yi ge yong zuo production nbsp;Perl, ling yi ge yong zuo kai fa 。 nbsp;
  % nbsp;perl nbsp;Makefile.PL nbsp;`cat nbsp;/.perl_dirs.production`
  huo zhe nbsp;
  % nbsp;perl nbsp;Makefile.PL nbsp;`cat nbsp;~/.perl_dirs.develop`
  bian xie ni zi ji de jiao ben zhao dao ben di yi an zhuang mo kuai
  zhe xie Perl mo kuai tong chang dou fang zai si ge zhu yao mu lu 。 wei le zhao dao zhe xie mu lu , zhi xing : nbsp;
  % nbsp;perl nbsp;-V
  shu chu bao han chong yao de perl an zhuang xin xi 。 zui hou ni jiang kan dao : nbsp;
  Characteristics nbsp;of nbsp;this nbsp;binary nbsp;(from nbsp;libperl):
  Built nbsp;under nbsp;linux
  Compiled nbsp;at nbsp;Apr nbsp;6 nbsp;1999 nbsp;23:34:07
  @INC:
  /usr/lib/perl5/5.00503/i386-linux
  /usr/lib/perl5/5.00503
  /usr/lib/perl5/site_perl/5.005/i386-linux
  /usr/lib/perl5/site_perl/5.005
  .
  zhe xiang wo men biao ming Perl te shu bian liang @INC de nei rong , zhe ge te shu bian liang tong chang bei Perl yong lai cha zhao mo kuai de 。 ta deng jia yu Unix nbsp;shells li de PATH huan jing bian liang , shi yong lai cha zhao ke zhi xing cheng xu de 。
  zhu yi Perl ye zai . mu lu ( dai biao dang qian mu lu ) cha zhao mo kuai , zhe shi zai yi shang shu chu mu lu li de zui hou de ru kou lu jing 。 dang ran , zhe ge li zi lai zi 5.00503 ban ben de perl, nbsp; ta an zhuang zai wo de x86 jie gou PC de Linux zhong 。 zhe jiu shi wei shen me ni kan dao le i386-linux he 5.00503. nbsp; ru guo ni de xi tong yun xing zhe bu tong ban ben de perl、 cao zuo xi tong 、 chu li qi huo zhe xin pian jie gou , na me yi xie mu lu hui you bu tong de ming zi 。
  wo ye an zhuang le perl nbsp;5.6.1 ban ben dao nbsp;/usr/local/lib/ nbsp;, suo yi dang wo zhe me zuo : nbsp;
  % nbsp;/usr/local/bin/perl5.6.1 nbsp;-V
  ni hui kan dao : nbsp;
  @INC:
  /usr/local/lib/perl5/5.6.1/i586-linux
  /usr/local/lib/perl5/5.6.1
  /usr/local/lib/site_perl/5.6.1/i586-linux
  /usr/local/lib/site_perl
  zhu yi zhe huan shi Linux, nbsp; dan shi jiao xin de perl ban ben yong le ben teng de chu li qi ( suo yi shi i586 er bu shi i386)。 zhe dui ben teng chu li qi de bian yi you hua you yong , dang er jin zhi Perl kuo zhan bei chuang jian shi 。
  suo you ping tai zhi ding de wen jian , xiang yi bian yi de C wen jian yong XS huo zhe SWIG qu nian he Perl, ying gai jin ru lei si i386-linux mu lu 。
  chong dian : dang wo men yi jing an zhuang le Perl mo kuai jin ru fei biao zhun mu lu , wo men bu de bu rang Perl zhi dao qu na li sou suo zhe si ge mu lu 。 you liang ge shi xian fang fa : ni ke yi she zhi PERL5LIB nbsp; huan jing bian liang huo zhe ni ke yi zai ni de jiao ben zhong xiu gai @INC bian liang 。
  jia she wo men yong Perl nbsp;5.00503 ban ben , zai wo men de li zi zhong mu lu ru xia : nbsp;
  /home/sbekman/lib/perl5/5.00503/i386-linux
  /home/sbekman/lib/perl5/5.00503
  /home/sbekman/lib/perl5/site_perl/5.005/i386-linux
  /home/sbekman/lib/perl5/site_perl/5.005
  jiu xiang qian mian ti dao de , ni neng tong guo perl nbsp;-V zhao dao que qie de mu lu bing yong ni zi ji de si ren mu lu dai ti quan ju de perl an zhuang ji mu lu 。
  xiu gai nbsp;@INC nbsp; shi hen rong yi de 。 zui hao de tu jing shi yong lib mo kuai ( bian yi zhi shi ), nbsp; tong guo zai ni de jiao ben zui shang fang jia ru yi xia dai ma pian duan , zhe xie dai ma xu yao ben di hua yi jing an zhuang de mo kuai :
  use nbsp;lib nbsp;qw(/home/stas/lib/perl5/5.00503/
  /home/stas/lib/perl5/site_perl/5.005);
  ling yi ge tu jing shi xie dai ma xian shi xiu gai @INC: nbsp;
  BEGIN nbsp;{
  unshift nbsp;@INC,
  qw(/home/stas/lib/perl5/5.00503
  /home/stas/lib/perl5/5.00503/i386-linux
  /home/stas/lib/perl5/site_perl/5.005
  /home/stas/lib/perl5/site_perl/5.005/i386-linux);
  }
  zhu yi ji ran ta men ru guo cun zai hui zi dong jia ru ( que qie di shuo , dang $dir/$archname/auto cun zai de shi hou ), na me yong lib mo kuai wo men bu bi lie chu yi zhi de jie gou zhi ding mu lu 。
  er qie , zhu yi dao liang zhong tu jing dou yu xian kao lv dao @INC li bei sou suo de mu lu 。 zhe jiu yuan xu ni an zhuang yi ge geng xin de mo kuai jia ru ni de ben di ku 。Perl hui yong zhe ge mo kuai qu dai yi jing an zhuang zai xi tong ku li de jiu mo kuai 。
  liang zhong tu jing dou shi zai bian yi qi jian xiu gai nbsp;@INC nbsp; de zhi 。 zhe ge lib mo kuai ye yong BEGIN kuai , dan shi shi nei bu di 。
  xian zai , rang wo jia she ru xia qing jing 。 wo yi jing zai wo de ben di ku zhong an zhuang le nbsp;LWP nbsp; bao . nbsp; xian zai wo xiang an zhuang ling yi ge mo kuai ( li ru nbsp;mod_perl) nbsp;, zhe ge mo kuai you zai ta de shou xuan lie biao zhong lie chu de nbsp;LWP。 wo zhi dao wo yi jing an zhuang nbsp;LWP nbsp;, dan shi dang wo wei le zhun bei an zhuang de mo kuai yun xing perl nbsp;Makefile.pl, wo bei gao zhi wo mei you an zhuang LWP。
  Perl mei you ban fa zhi dao wo men you ben di yi jing an zhuang de mo kuai 。 suo you zhe xie dou zai @INC li lie chu de mu lu sou suo zhong 。 ji ran hou zhe bao han zhi you 4 ge que sheng mu lu ( jia shang nbsp;. mu lu ), na me ta bu ke neng zhao dao ben di an zhuang de nbsp;LWP nbsp; bao 。 wo men bu neng tong guo jia ru dai ma xiu gai @INC lai jie jue zhe ge wen ti , er yao gai bian PERL5LIB huan jing bian liang cai neng jie jue 。 ru guo ni zheng zai yong tcsh jie jue jiao hu gong zuo , na me zhe yang zuo : nbsp;
  setenv nbsp;PERL5LIB nbsp;/home/stas/lib/perl5/5.00503:
  /home/stas/lib/perl5/site_perl/5.005
  ta ying gai shi dai mu lu de dan xing , bing qie mu lu shi bei mao hao (:) he fei kong ge suo fen kai 。 ru guo ni shi bash yong hu , na me zhe me zuo : nbsp;
  export nbsp;PERL5LIB=/home/stas/lib/perl5/5.00503:
  /home/stas/lib/perl5/site_perl/5.005
  tong yang , xie cheng dan xing 。 ru guo ni yong bash, na me ni neng tong guo fan xie gan () lai shu ru duo xing ming ling , xiang zhe yang : nbsp;
  export nbsp;PERL5LIB=/home/stas/lib/perl5/5.00503:
  /home/stas/lib/perl5/site_perl/5.005
  you yu yong lib, suo yi ru guo cun zai ,Perl zi dong hui yu xian kao lv jie gou zhi ding mu lu dao nbsp;@INC nbsp;.
  dang wo men zhe me zuo de shi hou , wo men jiu yao xiang yi qian na yang tong guo zhi xing perl nbsp;-V lai que ren @INC xin pei zhi de zhi 。 ni ying gai kan dao nbsp;@INC nbsp; xiu gai de zhi : nbsp;
  % nbsp;perl nbsp;-V
  Characteristics nbsp;of nbsp;this nbsp;binary nbsp;(from nbsp;libperl): nbsp;
  Built nbsp;under nbsp;linux
  Compiled nbsp;at nbsp;Apr nbsp;6 nbsp;1999 nbsp;23:34:07
  %ENV:
  PERL5LIB=”/home/stas/lib/perl5/5.00503:
  /home/stas/lib/perl5/site_perl/5.005” nbsp;
  @INC:
  /home/stas/lib/perl5/5.00503/i386-linux
  /home/stas/lib/perl5/5.00503
  /home/stas/lib/perl5/site_perl/5.005/i386-linux
  /home/stas/lib/perl5/site_perl/5.005
  /usr/lib/perl5/5.00503/i386-linux
  /usr/lib/perl5/5.00503
  /usr/lib/perl5/site_perl/5.005/i386-linux
  /usr/lib/perl5/site_perl/5.005
  .
  dang yi qie dou ru ni suo yuan de na yang gong zuo shi , jia ru zhe xie ming ling dao nbsp;.tcshrc nbsp; huo zhe nbsp;.bashrc nbsp; wen jian . nbsp; dang xia ci ni qi dong shell de shi hou , huan jing jiang hui wei ni zhun bei hao yu xin de Perl yi qi gong zuo 。
  zhu yi , ru guo ni she zhi le nbsp;PERL5LIB nbsp;, nbsp; na me ni bu bi zai ni de jiao ben zhong gai bian nbsp;@INC nbsp; de zhi 。 dan shi ru guo , nbsp; ju li shuo , nbsp; qi ta ren nbsp;( bu xiang zai nbsp;shell zhong she zhi de ren ) xiang zhi xing ni de jiao ben , na me Perl jiu bu neng zhao dao ni ben di an zhuang de mo kuai 。 zui hao de li zi jiu shi nbsp;crontab nbsp; jiao ben , ke yi yong bu tong de SHELL huan jing , yin ci , bu neng jin xing PERL5LIB de she zhi 。
  yu shi zui hao de tu jing jiu shi xiang shang mian suo miao shu de , ji she zhi PERL5LIB huan jing bian liang you zai jiao ben kai tou xiu gai nbsp;@INC nbsp; kuo zhan dai ma 。
  CPAN.pm nbsp;Shell nbsp; he nbsp; ben di an zhuang mo kuai
  CPAN.pm nbsp;shell nbsp; zai chu li perl mo kuai an zhuang he bao chi geng xin de shi hou bao cun le da liang de shi jian 。 ta wei wo men zuo le zhe xiang gong zuo , jin guan zai shou xuan lie biao zhong jian cha dao de diu shi mo kuai , qu chu ta men bing an zhuang 。 suo yi ni hui xiang zhi dao ni shi fou neng yong nbsp;CPAN.pm nbsp; ye lai bao chi ni de ben di ku 。
  dang ni kai shi qi dong nbsp;CPAN nbsp; jiao hu Shell de shi hou , nbsp; ta hui shou xian sou suo yong hu si ren pei zhi wen jian he xi tong wen jian 。 dang wo zuo wei stas yong hu bei ji lu shi , an zhuang de liang ge wen jian hui shi : nbsp;
  /home/stas/.cpan/CPAN/MyConfig.pm
  /usr/lib/perl5/5.00503/CPAN/Config.pm
  ru guo ni de xi tong mei you nbsp;CPAN nbsp;Shell, na me dang ni di yi ci qi dong shell shi , ta hui wen ni yi xi lie wen ti , ran hou wei ni jian li Config.pm wen jian 。
  ru guo ni yi jing you yi ge xi tong pei zhi , na me ni ying gai you /usr/lib/perl5/5.00503/CPAN/Config.pm. nbsp; ru guo ni you bu tong ban ben de Perl, na me zai zhao wen jian de shi hou xiu gai lu jing yong ni de Perl de ban ben hao 。 xin jian mu lu (mkdir nbsp;-p nbsp; li ke xin jian zheng ge lu jing ), gai mu lu jiu shi ben di pei zhi wen jian jiang fang de di fang : nbsp;
  % nbsp;mkdir nbsp;-p nbsp;/home/stas/.cpan/CPAN
  xian zai fu zhi ha xi tong pei zhi wen jian dao ben di 。 nbsp;
  % nbsp;cp nbsp;/usr/lib/perl5/5.00503/CPAN/Config.pm nbsp;
  /home/stas/.cpan/CPAN/MyConfig.pm
  wei yi liu xia de shi qing shi zai ni de ben di wen jian gai bian nbsp;.cpan nbsp; ji mu lu dao ni de si ren mu lu xia 。 zai wo de ji qi li , wo yong nbsp;/home/stas nbsp; qu dai nbsp;/usr/src/.cpan nbsp;( zhe jiu shi wo de nbsp;.cpan nbsp; xi tong mu lu suo zai di fang )。 wo dang ran yong perl! nbsp;
  % nbsp;perl nbsp;-pi nbsp;-e nbsp;’s|/usr/src|/home/stas|’ nbsp;
  /home/stas/.cpan/CPAN/MyConfig.pm
  xian zai ni yi jing you ben di pei zhi wen jian 。 dang zhi xing nbsp;perl nbsp;Makefile.PL nbsp; de shi hou , ni ke yi gao su ta ni bi xu chuan di shen me shen shu 。
  yong ni zui xi huan de bian ji qi da kai gai wen jian bing ti huan xia xing : nbsp;
  ‘makepl_arg’ nbsp;=> nbsp;q[],
  cai yong : nbsp;
  ‘makepl_arg’ nbsp;=> nbsp;q[PREFIX=/home/stas],
  xian zai ni yi jing wan cheng le pei zhi 。 jia she ni zuo wei tong yang de yong hu deng lu bing zhun bei hao le ben di an zhuang ( wo men de li zi shi nbsp;stas), xiang zhe yang kai shi : nbsp;
  % nbsp;perl nbsp;-MCPAN nbsp;-e nbsp;shell
  cong xian zai qi , ren he ni xiang an zhuang de mo kuai dou hui bei ben di hua an zhuang 。 ru guo ni bi xu an zhuang yi xie xi tong mo kuai , na me jiu cheng wei chao ji yong hu bing yong tong yang de fang fa jin xing an zhuang 。 dang ni yi chao ji yong hu deng lu shi , xi tong pei zhi wen jian jiang bei yong er bu shi ben di de 。
  ru guo ni yi jing yong le bu zhi yi ge PREFIX bian liang , ran hou xiu gai nbsp;MyConfig.pm nbsp; qu yong ta men . nbsp; li ru , ru guo ni yong zhe xie bian liang : nbsp;
  perl nbsp;Makefile.PL nbsp;PREFIX=/home/stas nbsp;
  INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;
  INSTALLSCRIPT=/home/stas/bin nbsp;
  INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;
  INSTALLBIN=/home/stas/bin nbsp;
  INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;
  INSTALLMAN3DIR=/home/stas/lib/perl5/man3
  zai xia mian yi xing zhong yong yi shang suo you bian liang ti huan nbsp;PREFIX=/home/stas nbsp;: nbsp;
  ‘makepl_arg’ nbsp;=> nbsp;q[PREFIX=/home/stas] nbsp;
  yu shi gai xing bian cheng : nbsp;
  ‘makepl_arg’ nbsp;=> nbsp;q[PREFIX=/home/stas nbsp;
  INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;
  INSTALLSCRIPT=/home/stas/bin nbsp;
  INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;
  INSTALLBIN=/home/stas/bin nbsp;
  INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;
  INSTALLMAN3DIR=/home/stas/lib/perl5/man3],
  ru guo ni neng zai yi xing nei fang zhi suo you yi shang shen shu , na me ni ke yi qu diao fan xie gan nbsp;().
  an zhuang ben di nbsp;Apache
  jiu xiang nbsp;Perl nbsp; mo kuai yi yang , nbsp; ru guo ni mei you quan xian an zhuang wen jian dao xi tong qu , na me ni bu de bu ben di hua an zhuang ta men dao ni de si ren mu lu 。 zhe ji hu gen jian dan an zhuang yi yang , dan shi ni bu de bu yun xing zhen ting duan kou hao da yu 1024 de fu wu qi , yin wei zhi you root jin cheng cai neng zhen ting xiao yu 1024 de duan kou hao 。
  ling yi ge chong yao de wen ti ni bi xu jie jue de shi ru he ba qi dong guan bi jiao ben zuo wei xi tong fu wu xie ru mu lu li 。 ni jiang bu de bu xiang ni de xi tong guan li yuan xun qiu bang zhu 。
  wei le ben di hua an zhuang Apache, nbsp; suo you ni bi xu zuo de shi gao su Apache yuan dai ma mu lu li de .configure wen jian ying gai yong na xie mu de mu lu 。 ru guo ni an zhao wo de yue ding shi ni de si ren mu lu kan qi lai xiang nbsp;/ nbsp; gen mu lu yi yang , na me qi wang de shen shu jiang shi : nbsp;
  ./configure―prefix=/home/stas
  Apache nbsp; hui yong qian zhui lai dai ti mu de mu lu qi yu bu fen , er bu shi que sheng de nbsp;/usr/local/apache. nbsp; ru guo ni xiang zhi dao ta men shi shen me , na me yun xing zhi qian jia shang ―show-layout nbsp; xuan xiang : nbsp;
  ./configure―prefix=/home/stas―show-layout
  ni ke neng xiang an zhao Apache de yue ding ba Apache suo you de wen jian fang zai nbsp;/home/stas/apache nbsp; xia : nbsp;
  ./configure―prefix=/home/stas/apache
  ru guo ni xiang xiu gai yi xie huo zhe suo you zi dong chuang jian de mu lu de ming zi : nbsp;
  ./configure―prefix=/home/stas/apache nbsp;
  ―sbindir=/home/stas/apache/sbin
  ―sysconfdir=/home/stas/apache/etc
  ―localstatedir=/home/stas/apache/var nbsp;
  ―runtimedir=/home/stas/apache/var/run nbsp;
  ―logfiledir=/home/stas/apache/var/logs nbsp;
  ―proxycachedir=/home/stas/apache/var/proxy
  jiu zhe xie !
  er qie ji zhu ni zhi neng zai shu yu ni de yong hu he yong hu zu xia yun xing gai jiao ben 。 nbsp; ni bi xu zai httpd.conf li she zhi he shi de zhi gei yong hu he zu xiang 。
  shou dong an zhuang ben di nbsp;mod_perl nbsp; qi yong nbsp;Apache
  ji ran wo men zhi dao ru he fen kai an zhuang Apache he Perl mo kuai , na jiu rang wo men lai kan kan ru he zai wo men de si ren mu lu an zhuang mod_perl qi yong Apache。 zhe ji hu gen fen kai an zhuang yi yang jian dan , dan shi you yi ge wen ti ni xu yao zhi dao de , zhe zai ben bu fen de zui hou wo hui ti dao 。
  jia she ni jie bao nbsp;Apache nbsp; he nbsp;mod_perl nbsp; yuan dai ma dao nbsp;/home/stas/src nbsp; mu lu xia , jiu xiang zhe yang : nbsp;
  % nbsp;ls nbsp;/home/stas/src
  /home/stas/src/apache_x.x.x
  /home/stas/src/mod_perl-x.xx
  zhe li de nbsp;x.xx nbsp; shi gen yi qian yi yang de ban ben hao 。 ni xiang cong yi an zhuang zai nbsp;/home/stas/lib/perl5 nbsp; xia de nbsp;mod_perl nbsp; bao zhong de dao Perl mo kuai he nbsp;/home/stas/apache nbsp; mu lu xia de nbsp;Apache nbsp; wen jian 。 yi xia ming ling shi zhe me zuo de : nbsp;
  % nbsp;perl nbsp;Makefile.PL nbsp;
  PREFIX=/home/stas nbsp;
  APACHE_PREFIX=/home/stas/apache nbsp;
  APACHE_SRC=../apache_x.x.x/src nbsp;
  DO_HTTPD=1 nbsp;
  USE_APACI=1 nbsp;
  EVERYTHING=1
  % nbsp;make nbsp;&& nbsp;make nbsp;test nbsp;&& nbsp;make nbsp;install nbsp;
  % nbsp;cd nbsp;../apache_x.x.x
  % nbsp;make nbsp;install
  ru guo ni xu yao yi xie shen shu chuan di gei nbsp;.configure nbsp; jiao ben , nbsp; jiu xiang wo men zai yi qian de zhang jie li kan dao de , na me jiu yong nbsp;APACI_ARGS. nbsp; li ru : nbsp;
  APACI_ARGS=’―sbindir=/home/stas/apache/sbin, nbsp;
  ―sysconfdir=/home/stas/apache/etc, nbsp;
  ―localstatedir=/home/stas/apache/var, nbsp;
  ―runtimedir=/home/stas/apache/var/run, nbsp;
  ―logfiledir=/home/stas/apache/var/logs, nbsp;
  ―proxycachedir=/home/stas/apache/var/proxy’
  zhu yi yi shang duo xing fen kai zhi gong zuo zai bash xia , nbsp;tcsh yong hu jiang bu de bu zai tong yi xing lie chu suo you shen shu 。
  ji ben shang an zhuang jie shu 。 wei yi liu xia de wen ti shi nbsp;@INC nbsp; bian liang 。 ru guo ni yi lai nbsp;PERL5LIB nbsp; huan jing bian liang , na me @INC nbsp; jiang bu hui bei zheng que she zhi , chu fei ni zai ni de qi dong wen jian zhong xian shi she zhi ta 。 qi dong wen jian bi xu zai zhuang zai ren he ni de ben di ku mo kuai zhi qian qi dong 。 yi ge geng hao de tu jing jiu xiang wo men yi qian kan dao de , shi yong lib bian yi zhi shi , dan shi shao wei you dian bu tong de di fang : wo men zai qi dong wen jian zhong yong zhe zhong fang fa jiang hui ying xiang suo you zai mod_perl chu li xia de dai ma jiang hui bei zhi xing 。 li ru : nbsp;PerlRequire nbsp;/home/stas/apache/perl/startup.pl nbsp; zhe li de nbsp;startup.pl nbsp; yi zhe yang kai shi : nbsp;
  use nbsp;lib nbsp;qw(/home/stas/lib/perl5/5.00503/
  /home/stas/lib/perl5/site_perl/5.005);
  zhu yi ni reng ke yi zai jiao ben zhong yong ying bian ma de nbsp;@INC nbsp; de xiu gai , nbsp; dan yi shi dao jiao ben xiu gai BEGIN kuai li de nbsp;@INC, nbsp; er mod_perl nbsp; zhi zai jiao ben bian yi de shi hou cai zhi xing nbsp;BEGIN kuai 。 jie guo ,@INC nbsp; jiang hui zai bian yi yi hou bei yuan shi zhi fu wei , ying bian ma de she zhi jiang hui bei yi wang 。
  zhi you yi ge di fang ni ke yi gai bian “ yuan shi ” zhi shi zai qi dong wen jian huo zhe fang nbsp;
  PerlSetEnv nbsp;Perl5LIB nbsp;
  /home/stas/lib/perl5/5.00503/:/home/stas/lib/perl5/site_perl/5.005
  dao nbsp;httpd.conf de fu wu qi pei zhi jie duan , nbsp; dan shi hou zhe she zhi ru guo ni yong nbsp;PerlTanintcheck nbsp; she zhi jiang hui bei hu lue 。 wo xi wang ni neng zhe yang yong ta 。
  jie xia lai de mod_perl nbsp; pei zhi he shi yong shi yi yang de , jiu hao xiang ni zheng zai yi chao ji yong hu shen fen an zhuang mod_perl yi yang 。
  yong nbsp;CPAN.pm nbsp; jin xing ben di an zhuang nbsp;mod_perl nbsp; qi yong nbsp;Apache nbsp; jia she ni yi jing xiang wen zhang qian mian suo jie shi de pei zhi nbsp;CPAN.pm nbsp; lai an zhuang Perl mo kuai , na me an zhuang jiu jian dan le 。
  qi dong nbsp;CPAN.pm nbsp;shell, nbsp; she zhi shen shu chuan di gei nbsp;perl nbsp;Makefile.PL nbsp;( xiu gai li zi she zhi shi he ni de xu yao ), nbsp; ran hou gao su nbsp; wei ni qu zuo sheng xia de shi : nbsp;
  % nbsp;perl nbsp;-MCPAN nbsp;-eshell
  cpan> nbsp;o nbsp;conf nbsp;makepl_arg nbsp;‘DO_HTTPD=1 nbsp;USE_APACI=1 nbsp;EVERYTHING=1 nbsp;
  PREFIX=/home/stas nbsp;APACHE_PREFIX=/home/stas/apache’
  cpan> nbsp;install nbsp;mod_perl
  dang ni wei le ben di hua an zhuang yong nbsp;CPAN.pm nbsp; de shi hou , nbsp;mod_perl nbsp; an zhuang jie shu zhi hou ni bi xu que ren nbsp;makepl_arg nbsp; shi fou bei hui fu dao yuan shi zhi 。 zui jian dan de fang fa shi tong guo shu ru nbsp;quit tui chu jiao hu Shell ran hou chong xin shu ru 。 dan shi ru guo yao jian chi , na me xia mian jiu shi ru guo bu tui chu Shell jiu sheng xiao . nbsp; ni zhen de xiang tiao guo zhe ge :)
  ru guo ni xiang bu tui chu Shell yong CPAN ji xu gong zuo , na me ni bi xu :
  1) ji zhu nbsp;makepl_arg nbsp; de zhi
  2) gai bian ta yi shi he ni de xin an zhuang
  3) gou jian he an zhuang nbsp;mod_perl
  4) an zhuang nbsp;mod_perl nbsp; zhi hou hui fu ta
  zhe shi xiang dang ma fan de ren wu , dan shi wo xiang xin nbsp;CPAN.pm nbsp; zui zhong hui bei gai shan , chu li qi lai geng rong yi 。
  suo yi ni huan shi gen wo yi qi , na me jiu xiang tong chang yi yang qi dong nbsp;Shell: nbsp;
  % nbsp;perl nbsp;-MCPAN nbsp;-eshell
  di yi , du qu nbsp;makepl_arg nbsp; de zhi : nbsp;
  cpan> nbsp;o nbsp;conf nbsp;makepl_arg
  PREFIX=/home/stas
  ru guo ni pei zhi CPAN.pm lai ben di hua an zhuang mo kuai , na jiu hui shi xiang nbsp;PREFIX=/home/stas nbsp; zhe yang de zi fu chuan 。 bao cun zhe ge zhi : nbsp;
  cpan> nbsp;o nbsp;conf nbsp;makepl_arg.save nbsp;PREFIX=/home/stas
  di er , she zhi yi ge xin zhi , nbsp;mod_perl nbsp; an zhuang jin cheng hui yong dao ta 。( ni ke yi gen ju ni de xu yao jia ru shen shu dao zhe xing huo zhe shan chu ) nbsp;
  cpan> nbsp;o nbsp;conf nbsp;makepl_arg nbsp;‘DO_HTTPD=1 nbsp;USE_APACI=1 nbsp;EVERYTHING=1 nbsp;
  PREFIX=/home/stas nbsp;APACHE_PREFIX=/home/stas/apache’
  di san , nbsp; rang nbsp; wei ni gou jian he an zhuang nbsp;mod_perl: nbsp;
  cpan> nbsp;install nbsp;mod_perl
  di si , nbsp; fu wei makepl_arg dao yuan shi zhi . wo men ke yi tong guo da yin zhe xie bao cun de bian liang zhi ran hou fen pei gei nbsp;makepl_arg lai shi xian . nbsp;
  cpan> nbsp;o nbsp;conf nbsp;makepl_arg.save
  PREFIX=/home/stas
  cpan> nbsp;o nbsp;conf nbsp;makepl_arg nbsp;PREFIX=/home/stas
  bu shi hen jian ming , dan que shi yi ge you xiao fang fa 。 ni ke yi zai yi zhang zhi tiao shang xie xia zhe ge zhi , er bu shi bao cun zai nbsp;makepl_arg.save, nbsp; dan shi zhe yang ni geng ke neng fan cuo wu 。 nbsp; shen kao
  Apache nbsp; wang zhan wang zhi : nbsp;http://www.apache.org
  mod_perl nbsp; wang zhan wang zhi : nbsp;http://perl.apache.org nbsp;
  CPAN nbsp; shi nbsp;Perl nbsp; zong he dian cang wang de suo xie (Comprehensive nbsp;Perl nbsp;Archive nbsp;Network). nbsp; zhu zhan wang zhi shi http://cpan.org/. nbsp;
  shi jie fan wei nei ,CPAN nbsp; de jing xiang zhan dian you nbsp;100 nbsp; duo ge 。
  【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
   jiu xiang da jia cong yi qian de wen zhang li kan dao de ,mod_perl nbsp; shi Apache you liang ge zu jian zu cheng : nbsp;Perl nbsp; mo kuai he nbsp;Apache nbsp; ben shen 。 sui ran yi fei chao ji yong hu quan xian an zhuang Apache hen jian dan , dan shi ying gai zhi dao ru he an zhuang zai fei xi tong wei zhi de Perl mo kuai 。 ben wen wo jiang lun zheng ji zhong fang fa lai shi xian zhe ge ren wu 。    zai zhe xie li zi li , wo jiang yong stas zuo wei yong hu ming ,/home/stas zuo wei gai yong hu de si ren mu lu 。    an zhuang Perl mo kuai dao xuan ze de mu lu    ji ran bu yong chao ji yong hu quan xian , na me ni jiu bu yuan xu an zhuang dao xi tong mu lu , xiang /usr/lib/perl5。 ni xu yao zhao dao ru he zai ni de si ren mu lu an zhuang zhe xie mo kuai de fang fa 。 zhe hen rong yi 。 nbsp;    shou xian , ni xu yao jue ding an zhuang zhe xie mo kuai dao shen me di fang 。 zui jian dan de tu jing jiu shi zai ni de si ren mu lu xia mo fang yu Perl you guan de gen mu lu wen jian xi tong de yi zhi 。 shi ji shang , wo men zhi xu yao liang ge mu lu : nbsp;   /home/stas/bin   /home/stas/lib    ji ran ta men hui zai di yi ge mo kuai bei an zhuang shi zi dong chuang jian , na me wo men jiu bu bi chuang jian ta men 。99% de wen jian jiang bei kao bei dao lib mu lu xia 。 you shi hou , dang yi xie mo kuai sui zhe Perl jiao ben fa bu de shi hou hui bei kao bei dao bin mu lu 。 ru guo mu lu bu cun zai hui bei chuang jian 。    rang wo men an zhuang CGI.pm bao , gai bao bao han le yi xie qi ta CGI::* mo kuai 。 tong chang , cong CPAN ku xia zai gai bao , jie kai gai bao bing jin ru xin jian de mu lu li 。    xian zai zuo yi ge biao zhun de perl wen jian Makefile.PL qu zhun bei Makefile. dan shi zhe ge shi hou rang nbsp;MakeMaker nbsp; yong ni de Perl an zhuang mu lu , er bu shi que sheng de 。 nbsp;   % nbsp;perl nbsp;Makefile.PL nbsp;PREFIX=/home/stas   PREFIX=/home/stas nbsp; zhi shi an zhuang guo cheng bu tong yu tong chang de yi bu fen 。 nbsp; zhu yi ru guo ni bu zai yi MakeMaker ru he xuan ze sheng xia de mu lu , huo zhe ru guo ni zheng zai yong yi ge xu yao xian shi zhi ming suo you mu de mu lu de lao ban ben , na me zhe yang zuo : nbsp;   % nbsp;perl nbsp;Makefile.PL nbsp;PREFIX=/home/stas nbsp;   INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;   INSTALLSCRIPT=/home/stas/bin nbsp;   INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;   INSTALLBIN=/home/stas/bin nbsp;   INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;   INSTALLMAN3DIR=/home/stas/lib/perl5/man3    sheng xia de gen tong chang yi yang : nbsp;   % nbsp;make   % nbsp;make nbsp;test   % nbsp;make nbsp;install   make nbsp;install nbsp; an zhuang suo you de wen jian dao si ren mu lu 。 zhu yi suo you diu shi de mu lu hui bei zi dong chuang jian , yin ci mei you bi yao chuang jian ta men 。    yi xia jiu shi zhe me zuo de ( shao wei gai dong guo ): nbsp;    zheng zai an zhuang nbsp;/home/stas/lib/perl5/CGI/Cookie.pm    zheng zai an zhuang nbsp;/home/stas/lib/perl5/CGI.pm    zheng zai an zhuang nbsp;/home/stas/lib/perl5/man3/CGI.3    zheng zai an zhuang nbsp;/home/stas/lib/perl5/man3/CGI::Cookie.3    zheng zai xie ru nbsp;/home/stas/lib/perl5/auto/CGI/.packlist    zheng zai zhui jia an zhuang xin xi dao nbsp;/home/stas/lib/perl5/perllocal.pod    ru guo ni bu de bu yong xian shi mu de shen shu , na me bu yong dan ge PREFIX shen shu , ni hui fa xian jian li yi ge bei tiao yong de wen jian hen you yong 。    li ru , nbsp;/.perl_dirs nbsp;( zhe li nbsp; zai wo men de li zi zhong shi nbsp;/home/stas) nbsp; de nei rong bao han : nbsp;   PREFIX=/home/stas nbsp;   INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;   INSTALLSCRIPT=/home/stas/bin nbsp;   INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;   INSTALLBIN=/home/stas/bin nbsp;   INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;   INSTALLMAN3DIR=/home/stas/lib/perl5/man3    cong xian zai qi , ren he shi hou ni xiang ben di hua an zhuang Perl mo kuai jiu ke yi zhe yang zhi xing : nbsp;   % nbsp;perl nbsp;Makefile.PL nbsp;`cat nbsp;/.perl_dirs`   % nbsp;make   % nbsp;make nbsp;test   % nbsp;make nbsp;install    yong zhe ge fang fa , ni ke yi hen rong yi di bao chi bu tong Perl mo kuai de cun chu 。 li ru , ni ke yi yi ge yong zuo production nbsp;Perl, ling yi ge yong zuo kai fa 。 nbsp;   % nbsp;perl nbsp;Makefile.PL nbsp;`cat nbsp;/.perl_dirs.production`    huo zhe nbsp;   % nbsp;perl nbsp;Makefile.PL nbsp;`cat nbsp;~/.perl_dirs.develop`    bian xie ni zi ji de jiao ben zhao dao ben di yi an zhuang mo kuai    zhe xie Perl mo kuai tong chang dou fang zai si ge zhu yao mu lu 。 wei le zhao dao zhe xie mu lu , zhi xing : nbsp;   % nbsp;perl nbsp;-V    shu chu bao han chong yao de perl an zhuang xin xi 。 zui hou ni jiang kan dao : nbsp;   Characteristics nbsp;of nbsp;this nbsp;binary nbsp;(from nbsp;libperl):   Built nbsp;under nbsp;linux   Compiled nbsp;at nbsp;Apr nbsp;6 nbsp;1999 nbsp;23:34:07   @INC:   /usr/lib/perl5/5.00503/i386-linux   /usr/lib/perl5/5.00503   /usr/lib/perl5/site_perl/5.005/i386-linux   /usr/lib/perl5/site_perl/5.005   .    zhe xiang wo men biao ming Perl te shu bian liang @INC de nei rong , zhe ge te shu bian liang tong chang bei Perl yong lai cha zhao mo kuai de 。 ta deng jia yu Unix nbsp;shells li de PATH huan jing bian liang , shi yong lai cha zhao ke zhi xing cheng xu de 。    zhu yi Perl ye zai . mu lu ( dai biao dang qian mu lu ) cha zhao mo kuai , zhe shi zai yi shang shu chu mu lu li de zui hou de ru kou lu jing 。 dang ran , zhe ge li zi lai zi 5.00503 ban ben de perl, nbsp; ta an zhuang zai wo de x86 jie gou PC de Linux zhong 。 zhe jiu shi wei shen me ni kan dao le i386-linux he 5.00503. nbsp; ru guo ni de xi tong yun xing zhe bu tong ban ben de perl、 cao zuo xi tong 、 chu li qi huo zhe xin pian jie gou , na me yi xie mu lu hui you bu tong de ming zi 。    wo ye an zhuang le perl nbsp;5.6.1 ban ben dao nbsp;/usr/local/lib/ nbsp;, suo yi dang wo zhe me zuo : nbsp;   % nbsp;/usr/local/bin/perl5.6.1 nbsp;-V    ni hui kan dao : nbsp;   @INC:   /usr/local/lib/perl5/5.6.1/i586-linux   /usr/local/lib/perl5/5.6.1   /usr/local/lib/site_perl/5.6.1/i586-linux   /usr/local/lib/site_perl    zhu yi zhe huan shi Linux, nbsp; dan shi jiao xin de perl ban ben yong le ben teng de chu li qi ( suo yi shi i586 er bu shi i386)。 zhe dui ben teng chu li qi de bian yi you hua you yong , dang er jin zhi Perl kuo zhan bei chuang jian shi 。    suo you ping tai zhi ding de wen jian , xiang yi bian yi de C wen jian yong XS huo zhe SWIG qu nian he Perl, ying gai jin ru lei si i386-linux mu lu 。    chong dian : dang wo men yi jing an zhuang le Perl mo kuai jin ru fei biao zhun mu lu , wo men bu de bu rang Perl zhi dao qu na li sou suo zhe si ge mu lu 。 you liang ge shi xian fang fa : ni ke yi she zhi PERL5LIB nbsp; huan jing bian liang huo zhe ni ke yi zai ni de jiao ben zhong xiu gai @INC bian liang 。    jia she wo men yong Perl nbsp;5.00503 ban ben , zai wo men de li zi zhong mu lu ru xia : nbsp;   /home/sbekman/lib/perl5/5.00503/i386-linux   /home/sbekman/lib/perl5/5.00503   /home/sbekman/lib/perl5/site_perl/5.005/i386-linux   /home/sbekman/lib/perl5/site_perl/5.005    jiu xiang qian mian ti dao de , ni neng tong guo perl nbsp;-V zhao dao que qie de mu lu bing yong ni zi ji de si ren mu lu dai ti quan ju de perl an zhuang ji mu lu 。    xiu gai nbsp;@INC nbsp; shi hen rong yi de 。 zui hao de tu jing shi yong lib mo kuai ( bian yi zhi shi ), nbsp; tong guo zai ni de jiao ben zui shang fang jia ru yi xia dai ma pian duan , zhe xie dai ma xu yao ben di hua yi jing an zhuang de mo kuai :   use nbsp;lib nbsp;qw(/home/stas/lib/perl5/5.00503/   /home/stas/lib/perl5/site_perl/5.005);    ling yi ge tu jing shi xie dai ma xian shi xiu gai @INC: nbsp;   BEGIN nbsp;{   unshift nbsp;@INC,   qw(/home/stas/lib/perl5/5.00503   /home/stas/lib/perl5/5.00503/i386-linux   /home/stas/lib/perl5/site_perl/5.005   /home/stas/lib/perl5/site_perl/5.005/i386-linux);   }    zhu yi ji ran ta men ru guo cun zai hui zi dong jia ru ( que qie di shuo , dang $dir/$archname/auto cun zai de shi hou ), na me yong lib mo kuai wo men bu bi lie chu yi zhi de jie gou zhi ding mu lu 。    er qie , zhu yi dao liang zhong tu jing dou yu xian kao lv dao @INC li bei sou suo de mu lu 。 zhe jiu yuan xu ni an zhuang yi ge geng xin de mo kuai jia ru ni de ben di ku 。Perl hui yong zhe ge mo kuai qu dai yi jing an zhuang zai xi tong ku li de jiu mo kuai 。    liang zhong tu jing dou shi zai bian yi qi jian xiu gai nbsp;@INC nbsp; de zhi 。 zhe ge lib mo kuai ye yong BEGIN kuai , dan shi shi nei bu di 。    xian zai , rang wo jia she ru xia qing jing 。 wo yi jing zai wo de ben di ku zhong an zhuang le nbsp;LWP nbsp; bao . nbsp; xian zai wo xiang an zhuang ling yi ge mo kuai ( li ru nbsp;mod_perl) nbsp;, zhe ge mo kuai you zai ta de shou xuan lie biao zhong lie chu de nbsp;LWP。 wo zhi dao wo yi jing an zhuang nbsp;LWP nbsp;, dan shi dang wo wei le zhun bei an zhuang de mo kuai yun xing perl nbsp;Makefile.pl, wo bei gao zhi wo mei you an zhuang LWP。   Perl mei you ban fa zhi dao wo men you ben di yi jing an zhuang de mo kuai 。 suo you zhe xie dou zai @INC li lie chu de mu lu sou suo zhong 。 ji ran hou zhe bao han zhi you 4 ge que sheng mu lu ( jia shang nbsp;. mu lu ), na me ta bu ke neng zhao dao ben di an zhuang de nbsp;LWP nbsp; bao 。 wo men bu neng tong guo jia ru dai ma xiu gai @INC lai jie jue zhe ge wen ti , er yao gai bian PERL5LIB huan jing bian liang cai neng jie jue 。 ru guo ni zheng zai yong tcsh jie jue jiao hu gong zuo , na me zhe yang zuo : nbsp;   setenv nbsp;PERL5LIB nbsp;/home/stas/lib/perl5/5.00503:   /home/stas/lib/perl5/site_perl/5.005    ta ying gai shi dai mu lu de dan xing , bing qie mu lu shi bei mao hao (:) he fei kong ge suo fen kai 。 ru guo ni shi bash yong hu , na me zhe me zuo : nbsp;   export nbsp;PERL5LIB=/home/stas/lib/perl5/5.00503:   /home/stas/lib/perl5/site_perl/5.005    tong yang , xie cheng dan xing 。 ru guo ni yong bash, na me ni neng tong guo fan xie gan () lai shu ru duo xing ming ling , xiang zhe yang : nbsp;   export nbsp;PERL5LIB=/home/stas/lib/perl5/5.00503:   /home/stas/lib/perl5/site_perl/5.005    you yu yong lib, suo yi ru guo cun zai ,Perl zi dong hui yu xian kao lv jie gou zhi ding mu lu dao nbsp;@INC nbsp;.    dang wo men zhe me zuo de shi hou , wo men jiu yao xiang yi qian na yang tong guo zhi xing perl nbsp;-V lai que ren @INC xin pei zhi de zhi 。 ni ying gai kan dao nbsp;@INC nbsp; xiu gai de zhi : nbsp;   % nbsp;perl nbsp;-V   Characteristics nbsp;of nbsp;this nbsp;binary nbsp;(from nbsp;libperl): nbsp;   Built nbsp;under nbsp;linux   Compiled nbsp;at nbsp;Apr nbsp;6 nbsp;1999 nbsp;23:34:07   %ENV:   PERL5LIB=”/home/stas/lib/perl5/5.00503:   /home/stas/lib/perl5/site_perl/5.005” nbsp;   @INC:   /home/stas/lib/perl5/5.00503/i386-linux   /home/stas/lib/perl5/5.00503   /home/stas/lib/perl5/site_perl/5.005/i386-linux   /home/stas/lib/perl5/site_perl/5.005   /usr/lib/perl5/5.00503/i386-linux   /usr/lib/perl5/5.00503   /usr/lib/perl5/site_perl/5.005/i386-linux   /usr/lib/perl5/site_perl/5.005   .    dang yi qie dou ru ni suo yuan de na yang gong zuo shi , jia ru zhe xie ming ling dao nbsp;.tcshrc nbsp; huo zhe nbsp;.bashrc nbsp; wen jian . nbsp; dang xia ci ni qi dong shell de shi hou , huan jing jiang hui wei ni zhun bei hao yu xin de Perl yi qi gong zuo 。    zhu yi , ru guo ni she zhi le nbsp;PERL5LIB nbsp;, nbsp; na me ni bu bi zai ni de jiao ben zhong gai bian nbsp;@INC nbsp; de zhi 。 dan shi ru guo , nbsp; ju li shuo , nbsp; qi ta ren nbsp;( bu xiang zai nbsp;shell zhong she zhi de ren ) xiang zhi xing ni de jiao ben , na me Perl jiu bu neng zhao dao ni ben di an zhuang de mo kuai 。 zui hao de li zi jiu shi nbsp;crontab nbsp; jiao ben , ke yi yong bu tong de SHELL huan jing , yin ci , bu neng jin xing PERL5LIB de she zhi 。    yu shi zui hao de tu jing jiu shi xiang shang mian suo miao shu de , ji she zhi PERL5LIB huan jing bian liang you zai jiao ben kai tou xiu gai nbsp;@INC nbsp; kuo zhan dai ma 。   CPAN.pm nbsp;Shell nbsp; he nbsp; ben di an zhuang mo kuai   CPAN.pm nbsp;shell nbsp; zai chu li perl mo kuai an zhuang he bao chi geng xin de shi hou bao cun le da liang de shi jian 。 ta wei wo men zuo le zhe xiang gong zuo , jin guan zai shou xuan lie biao zhong jian cha dao de diu shi mo kuai , qu chu ta men bing an zhuang 。 suo yi ni hui xiang zhi dao ni shi fou neng yong nbsp;CPAN.pm nbsp; ye lai bao chi ni de ben di ku 。    dang ni kai shi qi dong nbsp;CPAN nbsp; jiao hu Shell de shi hou , nbsp; ta hui shou xian sou suo yong hu si ren pei zhi wen jian he xi tong wen jian 。 dang wo zuo wei stas yong hu bei ji lu shi , an zhuang de liang ge wen jian hui shi : nbsp;   /home/stas/.cpan/CPAN/MyConfig.pm   /usr/lib/perl5/5.00503/CPAN/Config.pm    ru guo ni de xi tong mei you nbsp;CPAN nbsp;Shell, na me dang ni di yi ci qi dong shell shi , ta hui wen ni yi xi lie wen ti , ran hou wei ni jian li Config.pm wen jian 。    ru guo ni yi jing you yi ge xi tong pei zhi , na me ni ying gai you /usr/lib/perl5/5.00503/CPAN/Config.pm. nbsp; ru guo ni you bu tong ban ben de Perl, na me zai zhao wen jian de shi hou xiu gai lu jing yong ni de Perl de ban ben hao 。 xin jian mu lu (mkdir nbsp;-p nbsp; li ke xin jian zheng ge lu jing ), gai mu lu jiu shi ben di pei zhi wen jian jiang fang de di fang : nbsp;   % nbsp;mkdir nbsp;-p nbsp;/home/stas/.cpan/CPAN    xian zai fu zhi ha xi tong pei zhi wen jian dao ben di 。 nbsp;   % nbsp;cp nbsp;/usr/lib/perl5/5.00503/CPAN/Config.pm nbsp;   /home/stas/.cpan/CPAN/MyConfig.pm    wei yi liu xia de shi qing shi zai ni de ben di wen jian gai bian nbsp;.cpan nbsp; ji mu lu dao ni de si ren mu lu xia 。 zai wo de ji qi li , wo yong nbsp;/home/stas nbsp; qu dai nbsp;/usr/src/.cpan nbsp;( zhe jiu shi wo de nbsp;.cpan nbsp; xi tong mu lu suo zai di fang )。 wo dang ran yong perl! nbsp;   % nbsp;perl nbsp;-pi nbsp;-e nbsp;’s|/usr/src|/home/stas|’ nbsp;   /home/stas/.cpan/CPAN/MyConfig.pm    xian zai ni yi jing you ben di pei zhi wen jian 。 dang zhi xing nbsp;perl nbsp;Makefile.PL nbsp; de shi hou , ni ke yi gao su ta ni bi xu chuan di shen me shen shu 。    yong ni zui xi huan de bian ji qi da kai gai wen jian bing ti huan xia xing : nbsp;   ‘makepl_arg’ nbsp;=> nbsp;q[],    cai yong : nbsp;   ‘makepl_arg’ nbsp;=> nbsp;q[PREFIX=/home/stas],    xian zai ni yi jing wan cheng le pei zhi 。 jia she ni zuo wei tong yang de yong hu deng lu bing zhun bei hao le ben di an zhuang ( wo men de li zi shi nbsp;stas), xiang zhe yang kai shi : nbsp;   % nbsp;perl nbsp;-MCPAN nbsp;-e nbsp;shell    cong xian zai qi , ren he ni xiang an zhuang de mo kuai dou hui bei ben di hua an zhuang 。 ru guo ni bi xu an zhuang yi xie xi tong mo kuai , na me jiu cheng wei chao ji yong hu bing yong tong yang de fang fa jin xing an zhuang 。 dang ni yi chao ji yong hu deng lu shi , xi tong pei zhi wen jian jiang bei yong er bu shi ben di de 。    ru guo ni yi jing yong le bu zhi yi ge PREFIX bian liang , ran hou xiu gai nbsp;MyConfig.pm nbsp; qu yong ta men . nbsp; li ru , ru guo ni yong zhe xie bian liang : nbsp;   perl nbsp;Makefile.PL nbsp;PREFIX=/home/stas nbsp;   INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;   INSTALLSCRIPT=/home/stas/bin nbsp;   INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;   INSTALLBIN=/home/stas/bin nbsp;   INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;   INSTALLMAN3DIR=/home/stas/lib/perl5/man3    zai xia mian yi xing zhong yong yi shang suo you bian liang ti huan nbsp;PREFIX=/home/stas nbsp;: nbsp;   ‘makepl_arg’ nbsp;=> nbsp;q[PREFIX=/home/stas] nbsp;    yu shi gai xing bian cheng : nbsp;   ‘makepl_arg’ nbsp;=> nbsp;q[PREFIX=/home/stas nbsp;   INSTALLPRIVLIB=/home/stas/lib/perl5 nbsp;   INSTALLSCRIPT=/home/stas/bin nbsp;   INSTALLSITELIB=/home/stas/lib/perl5/site_perl nbsp;   INSTALLBIN=/home/stas/bin nbsp;   INSTALLMAN1DIR=/home/stas/lib/perl5/man nbsp;   INSTALLMAN3DIR=/home/stas/lib/perl5/man3],    ru guo ni neng zai yi xing nei fang zhi suo you yi shang shen shu , na me ni ke yi qu diao fan xie gan nbsp;().    an zhuang ben di nbsp;Apache    jiu xiang nbsp;Perl nbsp; mo kuai yi yang , nbsp; ru guo ni mei you quan xian an zhuang wen jian dao xi tong qu , na me ni bu de bu ben di hua an zhuang ta men dao ni de si ren mu lu 。 zhe ji hu gen jian dan an zhuang yi yang , dan shi ni bu de bu yun xing zhen ting duan kou hao da yu 1024 de fu wu qi , yin wei zhi you root jin cheng cai neng zhen ting xiao yu 1024 de duan kou hao 。    ling yi ge chong yao de wen ti ni bi xu jie jue de shi ru he ba qi dong guan bi jiao ben zuo wei xi tong fu wu xie ru mu lu li 。 ni jiang bu de bu xiang ni de xi tong guan li yuan xun qiu bang zhu 。    wei le ben di hua an zhuang Apache, nbsp; suo you ni bi xu zuo de shi gao su Apache yuan dai ma mu lu li de .configure wen jian ying gai yong na xie mu de mu lu 。 ru guo ni an zhao wo de yue ding shi ni de si ren mu lu kan qi lai xiang nbsp;/ nbsp; gen mu lu yi yang , na me qi wang de shen shu jiang shi : nbsp;   ./configure―prefix=/home/stas   Apache nbsp; hui yong qian zhui lai dai ti mu de mu lu qi yu bu fen , er bu shi que sheng de nbsp;/usr/local/apache. nbsp; ru guo ni xiang zhi dao ta men shi shen me , na me yun xing zhi qian jia shang ―show-layout nbsp; xuan xiang : nbsp;   ./configure―prefix=/home/stas―show-layout    ni ke neng xiang an zhao Apache de yue ding ba Apache suo you de wen jian fang zai nbsp;/home/stas/apache nbsp; xia : nbsp;   ./configure―prefix=/home/stas/apache    ru guo ni xiang xiu gai yi xie huo zhe suo you zi dong chuang jian de mu lu de ming zi : nbsp;   ./configure―prefix=/home/stas/apache nbsp;   ―sbindir=/home/stas/apache/sbin   ―sysconfdir=/home/stas/apache/etc   ―localstatedir=/home/stas/apache/var nbsp;   ―runtimedir=/home/stas/apache/var/run nbsp;   ―logfiledir=/home/stas/apache/var/logs nbsp;   ―proxycachedir=/home/stas/apache/var/proxy    jiu zhe xie !    er qie ji zhu ni zhi neng zai shu yu ni de yong hu he yong hu zu xia yun xing gai jiao ben 。 nbsp; ni bi xu zai httpd.conf li she zhi he shi de zhi gei yong hu he zu xiang 。    shou dong an zhuang ben di nbsp;mod_perl nbsp; qi yong nbsp;Apache    ji ran wo men zhi dao ru he fen kai an zhuang Apache he Perl mo kuai , na jiu rang wo men lai kan kan ru he zai wo men de si ren mu lu an zhuang mod_perl qi yong Apache。 zhe ji hu gen fen kai an zhuang yi yang jian dan , dan shi you yi ge wen ti ni xu yao zhi dao de , zhe zai ben bu fen de zui hou wo hui ti dao 。    jia she ni jie bao nbsp;Apache nbsp; he nbsp;mod_perl nbsp; yuan dai ma dao nbsp;/home/stas/src nbsp; mu lu xia , jiu xiang zhe yang : nbsp;   % nbsp;ls nbsp;/home/stas/src   /home/stas/src/apache_x.x.x   /home/stas/src/mod_perl-x.xx    zhe li de nbsp;x.xx nbsp; shi gen yi qian yi yang de ban ben hao 。 ni xiang cong yi an zhuang zai nbsp;/home/stas/lib/perl5 nbsp; xia de nbsp;mod_perl nbsp; bao zhong de dao Perl mo kuai he nbsp;/home/stas/apache nbsp; mu lu xia de nbsp;Apache nbsp; wen jian 。 yi xia ming ling shi zhe me zuo de : nbsp;   % nbsp;perl nbsp;Makefile.PL nbsp;   PREFIX=/home/stas nbsp;   APACHE_PREFIX=/home/stas/apache nbsp;   APACHE_SRC=../apache_x.x.x/src nbsp;   DO_HTTPD=1 nbsp;   USE_APACI=1 nbsp;   EVERYTHING=1   % nbsp;make nbsp;&& nbsp;make nbsp;test nbsp;&& nbsp;make nbsp;install nbsp;   % nbsp;cd nbsp;../apache_x.x.x   % nbsp;make nbsp;install    ru guo ni xu yao yi xie shen shu chuan di gei nbsp;.configure nbsp; jiao ben , nbsp; jiu xiang wo men zai yi qian de zhang jie li kan dao de , na me jiu yong nbsp;APACI_ARGS. nbsp; li ru : nbsp;   APACI_ARGS=’―sbindir=/home/stas/apache/sbin, nbsp;   ―sysconfdir=/home/stas/apache/etc, nbsp;   ―localstatedir=/home/stas/apache/var, nbsp;   ―runtimedir=/home/stas/apache/var/run, nbsp;   ―logfiledir=/home/stas/apache/var/logs, nbsp;   ―proxycachedir=/home/stas/apache/var/proxy’    zhu yi yi shang duo xing fen kai zhi gong zuo zai bash xia , nbsp;tcsh yong hu jiang bu de bu zai tong yi xing lie chu suo you shen shu 。    ji ben shang an zhuang jie shu 。 wei yi liu xia de wen ti shi nbsp;@INC nbsp; bian liang 。 ru guo ni yi lai nbsp;PERL5LIB nbsp; huan jing bian liang , na me @INC nbsp; jiang bu hui bei zheng que she zhi , chu fei ni zai ni de qi dong wen jian zhong xian shi she zhi ta 。 qi dong wen jian bi xu zai zhuang zai ren he ni de ben di ku mo kuai zhi qian qi dong 。 yi ge geng hao de tu jing jiu xiang wo men yi qian kan dao de , shi yong lib bian yi zhi shi , dan shi shao wei you dian bu tong de di fang : wo men zai qi dong wen jian zhong yong zhe zhong fang fa jiang hui ying xiang suo you zai mod_perl chu li xia de dai ma jiang hui bei zhi xing 。 li ru : nbsp;PerlRequire nbsp;/home/stas/apache/perl/startup.pl nbsp; zhe li de nbsp;startup.pl nbsp; yi zhe yang kai shi : nbsp;   use nbsp;lib nbsp;qw(/home/stas/lib/perl5/5.00503/   /home/stas/lib/perl5/site_perl/5.005);    zhu yi ni reng ke yi zai jiao ben zhong yong ying bian ma de nbsp;@INC nbsp; de xiu gai , nbsp; dan yi shi dao jiao ben xiu gai BEGIN kuai li de nbsp;@INC, nbsp; er mod_perl nbsp; zhi zai jiao ben bian yi de shi hou cai zhi xing nbsp;BEGIN kuai 。 jie guo ,@INC nbsp; jiang hui zai bian yi yi hou bei yuan shi zhi fu wei , ying bian ma de she zhi jiang hui bei yi wang 。    zhi you yi ge di fang ni ke yi gai bian “ yuan shi ” zhi shi zai qi dong wen jian huo zhe fang nbsp;   PerlSetEnv nbsp;Perl5LIB nbsp;   /home/stas/lib/perl5/5.00503/:/home/stas/lib/perl5/site_perl/5.005    dao nbsp;httpd.conf de fu wu qi pei zhi jie duan , nbsp; dan shi hou zhe she zhi ru guo ni yong nbsp;PerlTanintcheck nbsp; she zhi jiang hui bei hu lue 。 wo xi wang ni neng zhe yang yong ta 。    jie xia lai de mod_perl nbsp; pei zhi he shi yong shi yi yang de , jiu hao xiang ni zheng zai yi chao ji yong hu shen fen an zhuang mod_perl yi yang 。    yong nbsp;CPAN.pm nbsp; jin xing ben di an zhuang nbsp;mod_perl nbsp; qi yong nbsp;Apache nbsp; jia she ni yi jing xiang wen zhang qian mian suo jie shi de pei zhi nbsp;CPAN.pm nbsp; lai an zhuang Perl mo kuai , na me an zhuang jiu jian dan le 。    qi dong nbsp;CPAN.pm nbsp;shell, nbsp; she zhi shen shu chuan di gei nbsp;perl nbsp;Makefile.PL nbsp;( xiu gai li zi she zhi shi he ni de xu yao ), nbsp; ran hou gao su nbsp; wei ni qu zuo sheng xia de shi : nbsp;   % nbsp;perl nbsp;-MCPAN nbsp;-eshell   cpan> nbsp;o nbsp;conf nbsp;makepl_arg nbsp;‘DO_HTTPD=1 nbsp;USE_APACI=1 nbsp;EVERYTHING=1 nbsp;   PREFIX=/home/stas nbsp;APACHE_PREFIX=/home/stas/apache’   cpan> nbsp;install nbsp;mod_perl    dang ni wei le ben di hua an zhuang yong nbsp;CPAN.pm nbsp; de shi hou , nbsp;mod_perl nbsp; an zhuang jie shu zhi hou ni bi xu que ren nbsp;makepl_arg nbsp; shi fou bei hui fu dao yuan shi zhi 。 zui jian dan de fang fa shi tong guo shu ru nbsp;quit tui chu jiao hu Shell ran hou chong xin shu ru 。 dan shi ru guo yao jian chi , na me xia mian jiu shi ru guo bu tui chu Shell jiu sheng xiao . nbsp; ni zhen de xiang tiao guo zhe ge :)    ru guo ni xiang bu tui chu Shell yong CPAN ji xu gong zuo , na me ni bi xu :   1) ji zhu nbsp;makepl_arg nbsp; de zhi   2) gai bian ta yi shi he ni de xin an zhuang   3) gou jian he an zhuang nbsp;mod_perl   4) an zhuang nbsp;mod_perl nbsp; zhi hou hui fu ta    zhe shi xiang dang ma fan de ren wu , dan shi wo xiang xin nbsp;CPAN.pm nbsp; zui zhong hui bei gai shan , chu li qi lai geng rong yi 。    suo yi ni huan shi gen wo yi qi , na me jiu xiang tong chang yi yang qi dong nbsp;Shell: nbsp;   % nbsp;perl nbsp;-MCPAN nbsp;-eshell    di yi , du qu nbsp;makepl_arg nbsp; de zhi : nbsp;   cpan> nbsp;o nbsp;conf nbsp;makepl_arg   PREFIX=/home/stas    ru guo ni pei zhi CPAN.pm lai ben di hua an zhuang mo kuai , na jiu hui shi xiang nbsp;PREFIX=/home/stas nbsp; zhe yang de zi fu chuan 。 bao cun zhe ge zhi : nbsp;   cpan> nbsp;o nbsp;conf nbsp;makepl_arg.save nbsp;PREFIX=/home/stas    di er , she zhi yi ge xin zhi , nbsp;mod_perl nbsp; an zhuang jin cheng hui yong dao ta 。( ni ke yi gen ju ni de xu yao jia ru shen shu dao zhe xing huo zhe shan chu ) nbsp;   cpan> nbsp;o nbsp;conf nbsp;makepl_arg nbsp;‘DO_HTTPD=1 nbsp;USE_APACI=1 nbsp;EVERYTHING=1 nbsp;   PREFIX=/home/stas nbsp;APACHE_PREFIX=/home/stas/apache’    di san , nbsp; rang nbsp; wei ni gou jian he an zhuang nbsp;mod_perl: nbsp;   cpan> nbsp;install nbsp;mod_perl    di si , nbsp; fu wei makepl_arg dao yuan shi zhi . wo men ke yi tong guo da yin zhe xie bao cun de bian liang zhi ran hou fen pei gei nbsp;makepl_arg lai shi xian . nbsp;   cpan> nbsp;o nbsp;conf nbsp;makepl_arg.save   PREFIX=/home/stas   cpan> nbsp;o nbsp;conf nbsp;makepl_arg nbsp;PREFIX=/home/stas    bu shi hen jian ming , dan que shi yi ge you xiao fang fa 。 ni ke yi zai yi zhang zhi tiao shang xie xia zhe ge zhi , er bu shi bao cun zai nbsp;makepl_arg.save, nbsp; dan shi zhe yang ni geng ke neng fan cuo wu 。 nbsp; shen kao   Apache nbsp; wang zhan wang zhi : nbsp;http://www.apache.org   mod_perl nbsp; wang zhan wang zhi : nbsp;http://perl.apache.org nbsp;   CPAN nbsp; shi nbsp;Perl nbsp; zong he dian cang wang de suo xie (Comprehensive nbsp;Perl nbsp;Archive nbsp;Network). nbsp; zhu zhan wang zhi shi http://cpan.org/. nbsp;    shi jie fan wei nei ,CPAN nbsp; de jing xiang zhan dian you nbsp;100 nbsp; duo ge 。   
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
华丽的模特拍摄(8)
华丽的模特拍摄(7)
华丽的模特拍摄(6)
华丽的模特拍摄(5)
八里沟
朝阳宫
天下峨眉 云上金顶
老家(四)
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有