Обсуждение: pg_top problem

Поиск
Список
Период
Сортировка

pg_top problem

От
S Arvind
Дата:
after installing pg_top, when i tried to start it, i got this msg, how to solve it

# pg_top
pg_top: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

--Arvind S


"Many of lifes failure are people who did not realize how close they were to success when they gave up."
-Thomas Edison

Re: pg_top problem

От
Devrim GÜNDÜZ
Дата:
On Thu, 2009-05-14 at 14:57 +0530, S Arvind wrote:
> after installing pg_top, when i tried to start it, i got this msg, how
> to solve it
>
> # pg_top
> pg_top: error while loading shared libraries: libpq.so.5: cannot open
> shared object file: No such file or directory

So libpq.so.5 is not in your LD_LIBRARY_PATH. You may want to add the
directory that contains libpq.so.5 to /etc/ld.so.conf and run ldconfig
(as root). Another option might be running

LD_LIBRARY_PATH=/path/to/libpq.so.5 pg_top

-HTH.
--
Devrim GÜNDÜZ, RHCE
Command Prompt - http://www.CommandPrompt.com
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                   http://www.gunduz.org

Вложения

Re: pg_top problem

От
S Arvind
Дата:
Thanks Devrim,
    I can understand the prob, but when i tried to use the second method it raises the same error. And the first method can u tell me how to add the libpq.so.5 in conf file? since i am new to linux , so i dont know more about it... currently that file has only one line

include ld.so.conf.d/*.conf

i tried including that but got error while ldconfig

can u pls tell how to implement...



"Many of lifes failure are people who did not realize how close they were to success when they gave up."
-Thomas Edison



2009/5/14 Devrim GÜNDÜZ <devrim@gunduz.org>
On Thu, 2009-05-14 at 14:57 +0530, S Arvind wrote:
> after installing pg_top, when i tried to start it, i got this msg, how
> to solve it
>
> # pg_top
> pg_top: error while loading shared libraries: libpq.so.5: cannot open
> shared object file: No such file or directory

So libpq.so.5 is not in your LD_LIBRARY_PATH. You may want to add the
directory that contains libpq.so.5 to /etc/ld.so.conf and run ldconfig
(as root). Another option might be running

LD_LIBRARY_PATH=/path/to/libpq.so.5 pg_top

-HTH.
--
Devrim GÜNDÜZ, RHCE
Command Prompt - http://www.CommandPrompt.com
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                  http://www.gunduz.org

Re: pg_top problem

От
S Arvind
Дата:
Devrim i found out and its working fine... Very thanks...

-Arvind S


"Many of lifes failure are people who did not realize how close they were to success when they gave up."
-Thomas Edison



On Thu, May 14, 2009 at 10:00 PM, S Arvind <arvindwill@gmail.com> wrote:
Thanks Devrim,
    I can understand the prob, but when i tried to use the second method it raises the same error. And the first method can u tell me how to add the libpq.so.5 in conf file? since i am new to linux , so i dont know more about it... currently that file has only one line

include ld.so.conf.d/*.conf

i tried including that but got error while ldconfig

can u pls tell how to implement...




"Many of lifes failure are people who did not realize how close they were to success when they gave up."
-Thomas Edison



2009/5/14 Devrim GÜNDÜZ <devrim@gunduz.org>

On Thu, 2009-05-14 at 14:57 +0530, S Arvind wrote:
> after installing pg_top, when i tried to start it, i got this msg, how
> to solve it
>
> # pg_top
> pg_top: error while loading shared libraries: libpq.so.5: cannot open
> shared object file: No such file or directory

So libpq.so.5 is not in your LD_LIBRARY_PATH. You may want to add the
directory that contains libpq.so.5 to /etc/ld.so.conf and run ldconfig
(as root). Another option might be running

LD_LIBRARY_PATH=/path/to/libpq.so.5 pg_top

-HTH.
--
Devrim GÜNDÜZ, RHCE
Command Prompt - http://www.CommandPrompt.com
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                  http://www.gunduz.org