トップ
新規
一覧
単語検索
最終更新
ヘルプ
ログイン
アールメカブ
Perlモジュールの@INCを確認する
をテンプレートにして作成
開始行:
[[Programming]]
アドホックには/home/users/tmp/myperl/script.pmを使うには
use lib '/home/users/tmp';
use myperl::script;
としておけばよい.システムにインストールするなら
# perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation
ReadLine support available (try 'install Bundle::CPAN')
cpan> install DBI
cpan> install DBD::MySQL
cpan> quit
とするか,あるいは
$ su
Password:
# perl -MCPAN -e 'install hoge::hoge'
# とか
# perl -MCPAN -e 'install hoge_module'
とかする.上のコマンドが何をするのか心配なら,次のように...
$ perl -e 'foreach $path (@INC) { print "$path\n"; }'
/etc/perl
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
のどこかに手作業で置く.
終了行:
[[Programming]]
アドホックには/home/users/tmp/myperl/script.pmを使うには
use lib '/home/users/tmp';
use myperl::script;
としておけばよい.システムにインストールするなら
# perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation
ReadLine support available (try 'install Bundle::CPAN')
cpan> install DBI
cpan> install DBD::MySQL
cpan> quit
とするか,あるいは
$ su
Password:
# perl -MCPAN -e 'install hoge::hoge'
# とか
# perl -MCPAN -e 'install hoge_module'
とかする.上のコマンドが何をするのか心配なら,次のように...
$ perl -e 'foreach $path (@INC) { print "$path\n"; }'
/etc/perl
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
のどこかに手作業で置く.
ページ名: