タグ

local-libに関するkiririmodeのブックマーク (2)

  • local::lib を切り替える - unknownplace.org

    レガシーなアプリをメンテするのにレガシーな Perl モジュールが必要になることがあり、そのために古いアプリ用には専用の local::lib ディレクトリを切っているわけですが、普段から日常的に local::lib を使用しているため shell が上がったタイミングではデフォルトの local::lib 環境変数がセットされていて切り替えが非常に面倒だった。 これまではそれほど頻繁に使用しなかったので放置していたのだが、ここのところ頻繁に必要になるためいい加減うざくなってきて簡単に local::lib を切り替えられるよう設定をしてみた。 zsh に次のような関数をつくり、それで local::lib を切り替えるようにする。 function locallib () { INSTALL_BASE=$1 if [ -d $INSTALL_BASE ]; then eval $(~/

  • Installing Perl modules as a non-root user

    by Jon Allen (JJ) - posted on Wednesday, 26 August 2009 Over the last couple of years, Perl development has been transformed by exciting new technologies such as Catalyst, DBIx::Class, and Moose. However, these and other such tools all have one thing in common - they are part of the CPAN, not part of the core Perl distribution. For users in certain environments, such as shared hosting, it can be

  • 1