Re: libpq.so.5 cannot open shared object file.
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WHqa6gxK-yVOtENSEoDJdcLo=EdKS-bUG=dRA+RutnR_A@mail.gmail.com> |
This doesn't sound like an Aubit4GL issue..
Is there anything after the "Error opening terminal: xterm" ?
What if you set :
export TERM=linux
Does setting DEBUG=ALL leave any clues in the "debug.out" ?
When you log in normally - is LD_LIBRARY_PATH set to anything ?
(Make sure you're appending $AUBITDIR/lib and ${PG}/lib to it - rather than
replacing it)
On 31 January 2013 03:12, Daniel Richardson <[email protected]> wrote:
> Thank you. adding ${PG}/lib to LD_LIBRARY_PATH solved the compile
> failure. Now, the next stumbling block. Running the compiled program
> produces:
> Error opening terminal: xterm.
> But if ${PG}/lib is removed from the LD_LIBRARY_PATH and the database
> statement is removed, the re-compiled program run just find.
> Any help would be appreciated.
>
>
> ------------------------------
> *From:* Mike Aubury <[email protected]>
> *To:* Daniel Richardson <[email protected]>
> *Cc:* aubit <[email protected]>
> *Sent:* Wednesday, January 30, 2013 2:42 AM
> *Subject:* Re: [Aubit4gl-discuss] libpq.so.5 cannot open shared object
> file.
>
> Looks like it cant find the libpq (postgresql) library..
> Do yo have that on your system ?
> If so - try adding the directory containing it to your LD_LIBRARY_PATH
> If not - is there a newer version or something eg. "*libpq.so.6" *
> If so - you'll need to recompile aubit4gl so the libSQL_pg8 links to the
> right one...
>
>
> On 30 January 2013 04:04, Daniel Richardson <[email protected]> wrote:
>
> I'm having a bit of a time connecting to postgres. Can someone help?
>
> This compiles/runs just fine using this
> 4glpc -o go go.4gl
>
> *main
> *
> *display 'go............' at 10,10*
> *end main*
>
> However, using the same command on the same .4gl only with a database
> statement added
>
> *database ijk*
> *main*
> *display 'go............' at 10,10*
> *end main*
>
> Produces the following message:
> *Error: can't open DLL /home/aubit/aubitDir/plugins-1.2_28/libSQL_pg8.so
> - STOP*
> *Error msg: libpq.so.5: cannot open shared object file: No such file or
> directory*
> *Cannot open DLL*
> *Error compiling go.4gl*
> *Exit program.. 44*
>
> The following is from .bash_profile
> export PG=/opt/PostgreSQL/9.2
> export PGDATA=/opt/ixex/devl/data
> export AUBITDIR=/home/aubit/aubitDir
> export A4GL_SQLTYPE=pg8
> export A4GL_LEXTYPE=C
> export PGDATABASE=postgres
> export PGPORT=5432
> export PGLOCALEDIR=${PG}/share/locale
> export MANPATH=$MANPATH:${PG}/share/man
> export PATH=.:$PATH:${PG}/bin:${AUBITDIR}/bin
> export LD_LIBRARY_PATH=${AUBITDIR}/lib
>
> I probably do not need PGLOCALDIR
>
> Can someone clue me in on what I might be missing?
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>
>
>
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss