batva
crazy administrator | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору AGurin Цитата: система - линух, сидю в нем через ssh | Есть такой модуль CPAN Через него удобно инсталлировать новые модули, ничего делать не нужно, он сам находит их на cpan.org, скачивает, тестирует, устанавливает, в самом начале кофе наливает, чтобы не скучал В консоли введи # perl -MCPAN -e shell Первый раз он захочет конфигуриться, отвечай на все вопросы простым "enter" (ответ по дефолту) Помоему (уже не помню), там вначале даже вопрос будет, типа автоматом все сконфигурить или руками, выбери автоматом. Все. Теперь запускай его # perl -MCPAN -e shell Первым делом обнови им самого себя. cpan> install Bundle::CPAN cpan> reload cpan Теперь введи cpan> help и увидишь все доступные команды. Например ищу модуль я так Код: cpan> i /CGI-SSI/ CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Sun, 09 Mar 2003 20:41:21 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Tue, 11 Mar 2003 11:42:28 GMT Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz Going to read /root/.cpan/sources/modules/03modlist.data.gz Going to write /root/.cpan/Metadata Distribution J/JA/JAMES/CGI-SSI-0.53.tar.gz Distribution S/SH/SHERZODR/CGI-SSI-Remote-0.03.tar.gz Distribution V/VA/VADIM/CGI-SSI_Parser-0.01.tar.gz 3 items found cpan> i /CGI::SSI/ Module CGI::SSI (J/JA/JAMES/CGI-SSI-0.53.tar.gz) Module CGI::SSI::Remote (S/SH/SHERZODR/CGI-SSI-Remote-0.03.tar.gz) Module CGI::SSI_Parser (V/VA/VADIM/CGI-SSI_Parser-0.01.tar.gz) 3 items found | А инсталю так: cpan> install /CGI::SSI/ Cheery Цитата: Ну дык ты читай: Requires: Date::Parse : Parse date strings into time values [in the TimeDate-1.14 distribution] ExtUtils::MakeMaker : create an extension Makefile [in the ExtUtils-MakeMaker-6.05 distribution] File::Spec : portably perform operations on file names [in the File-Spec-0.82 distribution] HTML::SimpleParse : a bare-bones HTML parser [in the HTML-SimpleParse-0.11 distribution] LWP::Simple : simple procedural interface to LWP [in the libwww-perl-5.69 distribution] URI : Uniform Resource Identifiers (absolute and relative) [in the URI-1.23 distribution] Это все тоже должно уже стоять. | AGurin Цитата: я так и думал... тока вот как их то поставить.... ух лана буду пробовать.... если что - еще обращусь | Дак вот CPAN все эти нужные модули, если они не стоят, он их сам ставит. Смотри как красиво он сам все делает, пока мы пьем кофе. Код: cpan> install CGI::SSI Running install for module CGI::SSI Running make for J/JA/JAMES/CGI-SSI-0.53.tar.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/J/JA/JAMES/CGI-SSI-0.53.tar.gz CPAN: Digest::MD5 loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/J/JA/JAMES/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/J/JA/JAMES/CGI-SSI-0.53.tar.gz ok Scanning cache /root/.cpan/build for sizes Deleting from cache: /root/.cpan/build/Apache-GeoIP-1.12 (11.6>10.0 MB) Deleting from cache: /root/.cpan/build/Geo-IP-1.13 (10.8>10.0 MB) Deleting from cache: /root/.cpan/build/DBI-1.32 (10.7>10.0 MB) CGI-SSI-0.53/ CGI-SSI-0.53/README CGI-SSI-0.53/Makefile.PL CGI-SSI-0.53/Changes CGI-SSI-0.53/SSI.pm CGI-SSI-0.53/MANIFEST CGI-SSI-0.53/TODO CGI-SSI-0.53/test.pl CPAN.pm: Going to build J/JA/JAMES/CGI-SSI-0.53.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Date::Parse failed to load: Can't locate Date/Parse.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 4) line 3. Warning: prerequisite HTML::SimpleParse failed to load: Can't locate HTML/SimpleParse.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 7) line 3. Writing Makefile for CGI::SSI ---- Unsatisfied dependencies detected during [J/JA/JAMES/CGI-SSI-0.53.tar.gz] ----- Date::Parse HTML::SimpleParse Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module Date::Parse Running make for G/GB/GBARR/TimeDate-1.14.tar.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR/TimeDate-1.14.tar.gz Checksum for /root/.cpan/sources/authors/id/G/GB/GBARR/TimeDate-1.14.tar.gz ok TimeDate-1.14/ TimeDate-1.14/lib/ TimeDate-1.14/lib/Date/ TimeDate-1.14/lib/Date/Language.pm TimeDate-1.14/lib/Date/Language/ TimeDate-1.14/lib/Date/Language/French.pm TimeDate-1.14/lib/Date/Language/Danish.pm TimeDate-1.14/lib/Date/Language/Dutch.pm TimeDate-1.14/lib/Date/Language/German.pm TimeDate-1.14/lib/Date/Language/Brazilian.pm TimeDate-1.14/lib/Date/Language/Italian.pm TimeDate-1.14/lib/Date/Language/Austrian.pm TimeDate-1.14/lib/Date/Language/Norwegian.pm TimeDate-1.14/lib/Date/Language/English.pm TimeDate-1.14/lib/Date/Language/Czech.pm TimeDate-1.14/lib/Date/Language/Greek.pm TimeDate-1.14/lib/Date/Format.pm TimeDate-1.14/lib/Date/Parse.pm TimeDate-1.14/lib/Time/ TimeDate-1.14/lib/Time/Zone.pm TimeDate-1.14/t/ TimeDate-1.14/t/getdate.t TimeDate-1.14/t/date.t TimeDate-1.14/t/lang.t TimeDate-1.14/t/format.t TimeDate-1.14/ChangeLog TimeDate-1.14/Makefile.PL TimeDate-1.14/README TimeDate-1.14/MANIFEST CPAN.pm: Going to build G/GB/GBARR/TimeDate-1.14.tar.gz Checking if your kit is complete... Looks good Writing Makefile for TimeDate mkdir blib mkdir blib/lib mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/TimeDate mkdir blib/lib/auto mkdir blib/lib/auto/TimeDate mkdir blib/man3 cp lib/Date/Language/Italian.pm blib/lib/Date/Language/Italian.pm cp lib/Date/Language/Norwegian.pm blib/lib/Date/Language/Norwegian.pm cp lib/Date/Language/English.pm blib/lib/Date/Language/English.pm cp lib/Date/Language/French.pm blib/lib/Date/Language/French.pm cp lib/Date/Language/Austrian.pm blib/lib/Date/Language/Austrian.pm cp lib/Date/Language/Brazilian.pm blib/lib/Date/Language/Brazilian.pm cp lib/Date/Language/Greek.pm blib/lib/Date/Language/Greek.pm cp lib/Date/Language/German.pm blib/lib/Date/Language/German.pm cp lib/Date/Language/Dutch.pm blib/lib/Date/Language/Dutch.pm cp lib/Date/Language/Czech.pm blib/lib/Date/Language/Czech.pm cp lib/Date/Language/Danish.pm blib/lib/Date/Language/Danish.pm cp lib/Date/Parse.pm blib/lib/Date/Parse.pm cp lib/Date/Format.pm blib/lib/Date/Format.pm cp lib/Date/Language.pm blib/lib/Date/Language.pm cp lib/Time/Zone.pm blib/lib/Time/Zone.pm Manifying blib/man3/Date::Parse.3pm Manifying blib/man3/Date::Format.3pm Manifying blib/man3/Time::Zone.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/date.......ok t/format.....ok t/getdate....ok t/lang.......ok All tests successful. Files=4, Tests=405, 1 wallclock secs ( 0.18 cusr + 0.01 csys = 0.19 CPU) /usr/bin/make test -- OK Running make install Installing /usr/lib/perl5/site_perl/5.6.0/Time/Zone.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Parse.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Format.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Italian.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Norwegian.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/English.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/French.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Austrian.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Brazilian.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Greek.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/German.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Dutch.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Czech.pm Installing /usr/lib/perl5/site_perl/5.6.0/Date/Language/Danish.pm Installing /usr/share/man/man3/Date::Parse.3pm Installing /usr/share/man/man3/Date::Format.3pm Installing /usr/share/man/man3/Time::Zone.3pm Writing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/TimeDate/.packlist Appending installation info to /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod /usr/bin/make install -- OK Running install for module HTML::SimpleParse Running make for K/KW/KWILLIAMS/HTML-SimpleParse-0.11.tar.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/K/KW/KWILLIAMS/HTML-SimpleParse-0.11.tar.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/K/KW/KWILLIAMS/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/K/KW/KWILLIAMS/HTML-SimpleParse-0.11.tar.gz ok HTML-SimpleParse-0.11/ HTML-SimpleParse-0.11/Build.PL HTML-SimpleParse-0.11/Changes HTML-SimpleParse-0.11/lib/ HTML-SimpleParse-0.11/lib/HTML/ HTML-SimpleParse-0.11/lib/HTML/SimpleParse.pm HTML-SimpleParse-0.11/Makefile.PL HTML-SimpleParse-0.11/MANIFEST HTML-SimpleParse-0.11/META.yml HTML-SimpleParse-0.11/README HTML-SimpleParse-0.11/test.pl CPAN.pm: Going to build K/KW/KWILLIAMS/HTML-SimpleParse-0.11.tar.gz Checking if your kit is complete... Looks good Writing Makefile for HTML::SimpleParse mkdir blib mkdir blib/lib mkdir blib/lib/HTML mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/HTML mkdir blib/arch/auto/HTML/SimpleParse mkdir blib/lib/auto mkdir blib/lib/auto/HTML mkdir blib/lib/auto/HTML/SimpleParse mkdir blib/man3 cp lib/HTML/SimpleParse.pm blib/lib/HTML/SimpleParse.pm Manifying blib/man3/HTML::SimpleParse.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 test.pl 1..23 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok 21 ok 22 ok 23 /usr/bin/make test -- OK Running make install Installing /usr/lib/perl5/site_perl/5.6.0/HTML/SimpleParse.pm Installing /usr/share/man/man3/HTML::SimpleParse.3pm Writing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/HTML/SimpleParse/.packlist Appending installation info to /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod /usr/bin/make install -- OK Running make for J/JA/JAMES/CGI-SSI-0.53.tar.gz Is already unwrapped into directory /root/.cpan/build/CGI-SSI-0.53 CPAN.pm: Going to build J/JA/JAMES/CGI-SSI-0.53.tar.gz mkdir blib mkdir blib/lib mkdir blib/lib/CGI mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/CGI mkdir blib/arch/auto/CGI/SSI mkdir blib/lib/auto mkdir blib/lib/auto/CGI mkdir blib/lib/auto/CGI/SSI mkdir blib/man3 cp SSI.pm blib/lib/CGI/SSI.pm Manifying blib/man3/CGI::SSI.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 test.pl 1..18 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 /usr/bin/make test -- OK Running make install Installing /usr/lib/perl5/site_perl/5.6.0/CGI/SSI.pm Installing /usr/share/man/man3/CGI::SSI.3pm Writing /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/CGI/SSI/.packlist Appending installation info to /usr/lib/perl5/5.6.0/i386-linux/perllocal.pod /usr/bin/make install -- OK | |