* [Comm] postgres, chroot, contribs
@ 2005-03-31 7:43 Fred
2005-03-31 12:19 ` Dmitry Lebkov
0 siblings, 1 reply; 8+ messages in thread
From: Fred @ 2005-03-31 7:43 UTC (permalink / raw)
To: community
Проиветствую!
Я уже задавал вопрос про установку контрибов. Вчера стал ставить, не
срастается :(.
Итак,
Dmitry Lebkov wrote:
> Копируй нужные загружаемые модули из контриба в
> /var/lib/pgsql-root/usr/lib/pgsql
Ок, собранные модули лежат в /var/lib/pgsql-root/usr/lib/pgsql
$ psql template1 -U postgres
template1=# \i /var/lib/pgsql-root/usr/lib/pgsql/misc_utils.sql
SET
psql:/var/lib/pgsql-root/usr/lib/pgsql/misc_utils.sql:19: ERROR: could not
access file "$libdir/misc_utils": No such file or directory
psql:/var/lib/pgsql-root/usr/lib/pgsql/misc_utils.sql:26: ERROR: could not
access file "$libdir/misc_utils": No such file or directory
и так далее...
$ pg_config --libdir
/usr/lib
$ pg_config --pkglibdir
/usr/lib/pgsql
Что я не так делаю? Все-таки, что где должно лежать? Сим-линки какие-то надо
прописывать?
Может, вопрос и элементарный для кого-то, но на самом деле какой-нибудь
README.ALT к контрибам не помешал бы.
Заранее спасибо.
--
Fred.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postgres, chroot, contribs
2005-03-31 7:43 [Comm] postgres, chroot, contribs Fred
@ 2005-03-31 12:19 ` Dmitry Lebkov
2005-03-31 13:14 ` Fred
0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Lebkov @ 2005-03-31 12:19 UTC (permalink / raw)
To: community
Fred wrote:
> Проиветствую!
>
> Я уже задавал вопрос про установку контрибов. Вчера стал ставить, не
> срастается :(.
>
> Итак,
>
> Dmitry Lebkov wrote:
>
>>Копируй нужные загружаемые модули из контриба в
>>/var/lib/pgsql-root/usr/lib/pgsql
>
>
> Ок, собранные модули лежат в /var/lib/pgsql-root/usr/lib/pgsql
>
> $ psql template1 -U postgres
>
> template1=# \i /var/lib/pgsql-root/usr/lib/pgsql/misc_utils.sql
/var/lib/pgsql-root - это chroot. Вот относительно его и указывай.
Т.е. \i /usr/lib/pgsql/misc_utils.sql. Но файл misc_utils.sql (как
и каталоги с модулями) должен находиться в
/var/lib/pgsql-root/usr/lib/pgsql/
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postgres, chroot, contribs
2005-03-31 12:19 ` Dmitry Lebkov
@ 2005-03-31 13:14 ` Fred
2005-03-31 13:39 ` Dmitry Lebkov
0 siblings, 1 reply; 8+ messages in thread
From: Fred @ 2005-03-31 13:14 UTC (permalink / raw)
To: community
On Thursday 31 March 2005 16:19, Dmitry Lebkov wrote:
Спаисбо, Дмитрий, что откликнулись.
> /var/lib/pgsql-root - это chroot. Вот относительно его и указывай.
> Т.е. \i /usr/lib/pgsql/misc_utils.sql. Но файл misc_utils.sql (как
> и каталоги с модулями) должен находиться в
> /var/lib/pgsql-root/usr/lib/pgsql/
Да, я, конечно пробовал и так.
template1=# \i /usr/lib/pgsql/misc_utils.sql
/usr/lib/pgsql/misc_utils.sql: No such file or directory
ls -l /var/lib/pgsql-root/usr/lib/pgsql/misc_utils.sql
-rw-r--r-- 1 root root 1132 Mar 30
15:12 /var/lib/pgsql-root/usr/lib/pgsql/misc_utils.sql
--
Yours,
Fred.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postgres, chroot, contribs
2005-03-31 13:14 ` Fred
@ 2005-03-31 13:39 ` Dmitry Lebkov
2005-03-31 14:02 ` Fred
2005-04-01 9:21 ` Fred
0 siblings, 2 replies; 8+ messages in thread
From: Dmitry Lebkov @ 2005-03-31 13:39 UTC (permalink / raw)
To: community
Fred wrote:
> On Thursday 31 March 2005 16:19, Dmitry Lebkov wrote:
>
> Спаисбо, Дмитрий, что откликнулись.
>
>
>>/var/lib/pgsql-root - это chroot. Вот относительно его и указывай.
>>Т.е. \i /usr/lib/pgsql/misc_utils.sql. Но файл misc_utils.sql (как
>>и каталоги с модулями) должен находиться в
>>/var/lib/pgsql-root/usr/lib/pgsql/
Гнусно соврамши! %) psql'ю нет дела до серверного chroot'а.
Вобщем вот так ... Модуль misc_utils.so надо скопировать в chroot
postgresql'я. Напрмер в /var/lib/pgsql-root/usr/lib/pgsql. После чего
в файле misc_utils.sql исправить пути. В моем случае:
AS '/lib/miscutil/misc_utils'
менял на
AS '/usr/lib/pgsql/misc_utils'
Далее:
$psql -U radius <./misc_utils.sql
SET
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
Всё.
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postgres, chroot, contribs
2005-03-31 13:39 ` Dmitry Lebkov
@ 2005-03-31 14:02 ` Fred
2005-03-31 14:39 ` Dmitry Lebkov
2005-04-01 9:21 ` Fred
1 sibling, 1 reply; 8+ messages in thread
From: Fred @ 2005-03-31 14:02 UTC (permalink / raw)
To: community
On Thursday 31 March 2005 17:39, Dmitry Lebkov wrote:
> Гнусно соврамши! %) psql'ю нет дела до серверного chroot'а.
> Вобщем вот так ... Модуль misc_utils.so надо скопировать в chroot
> postgresql'я. Напрмер в /var/lib/pgsql-root/usr/lib/pgsql. После чего
> в файле misc_utils.sql исправить пути. В моем случае:
>
> AS '/lib/miscutil/misc_utils'
> менял на
> AS '/usr/lib/pgsql/misc_utils'
И так для каждого модуля? Клево...
В моем случае это - AS '$libdir/misc_utils'
Спасибо :).
Current mood: Пошел менять либдыр. Дыр. Дыр.
--
Yours,
Fred.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postgres, chroot, contribs
2005-03-31 14:02 ` Fred
@ 2005-03-31 14:39 ` Dmitry Lebkov
2005-03-31 16:02 ` Fred
0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Lebkov @ 2005-03-31 14:39 UTC (permalink / raw)
To: community
Fred wrote:
> On Thursday 31 March 2005 17:39, Dmitry Lebkov wrote:
>
>>Гнусно соврамши! %) psql'ю нет дела до серверного chroot'а.
>>Вобщем вот так ... Модуль misc_utils.so надо скопировать в chroot
>>postgresql'я. Напрмер в /var/lib/pgsql-root/usr/lib/pgsql. После чего
>>в файле misc_utils.sql исправить пути. В моем случае:
>>
>>AS '/lib/miscutil/misc_utils'
>>менял на
>>AS '/usr/lib/pgsql/misc_utils'
>
>
> И так для каждого модуля? Клево...
Дык эта ... Опаньки ... Минимализм + chroot, однако ... ;)
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postgres, chroot, contribs
2005-03-31 14:39 ` Dmitry Lebkov
@ 2005-03-31 16:02 ` Fred
0 siblings, 0 replies; 8+ messages in thread
From: Fred @ 2005-03-31 16:02 UTC (permalink / raw)
To: community
On Thursday 31 March 2005 18:39, Dmitry Lebkov wrote:
> Fred wrote:
> > On Thursday 31 March 2005 17:39, Dmitry Lebkov wrote:
> >>Гнусно соврамши! %) psql'ю нет дела до серверного chroot'а.
> >>Вобщем вот так ... Модуль misc_utils.so надо скопировать в chroot
> >>postgresql'я. Напрмер в /var/lib/pgsql-root/usr/lib/pgsql. После чего
> >>в файле misc_utils.sql исправить пути. В моем случае:
> >>
> >>AS '/lib/miscutil/misc_utils'
> >>менял на
> >>AS '/usr/lib/pgsql/misc_utils'
> >
> > И так для каждого модуля? Клево...
>
> Дык эта ... Опаньки ... Минимализм + chroot, однако ... ;)
Все, разобрался. Спасибо.
Действительно, элементарно :-(.
Потому что тихо должно быть в библиотеке! (зачеркнуто)
Потому что библиотеки должны быть в чруте! :)
--
Yours,
Fred.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postgres, chroot, contribs
2005-03-31 13:39 ` Dmitry Lebkov
2005-03-31 14:02 ` Fred
@ 2005-04-01 9:21 ` Fred
1 sibling, 0 replies; 8+ messages in thread
From: Fred @ 2005-04-01 9:21 UTC (permalink / raw)
To: community
On Thursday 31 March 2005 17:39, Dmitry Lebkov wrote:
> Гнусно соврамши! %) psql'ю нет дела до серверного chroot'а.
>
> Вобщем вот так ... Модуль misc_utils.so надо скопировать в chroot
> postgresql'я. Напрмер в /var/lib/pgsql-root/usr/lib/pgsql. После чего
> в файле misc_utils.sql исправить пути. В моем случае:
>
> AS '/lib/miscutil/misc_utils'
> менял на
> AS '/usr/lib/pgsql/misc_utils'
Кстати, я пути не менял никакие. Просто библиотеки перенести оказалось
достаточно.
--
Yours,
Fred.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-04-01 9:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-31 7:43 [Comm] postgres, chroot, contribs Fred
2005-03-31 12:19 ` Dmitry Lebkov
2005-03-31 13:14 ` Fred
2005-03-31 13:39 ` Dmitry Lebkov
2005-03-31 14:02 ` Fred
2005-03-31 14:39 ` Dmitry Lebkov
2005-03-31 16:02 ` Fred
2005-04-01 9:21 ` Fred
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