The OpenNET Project / Index page

[ новости /+++ | форум | wiki | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Perl не работает CPAN"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы WEB технологии (Perl)
Изначальное сообщение [ Отслеживать ]

"Perl не работает CPAN"  +/
Сообщение от EXA email(ok) on 18-Апр-10, 11:14 
Имею TrixBox, на базе CentOS 5.0, с предустановленным пёрлом, нужно мне пару модулей доставить и тут начались злопыхания.

perl -v

This is perl, v5.8.8 built for i386-linux-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


]# cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Bundle::CPAN
CPAN: Storable loaded ok
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Can't locate object method "data" via package "CPAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 20) line 1.
at /usr/lib/perl5/5.8.8/CPAN.pm line 3405
        CPAN::Index::rd_modlist('CPAN::Index', '/root/.cpan/sources/modules/03modlist.data.gz') called at /usr/lib/perl5/5.8.8/CPAN.pm line 3128
        CPAN::Index::reload('CPAN::Index') called at /usr/lib/perl5/5.8.8/CPAN.pm line 785
        CPAN::instance('CPAN=HASH(0xa2a4274)', 'CPAN::Bundle', 'Bundle::DBI') called at /usr/lib/perl5/5.8.8/CPAN.pm line 1427
        CPAN::Shell::local_bundles('CPAN::Shell') called at /usr/lib/perl5/5.8.8/CPAN.pm line 1835
        CPAN::Shell::expandany('CPAN::Shell', 'Bundle::CPAN') called at /usr/lib/perl5/5.8.8/CPAN.pm line 2077
        CPAN::Shell::rematein('CPAN::Shell', 'install', 'Bundle::CPAN') called at /usr/lib/perl5/5.8.8/CPAN.pm line 2164
        CPAN::Shell::install('CPAN::Shell', 'Bundle::CPAN') called at /usr/lib/perl5/5.8.8/CPAN.pm line 201
        eval {...} called at /usr/lib/perl5/5.8.8/CPAN.pm line 201
        CPAN::shell() called at /usr/bin/cpan line 193

cpan>


решил заюзать модуль Modulelist

!use CPAN::Modulelist
Can't locate CPAN/Modulelist.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8) at (eval 21) line 2, <FIN> line 2.
BEGIN failed--compilation aborted at (eval 21) line 2, <FIN> line 2.


Нашеёд исходник, создал файлик, но видать не всё так просто

http://www.koders.com/perl/fid69FA130F96E8C91F7859870AD23725...
Ссылка исходника.

# cd /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
[trixbox1.localdomain i386-linux-thread-multi]# ls -al
total 40
drwxr-xr-x 3 root root  4096 Apr 17 21:40 .
drwxr-xr-x 5 root root  4096 Dec  2  2008 ..
drwxr-xr-x 3 root root  4096 Dec  2  2008 auto
-rwxrw-rwx 1 root root 13762 Apr 17 21:36 Modulelist.pm


Вот такие вот проблемы, что делать не приложу, даже переставить не могу CPAN

cd /usr/src/perl588installer
./install
Can't locate Cpanel/CPAN/URI/Escape.pm in @INC (@INC contains: /scripts /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /scripts/cPScript/Encoder/URI.pm line 8.
BEGIN failed--compilation aborted at /scripts/cPScript/Encoder/URI.pm line 8.
Compilation failed in require at /scripts/cPScript/HttpRequest.pm line 15.
BEGIN failed--compilation aborted at /scripts/cPScript/HttpRequest.pm line 15.
Compilation failed in require at /scripts/cpfetch line 9.
BEGIN failed--compilation aborted at /scripts/cpfetch line 9.
Unable to retrieve Perl source at ./install line 39.

Если хочу доставить, то ясное дело не доставишь
cpan> install URI::Escape
CPAN: Storable loaded ok
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Can't locate object method "data" via package "CPAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 20) line 1.
at /usr/lib/perl5/5.8.8/CPAN.pm line 3405
        CPAN::Index::rd_modlist('CPAN::Index', '/root/.cpan/sources/modules/03modlist.data.gz') called at /usr/lib/perl5/5.8.8/CPAN.pm line 3128
        CPAN::Index::reload('CPAN::Index') called at /usr/lib/perl5/5.8.8/CPAN.pm line 675
        CPAN::exists('CPAN=HASH(0x89102f8)', 'CPAN::Module', 'URI::Escape') called at /usr/lib/perl5/5.8.8/CPAN.pm line 1841
        CPAN::Shell::expandany('CPAN::Shell', 'URI::Escape') called at /usr/lib/perl5/5.8.8/CPAN.pm line 2077
        CPAN::Shell::rematein('CPAN::Shell', 'install', 'URI::Escape') called at /usr/lib/perl5/5.8.8/CPAN.pm line 2164
        CPAN::Shell::install('CPAN::Shell', 'URI::Escape') called at /usr/lib/perl5/5.8.8/CPAN.pm line 201
        eval {...} called at /usr/lib/perl5/5.8.8/CPAN.pm line 201
        CPAN::shell() called at /usr/bin/cpan line 193


Подскажите пожалуйста, как решить эту проблему?

Высказать мнение | Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Perl не работает CPAN"  +/
Сообщение от EXA email(ok) on 18-Апр-10, 11:34 
Заинсталил руками URI, смотрю пути не сходятся

/usr/lib/perl5/vendor_perl/5.8.8/URI
/usr/lib/perl5/vendor_perl/5.8.8/URI.pm
/usr/lib/perl5/vendor_perl/5.8.8/URI/Escape.pm

А оно ищет
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi

Стоит ли глобально переписывать? Или ссылками делать, или что ещё? Боюсь чего зацепить у меря там FreePBX, и есть скрипты на пёрле.

Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

2. "Perl не работает CPAN"  +/
Сообщение от EXA email(ok) on 18-Апр-10, 11:50 
хотя есть такое

/usr/lib/perl5/vendor_perl/5.8.8

Сделал ссылки на сам модуль и на папку модуля, не работает. Жду советов.

Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Спонсоры:
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2021 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру