Thread

  1. On NetBSD, had to add -Wl, -R/usr/local/postgres/lib to the src/Makefile.global LIB variable

    Scott Williams <scott@james.com> — 2001-02-16T07:51:57Z

    Priority: probably low.
    
    Background:
      
      uname -a:
        NetBSD scotts 1.5 NetBSD 1.5 (GENERIC) #1: Sun Nov 19 21:42:11 MET 2000
          fvdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC i386
    
      Postgresql version: 7.0.3
    
      To configure I did a `./configure --prefix=/usr/local/postgres'.
      This is straight "out-of-the-box", so I didn't apply any of the
      NetBSD pkgsrc patches.
    
    My problem & fix:
    
      I had to add -Wl,-R/usr/local/postgres/lib to the
      src/Makefile.global LIB variable.  Otherwise, doing a
      'ldd /usr/local/postgres/bin/psql' after installation
      reported that it couldn't find libpg (`-lpq.2 => Not Found'
      or something like that).
    
    Remarks:
    
      There's almost certainly a better way, since src/Makefile.global is
      automatically generated, but I'm still getting acclimated to NetBSD
      and Postgres build.
    
    - Scott Williams
    
    
  2. Re: On NetBSD, had to add -Wl,-R/usr/local/postgres/lib to the src/Makefile.global LIB variable

    Peter Eisentraut <peter_e@gmx.net> — 2001-02-16T19:59:00Z

    Scott Williams writes:
    
    >   I had to add -Wl,-R/usr/local/postgres/lib to the
    >   src/Makefile.global LIB variable.  Otherwise, doing a
    >   'ldd /usr/local/postgres/bin/psql' after installation
    >   reported that it couldn't find libpg (`-lpq.2 => Not Found'
    >   or something like that).
    
    In the past we have suggested to set the LD_LIBRARY_PATH variable
    appropriately.  Version 7.1 fixes this by using the option you mention.
    
    -- 
    Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/