ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm]  perl-Pg -- как установить
@ 2008-10-30 15:54 Ilis
  2008-10-30 15:59 ` Michael Bochkaryov
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ilis @ 2008-10-30 15:54 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Поставил
[ilis@altus ~]$ rpm -qa | grep perl-Pg
perl-Pg-2.1.1-alt2.0

чтоб из перла в постгрес ходить... Не работает... Надо, что ли, руками
ещё что-то делать?

install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC
contains: /etc/perl5 /usr/lib/perl5/i386-linux /usr/lib/perl5
/usr/local/lib/perl5/site_perl/5.8.8/i386-linux
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/i386-linux /usr/lib/perl5/vendor_perl
/usr/lib/perl5/vendor_perl .) at (eval 4) line 3.
Perhaps the DBD::Pg perl module hasn't been fully installed,
or perhaps the capitalisation of 'Pg' isn't right.
Available drivers: Sponge.
 at ./test.pl line 25

-- 
Кругликов Илья

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Comm] perl-Pg -- как установить
  2008-10-30 15:54 [Comm] perl-Pg -- как установить Ilis
@ 2008-10-30 15:59 ` Michael Bochkaryov
  2008-10-30 16:00 ` Ilis
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Michael Bochkaryov @ 2008-10-30 15:59 UTC (permalink / raw)
  To: ALT Linux Community general discussions

30 октября 2008 г. 17:54 пользователь Ilis <ilis.krou@gmail.com> написал:
> Поставил
> [ilis@altus ~]$ rpm -qa | grep perl-Pg
> perl-Pg-2.1.1-alt2.0
>
> чтоб из перла в постгрес ходить... Не работает... Надо, что ли, руками
> ещё что-то делать?

apt-get install perl-DBD-Pg

-- 
Michael Bochkaryov

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Comm] perl-Pg -- как установить
  2008-10-30 15:54 [Comm] perl-Pg -- как установить Ilis
  2008-10-30 15:59 ` Michael Bochkaryov
@ 2008-10-30 16:00 ` Ilis
  2008-10-30 16:00 ` Alexey I. Froloff
  2009-12-14 13:23 ` Денис Смирнов
  3 siblings, 0 replies; 7+ messages in thread
From: Ilis @ 2008-10-30 16:00 UTC (permalink / raw)
  To: ALT Linux Community general discussions

30 октября 2008 г. 20:54 пользователь Ilis <ilis.krou@gmail.com> написал:
> Поставил
> [ilis@altus ~]$ rpm -qa | grep perl-Pg
> perl-Pg-2.1.1-alt2.0
>
> чтоб из перла в постгрес ходить... Не работает... Надо, что ли, руками
> ещё что-то делать?
>
> install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC
> contains: /etc/perl5 /usr/lib/perl5/i386-linux /usr/lib/perl5
> /usr/local/lib/perl5/site_perl/5.8.8/i386-linux
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/i386-linux /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/vendor_perl .) at (eval 4) line 3.
> Perhaps the DBD::Pg perl module hasn't been fully installed,
> or perhaps the capitalisation of 'Pg' isn't right.
> Available drivers: Sponge.
>  at ./test.pl line 25

Вот, вроде, почему:
Он ищет в
/usr/lib/perl5/vendor_perl/i386-linux/DBD/
а файл в
/usr/lib/perl5/vendor_perl/i386-linux

[ilis@altus ~]$ rpm -ql perl-Pg
/usr/lib/perl5/vendor_perl/i386-linux/Pg.pm
/usr/lib/perl5/vendor_perl/i386-linux/auto/Pg/Pg.so
/usr/share/doc/perl-Pg-2.1.1
/usr/share/doc/perl-Pg-2.1.1/Changes
/usr/share/doc/perl-Pg-2.1.1/MANIFEST
/usr/share/doc/perl-Pg-2.1.1/README
/usr/share/man/man3/Pg.3pm.gz
[ilis@altus ~]$ ls /usr/lib/perl5/vendor_perl/i386-linux
auto  DBI     Encode     encoding.pm    FBLE.pm    fb_stuff.pm  Image
 Pg.pm  RPM.pm  SDL_perl.pm  XML
DBD   DBI.pm  Encode.pm  fb_c_stuff.pm  fb_net.pm  fbsyms.pm    Locale
 RPM    SDL     SDL.pm
[ilis@altus ~]$ ls /usr/lib/perl5/vendor_perl/i386-linux/DBD/
Sponge.pm

Это баг?

-- 
Кругликов Илья

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Comm] perl-Pg -- как установить
  2008-10-30 15:54 [Comm] perl-Pg -- как установить Ilis
  2008-10-30 15:59 ` Michael Bochkaryov
  2008-10-30 16:00 ` Ilis
@ 2008-10-30 16:00 ` Alexey I. Froloff
  2008-10-30 16:09   ` Ilis
  2009-12-14 13:23 ` Денис Смирнов
  3 siblings, 1 reply; 7+ messages in thread
