Linux Perl 升级

本文介绍如何从Perl官方网站下载Perl,并提供了详细的Configure配置选项说明。通过这些配置选项,用户可以定制Perl的安装路径、选择编译器等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://www.perl.org/get.html 官网找到下载链接

http://www.cpan.org/src/5.0/perl-5.24.0.tar.gz

#./Configure --help 
Usage: Configure [-dehrsEKOSV] [-f config.sh] [-D symbol] [-D symbol=value] 
                 [-U symbol] [-U symbol=] [-A command:symbol...] 
  -d : use defaults for all answers. 
  -e : go on without questioning past the production of config.sh. 
  -f : specify an alternate default configuration file. 
  -h : print this help message and exit (with an error status). 
  -r : reuse C symbols value if possible (skips costly nm extraction). 
  -s : silent mode, only echoes questions and essential information. 
  -D : define symbol to have some value: 
         -D symbol         symbol gets the value 'define' 
         -D symbol=value   symbol gets the value 'value' 
       common used examples (see INSTALL for more info): 
         -Duse64bitint            use 64bit integers 
         -Duse64bitall            use 64bit integers and pointers 
         -Dusethreads             use thread support 
         -Dinc_version_list=none  do not include older perl trees in @INC 
         -DEBUGGING=none          DEBUGGING options 
         -Dcc=gcc                 choose your compiler 
         -Dprefix=/opt/perl5      choose your destination 
  -E : stop at the end of questions, after having produced config.sh. 
  -K : do not use unless you know what you are doing. 
  -O : let -D and -U override definitions from loaded configuration file. 
  -S : perform variable substitutions on all .SH files (can mix with -f) 
  -U : undefine symbol: 
         -U symbol    symbol gets the value 'undef' 
         -U symbolsymbol=   symbol gets completely empty 
       e.g.:  -Uversiononly 
  -A : manipulate symbol after the platform specific hints have been applied: 
         -A append:symbol=value   append value to symbol 
         -A symbol=value          like append:, but with a separating space 
         -A define:symbol=value   define symbol to have value 
         -A clear:symbol          define symbol to be '' 
         -A define:symbol         define symbol to be 'define' 
         -A eval:symbol=value     define symbol to be eval of value 
         -A prepend:symbol=value  prepend value to symbol 
         -A undef:symbol          define symbol to be 'undef' 
         -A undef:symbol=         define symbol to be '' 
       e.g.:  -A prepend:libswanted='cl pthread ' 
              -A ccflags=-DSOME_MACRO 
  -V : print version number and exit (with a zero status). 
# ./Configure -des -Dprefix=/usr
# make && make install

 

转载于:https://my.oschina.net/bobchow/blog/802897

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值