主管和珀尔伯来



我尝试将主管与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

相关内容

  • 没有找到相关文章

最新更新