V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ebadao
V2EX  ›  服务器

Apache 在 windows 下运行 perl 的问题。

  •  
  •   ebadao · Jan 28, 2015 · 3298 views
    This topic created in 4107 days ago, the information mentioned may be changed or developed.
    很多perl写的程序,第一行用来指定perl的解释器
    #!/usr/bin/perl –w

    在windows下,发现要改成perl的安装目录才可以
    #!D:\Perl\bin\perl.exe –w

    如果有很多的pl文件,修改不是很方便,有没有办法指定一个地方,让apache用某一个解释器来运行perl?就像IIS一样。
    1 replies    2015-01-30 10:10:20 +08:00
    ebadao
        1
    ebadao  
    OP
       Jan 30, 2015
    找到解决办法了,在安装ActivePerl的时候,修改默认的安装路径到C:\usr\下即可。

    http://www.ezloo.com/2015/01/windows_apache_perl.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3360 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:34 · PVG 08:34 · LAX 17:34 · JFK 20:34
    ♥ Do have faith in what you're doing.