Thread: psql will not run

psql will not run

From
David Rickard
Date:
After a successful install, and with postmaster running, we cannot get psql (or any of the psql-dependent scripts) to run;

The error message is:

        ld.so.1: /usr/local/app/pgsql/bin/psql: fatal: libgcc_s.so.1: open failed: No such file or directory

We have the LD_LIBRARY_PATH variable for the postgres user set to /usr/local/lib:/d1/gcc/lib;

The contents of /usr/local/lib are:

        gcc-lib               libg2c.so.0           libgcj.la             libhistory.a          libiberty.a           libreadline.so        libstdc++.so          security
        libfrtbegin.a         libg2c.so.0.0.0       libgcj.so             libhistory.old        libobjc.a             libreadline.so.4      libstdc++.so.4        sparcv9
        libg2c.a              libgcc_s.so           libgcj.so.3           libhistory.so         libobjc.la            libreadline.so.4.old  libstdc++.so.4.0.0
        libg2c.la             libgcc_s.so.1         libgcj.so.3.0.0       libhistory.so.4       libreadline.a         libstdc++.a           libsupc++.a
        libg2c.so             libgcj.a              libgcj.spec           libhistory.so.4.old   libreadline.old       libstdc++.la          libsupc++.la

The contents of /d1/gcc/lib are:

        gcc-lib                   lib-org-xml-sax.la        libffi.so                 libgcc_s.so               libgcj.spec               libstdc++.so.5
        lib-org-w3c-dom.a         lib-org-xml-sax.so        libfrtbegin.a             libgcc_s.so.1             libiberty.a               libstdc++.so.5.0.4
        ib-org-w3c-dom.la        lib-org-xml-sax.so.0      libg2c.a                  libgcj.a                  libobjc.a                 libsupc++.a
        ib-org-w3c-dom.so        lib-org-xml-sax.so.0.0.0  libg2c.la                 libgcj.la                 libobjc.la                libsupc++.la
        ib-org-w3c-dom.so.0      libffi-2.00-beta.so       libg2c.so                 libgcj.so                 libstdc++.a               security
        ib-org-w3c-dom.so.0.0.0  libffi.a                  libg2c.so.0               libgcj.so.4               libstdc++.la              sparcv9
        ib-org-xml-sax.a         libffi.la                 libg2c.so.0.0.0           libgcj.so.4.0.0           libstdc++.so

I cannot see any reason why the linker cannot find libgcc_s.so.1; any ideas?

--

David Rickard
Software Engineer
The GTS Companies
A TechBooks Company

----------------------------------------------------------------------------------
The GTS Companies:
GTS Publishing Services, GTS Graphics, GTS Innova:
Your Single-Source Solution!
Los Angeles CA  *  York, PA  *  Boston MA  *  New Delhi, India
----------------------------------------------------------------------------------


David.Rickard@GTSCompanies.com
Visit us on the World Wide Web
http://www.gtscompanies.com
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 [fax]

Re: psql will not run

From
Tom Lane
Date:
David Rickard <David.Rickard@GTScompanies.com> writes:
> We have the LD_LIBRARY_PATH variable for the postgres user set to
> /usr/local/lib:/d1/gcc/lib;

If that semicolon is actually part of the variable value, it shouldn't
be.  But I'm not sure that's your problem.  What platform are you on?
LD_LIBRARY_PATH is not used on all Unixen.

            regards, tom lane

Re: psql will not run

From
Oliver Elphick
Date:
On Fri, 2003-09-05 at 19:19, David Rickard wrote:
> After a successful install, and with postmaster running, we cannot get
> psql (or any of the psql-dependent scripts) to run;
>
> The error message is:
>
>         ld.so.1: /usr/local/app/pgsql/bin/psql: fatal: libgcc_s.so.1:
> open failed: No such file or directory
>
> We have the LD_LIBRARY_PATH variable for the postgres user set to
> /usr/local/lib:/d1/gcc/lib;

Is it exported?

> The contents of /usr/local/lib are:
>
...
>       libgcc_s.so
> ...
>       libgcc_s.so.1
>
> I cannot see any reason why the linker cannot find libgcc_s.so.1; any
> ideas?

Are these maybe symlinks to non-existent files? Try ls -l

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "He hath not dealt with us after our sins; nor rewarded
      us according to our iniquities. For as the heaven is
      high above the earth, so great is his mercy toward
      them that fear him. As far as the east is from the
      west, so far hath he removed our transgressions from
      us."     Psalms 103:10-12