SnortSnarfを導入するには、Perlモジュール 【Time::JulianDay(ユリウス暦の計算を行なう
)】が
必要となります。
私は CPANから直にインストールする方法を選びました。
(CPANって何? : CPANサイトからのperlモジュールの問い合わせ、ダウンロード、構築を行う)
起動時に いろいろ聞かれます(笑)
ミラーサイトは何処を選ぶか?(たぶん) と聞かれるので (2)
Asia (4) Japan と答えて
後は デフォルト=Enterで乗り切りました( ̄∇ ̄)
国内ftpサーバ一覧が表示されますので、一番、近いかしら(*^^)vなどと思いながら・・・
(3) ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/ を選択して しばらくすると cpan>
こんなプロンプトが
表示されますので インストールしたいモジュール名を打ち込んで・・・
↓
cpan> install Time::JulianDay
後は自動的に インストール完了です(感動)
------------------------------------------------------------------
[root@ server2 root]
# perl -MCPAN -e shell
/usr/lib/perl5/5.8.0/CPAN/Config.pm initialized.
CPAN is the world-wide archive of perl resources.
It consists of about
100 sites that all replicate the same contents
all around the globe.
Many countries have at least one CPAN site
already. The resources
found on CPAN are easily accessible with
the CPAN.pm module. If you
want to use CPAN.pm, you have to configure
it properly.
If you do not want to enter a dialog now,
you can answer 'no' to this
question and I'll try to autoconfigure. (Note:
you can revisit this
dialog anytime later by typing 'o conf init'
at the cpan prompt.)
Are you ready for manual configuration? [yes]
The following questions are intended to help
you with the
configuration. The CPAN module needs a directory
of its own to cache
important index files and maybe keep a temporary
mirror of CPAN files.
This may be a site-wide directory or a personal
directory.
First of all, I'd like to create this directory.
Where?
CPAN build and cache directory? [/root/.cpan]
If you want, I can keep the source files
after a build in the cpan
home directory. If you choose so then future
builds will take the
files from there. If you don't want to keep
them, answer 0 to the
next question.
How big should the disk cache be for keeping
the build directories
with all the intermediate files?
Cache size for build directory (in MB)? [10]
By default, each time the CPAN module is
started, cache scanning
is performed to keep the cache size in sync.
To prevent from this,
disable the cache scanning with 'never'.
Perform cache scanning (atstart or never)?
[atstart]
To considerably speed up the initial CPAN
shell startup, it is
possible to use Storable to create a cache
of metadata. If Storable
is not available, the normal index mechanism
will be used.
Cache metadata (yes/no)? [yes]
The next option deals with the charset your
terminal supports. In
general CPAN is English speaking territory,
thus the charset does not
matter much, but some of the aliens out there
who upload their
software to CPAN bear names that are outside
the ASCII range. If your
terminal supports UTF-8, you say no to the
next question, if it
supports ISO-8859-1 (also known as LATIN1)
then you say yes, and if it
supports neither nor, your answer does not
matter, you will not be
able to read the names of some authors anyway.
If you answer no, names
will be output in UTF-8.
Your terminal expects ISO-8859-1 (yes/no)?
[yes]
The CPAN module can detect when a module
that which you are trying to
build depends on prerequisites. If this happens,
it can build the
prerequisites for you automatically ('follow'),
ask you for
confirmation ('ask'), or just ignore them
('ignore'). Please set your
policy to one of the three values.
Policy on building prerequisites (follow,
ask or ignore)? [ask]
The CPAN module will need a few external
programs to work properly.
Please correct me, if I guess the wrong path
for a program. Don't
panic if you do not have some of them, just
press ENTER for those. To
disable the use of a download program, you
can type a space followed
by ENTER.
Where is your gzip program? [/bin/gzip]
Where is your tar program? [/bin/tar]
Where is your unzip program? [/usr/bin/unzip]
Where is your make program? [/usr/bin/make]
Warning: links not found in PATH
Where is your links program? []
Where is your wget program? [/usr/bin/wget]
Warning: ncftpget not found in PATH
Where is your ncftpget program? []
Warning: ncftp not found in PATH
Where is your ncftp program? []
Where is your ftp program? [/usr/bin/ftp]
What is your favorite pager program? [/usr/bin/less]
What is your favorite shell? [/bin/bash]
Every Makefile.PL is run by perl in a separate
process. Likewise we
run 'make' and 'make install' in processes.
If you have any
parameters (e.g. PREFIX, LIB, UNINST or the
like) you want to pass
to the calls, please specify them here.
If you don't understand this question, just
press ENTER.
Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:
POLLUTE=1 increasing backwards compatibility
LIB=~/perl non-root users (please see manual
for more hints)
Your choice: []
Parameters for the 'make' command?
Typical frequently used setting:
-j3 dual processor system
Your choice: []
Parameters for the 'make install' command?
Typical frequently used setting:
UNINST=1 to always uninstall potentially
conflicting files
Your choice: []
Sometimes you may wish to leave the processes
run by CPAN alone
without caring about them. As sometimes the
Makefile.PL contains
question you're expected to answer, you can
set a timer that will
kill a 'perl Makefile.PL' process after the
specified time in seconds.
If you set this value to 0, these processes
will wait forever. This is
the default and recommended setting.
Timeout for inactivity during Makefile.PL?
[0]
If you're accessing the net via proxies,
you can specify them in the
CPAN configuration or via environment variables.
The variable in
the $CPAN::Config takes precedence.
Your ftp_proxy?
Your http_proxy?
Your no_proxy?
You have no /root/.cpan/sources/MIRRORED.BY
I'm trying to fetch one
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY
Now we need to know where your favorite CPAN
sites are located. Push
a few sites onto the array (just in case
the first on the array won't
work). If you are mirroring CPAN to your
local workstation, specify a
file: URL.
First, pick a nearby continent and country
(you can pick several of
each, separated by spaces, or none if you
just want to keep your
existing selections). Then, you will be presented
with a list of URLs
of CPAN mirrors in the countries you selected,
along with previously
selected URLs. Select some of those URLs,
or just keep the old list.
Finally, you will be prompted for any extra
URLs -- file:, ftp:, or
http: -- that host a CPAN mirror.
(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby
continents) []
2
Sorry! since you don't have any existing
picks, you must make a
geographic selection.
(1) China
(2) Indonesia
(3) Israel
(4) Japan
(5) Malaysia
(6) Russian Federation
(7) Saudi Arabia
(8) Singapore
(9) South Korea
(10) Taiwan
(11) Thailand
Select your country (or several nearby countries)
[]
4
Sorry! since you don't have any existing
picks, you must make a
geographic selection.
(1) ftp://ftp.ayamura.org/pub/CPAN/
(2) ftp://ftp.dti.ad.jp/pub/lang/CPAN/
(3) ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
(4) ftp://ftp.kddlabs.co.jp/CPAN/
(5) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
(6) ftp://ftp.u-aizu.ac.jp/pub/CPAN
(7) ftp://mirror.nucba.ac.jp/mirror/Perl/
Select as many URLs as you like,
put them on one line, separated by blanks
[]
3
Enter another URL or RETURN to quit: []
New set of picks:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
WAIT support is available as a Plugin. You
need the CPAN::WAIT module
to actually use it. But we need to know your
favorite WAIT server. If
you don't know a WAIT server near you, just
press ENTER.
Your favorite WAIT server?
[wait://ls6-www.informatik.uni-dortmund.de:1404]
commit: wrote /usr/lib/perl5/5.8.0/CPAN/Config.pm
cpan shell -- CPAN exploration and modules
installation (v1.61)
ReadLine support available (try 'install
Bundle::CPAN')
cpan> install Time::JulianDay
CPAN: Storable loaded ok
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Tue, 29 Jul 2003
20:16:30 GMT
There's a new CPAN.pm version (v1.75) available!
[Current version is v1.61]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It
should be a seamless upgrade
while we are running...
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module Time::JulianDay
Running make for M/MU/MUIR/modules/Time-modules-2003.0211.tar.gz
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/authors/id/M/MU/MUIR/modules/Time-modules-2003.0211.tar.g
z
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/authors/id/M/MU/MUIR/modules/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/M/MU/MUIR/modules/Time-modules-2003.0211.tar.gz
ok
Scanning cache /root/.cpan/build for sizes
Time-modules-2003.0211/
Time-modules-2003.0211/lib/
Time-modules-2003.0211/lib/Time/
Time-modules-2003.0211/lib/Time/JulianDay.pm
Time-modules-2003.0211/lib/Time/ParseDate.pm
Time-modules-2003.0211/lib/Time/CTime.pm
Time-modules-2003.0211/lib/Time/DaysInMonth.pm
Time-modules-2003.0211/lib/Time/Timezone.pm
Time-modules-2003.0211/t/
Time-modules-2003.0211/t/datetime.t
Time-modules-2003.0211/CHANGELOG
Time-modules-2003.0211/MANIFEST
Time-modules-2003.0211/Makefile.PL
Time-modules-2003.0211/README
CPAN.pm: Going to build M/MU/MUIR/modules/Time-modules-2003.0211.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Time-modules
cp lib/Time/JulianDay.pm blib/lib/Time/JulianDay.pm
cp lib/Time/CTime.pm blib/lib/Time/CTime.pm
cp lib/Time/ParseDate.pm blib/lib/Time/ParseDate.pm
cp lib/Time/DaysInMonth.pm blib/lib/Time/DaysInMonth.pm
cp lib/Time/Timezone.pm blib/lib/Time/Timezone.pm
Manifying blib/man3/Time::JulianDay.3pm
Manifying blib/man3/Time::ParseDate.3pm
Manifying blib/man3/Time::CTime.3pm
Manifying blib/man3/Time::DaysInMonth.3pm
Manifying blib/man3/Time::Timezone.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib',
'blib/ar
ch')" t/*.t
t/datetime....ok
All tests successful.
Files=1, Tests=268, 2 wallclock secs ( 1.59
cusr + 0.05 csys = 1.64 CPU)
/usr/bin/make test -- OK
Running make install
Installing /usr/lib/perl5/site_perl/5.8.0/Time/JulianDay.pm
Installing /usr/lib/perl5/site_perl/5.8.0/Time/CTime.pm
Installing /usr/lib/perl5/site_perl/5.8.0/Time/ParseDate.pm
Installing /usr/lib/perl5/site_perl/5.8.0/Time/DaysInMonth.pm
Installing /usr/lib/perl5/site_perl/5.8.0/Time/Timezone.pm
Installing /usr/share/man/man3/Time::JulianDay.3pm
Installing /usr/share/man/man3/Time::ParseDate.3pm
Installing /usr/share/man/man3/Time::CTime.3pm
Installing /usr/share/man/man3/Time::DaysInMonth.3pm
Installing /usr/share/man/man3/Time::Timezone.3pm
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Time-modules/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install -- OK
cpan> exit
Lockfile removed.