【问题标题】:Supervisor and perlbrew主管和 perlbrew
【发布时间】:2013-12-19 13:49:16
【问题描述】:

我尝试将主管与 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做了别的事情

【问题讨论】:

  • 好吧,这是我的错,PERL5LIB 和它的值之间有一个额外的空间。但我又遇到了一个问题。我没有更多错误,但在我的标准输出日志中我有这一行 A sub-shell is launch with perl-5.14.2 as theactivated perl.运行“退出”以完成它。所以它不会启动服务器。

标签: python perl supervisord perlbrew starman


【解决方案1】:

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

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

【讨论】:

  • 在我的 bashrc 我有这条线源 $HOME/perl5/perlbrew/etc/bashrc perlbrew 使用 perl-5.14.2 如果我尝试这条线 command = /home/hobbestigrou/perl5/perlbrew/ perls/perl-5.14.2/bin/perl /home/hobbestigrou/perl5/perlbrew/perls/perl-5.14.2/bin/plackup -E deployment -s Starman --workers=10 -p 4000 -a bin/app .pl -D 它可以工作,谢谢和抱歉。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-13
  • 1970-01-01
  • 2017-04-16
  • 1970-01-01
  • 2012-12-14
相关资源
最近更新 更多