4

perlbrew で Supervisor を使おうとしていますが、うまくいきません。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の使用は他のことをしました

4

1 に答える 1

2

をインストールするperlbrewと、コマンドが に追加されます.bashrc。問題のシェルは対話型シェルではないため、そのコマンドが実行されなかったため、そのメッセージが表示されます。

/home/hobbestigrou/perl5/perlbrew/perls/perl-5.14.2/bin/perlを使用する代わりに明示的に使用しないのはなぜperlbrew useですか?

于 2013-12-19T14:51:45.130 に答える