From: Alexey I. Froloff @ 2008-10-30 16:00 UTC (permalink / raw)
  To: Mailing list for ALT Linux users

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

* Ilis <ilis.krou@> [081030 18:56]:
> чтоб из перла в постгрес ходить... Не работает... Надо, что ли, руками
> ещё что-то делать?
...
> Perhaps the DBD::Pg perl module hasn't been fully installed,
Какое слово перевести?  Софтина не умеет работать с Pg, только с
DBI и DBD::Pg, а это совсем разные модули.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Comm] perl-Pg -- как установить
  2008-10-30 16:00 ` Alexey I. Froloff
@ 2008-10-30 16:09   ` Ilis
  2009-12-14 13:25     ` Денис Смирнов
  0 siblings, 1 reply; 7+ messages in thread
From: Ilis @ 2008-10-30 16:09 UTC (permalink / raw)
  To: ALT Linux Community general discussions

30 октября 2008 г. 21:00 пользователь Alexey I. Froloff
<raorn@altlinux.ru> написал:
> * Ilis <ilis.krou@> [081030 18:56]:
>> чтоб из перла в постгрес ходить... Не работает... Надо, что ли, руками
>> ещё что-то делать?
> ...
>> Perhaps the DBD::Pg perl module hasn't been fully installed,
> Какое слово перевести?  Софтина не умеет работать с Pg, только с
> DBI и DBD::Pg, а это совсем разные модули.
>

Никакое не надо. Софтина вообще ничего не умеет, я её ещё не научил...

Поставил (спасибо > Michael Bochkaryov)
> apt-get install perl-DBD-Pg

, заработало.

Просто сразу не уловил разницу... Изначально вообще поставил postgresql8.2-perl

-- 
Кругликов Илья

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Comm] perl-Pg -- как установить
  2008-10-30 15:54 [Comm] perl-Pg -- как установить Ilis
                   ` (2 preceding siblings ...)
  2008-10-30 16:00 ` Alexey I. Froloff
@ 2009-12-14 13:23 ` Денис Смирнов
  3 siblings, 0 replies; 7+ messages in thread
From: Денис Смирнов @ 2009-12-14 13:23 UTC (permalink / raw)
  To: ALT Linux Community general discussions

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

On Thu, Oct 30, 2008 at 08:54:35PM +0500, Ilis wrote:

I> [ilis@altus ~]$ rpm -qa | grep perl-Pg
I> perl-Pg-2.1.1-alt2.0
I> чтоб из перла в постгрес ходить... Не работает... Надо, что ли, руками
I> ещё что-то делать?

Вы путаете perl-Pg и perl-DBD-Pg

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Comm] perl-Pg -- как установить
  2008-10-30 16:09   ` Ilis
@ 2009-12-14 13:25     ` Денис Смирнов
  0 siblings, 0 replies; 7+ messages in thread
From: Денис Смирнов @ 2009-12-14 13:25 UTC (permalink / raw)
  To: ALT Linux Community general discussions

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

On Thu, Oct 30, 2008 at 09:09:36PM +0500, Ilis wrote:

I> Просто сразу не уловил разницу... Изначально вообще поставил postgresql8.2-perl

Лучше ставить так:

apt-get install 'perl(DBD/Pg.pm)'

и так с любым модулем. Не надо гадать, лучше ставить ровно то что надо :)

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-14 13:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 15:54 [Comm] perl-Pg -- как установить Ilis
2008-10-30 15:59 ` Michael Bochkaryov
2008-10-30 16:00 ` Ilis
2008-10-30 16:00 ` Alexey I. Froloff
2008-10-30 16:09   ` Ilis
2009-12-14 13:25     ` Денис Смирнов
2009-12-14 13:23 ` Денис Смирнов

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git