我尝试在 perlbrew 中使用主管,但我无法让它工作。对于 perlbrew,我只是尝试设置运行良好的环境变量,但也许最好制作一个启动 perlbrew 和 plackup 的脚本,这是我的配置文件:

[program:MahewinSimpleBlog]
command = perlbrew use perl-5.14.2 && plackup -E deployment -s Starman --workers=10 -p 4000 -a bin/app.pl -D
directory = /home/hobbestigrou/MahewinSimpleBlog
environment = PERL5LIB ='/home/hobbestigrou/MahewinBlogEngine/lib',PERLBREW_ROOT='/home/hobbestigrou/perl5/perlbrew',PATH='/home/hobbestigrou/perl5/perlbrew/bin:/home/hobbestigrou/perl5/perlbrew/perls/perl-5.14.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games',MANPATH='/home/hobbestigrou/perl5/perlbrew/perls/perl-5.14.2/man:',PERLBREW_VERSION='0.43',PERLBREW_PERL='perl-5.14.2',PERLBREW_MANPATH='/home/hobbestigrou/perl5/perlbrew/perls/perl-5.14.2/man',PERLBREW_SKIP_INIT='1',PERLBREW_PATH='/home/hobbestigrou/perl5/perlbrew/bin:/home/hobbestigrou/perl5/perlbrew/perls/perl-5.14.2/bin',SHLVL='2'
user = hobbestigrou
stdout_file = /home/hobbestigrou/mahewinsimpleblog.log
autostart = true

在日志中,我看到它没有看对地方:
Error while loading bin/app.pl: Can't locate Type/Params.pm in @INC (@INC contains: /home/hobbestigrou/MahewinSimpleBlog/lib /home/hobbestigrou/MahewinBlogEngine/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/hobbestigrou/MahewinBlogEngine/lib/MahewinBlogEngine/Article.pm line 5.

我没有看到问题,也许 perlbrew 使用做了其他事情

最佳答案

安装 perlbrew 时,您向 .bashrc 中添加了一个命令。您收到该消息是因为该命令不是针对相关 shell 运行的,因为它不是交互式 shell。

为什么不明确使用 /home/hobbestigrou/perl5/perlbrew/perls/perl-5.14.2/bin/perl 而不是使用 perlbrew use

关于python - 主管和 perlbrew,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20683425/

10-09 08:21