pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Spiegelberg <gspiegelberg@cranel.com>
To: pgsql-admin@postgresql.org
Subject: Re: Starting postgres on Solaris
Date: Tue, 17 Jun 2003 09:24:12 -0400
Message-ID: <3EEF167C.4000501@cranel.com> (raw)
References: <B7D27A23094E40428993B399E9CD427234F114@2kmail>

Brent,

Sounds like you don't have the runtime linker (ld.so) configured
correctly or don't have your environment setup.

Solaris 8 & 9 has a command, crle, which is similar to the Linux
ldconfig command.  I typically add all lib paths to it so I don't have
to worry about setting environment variables for all the different
shells.  As a best practice I have a bootup script which runs this on
every boot in case libraries are added, removed or patched.

As root or in a startup script...

# crle -c /var/ld/ld.config -l \
   /usr/lib:/usr/local/lib:/usr/local/ssl/lib:/apps/pgsql/lib \
   -i /usr/lib -i /usr/local/lib -i /usr/local/ssl/lib -i /apps/pgsql/lib

See crle(1) man page for all the options.

Greg


Brent Howard wrote:
> Hi,
> 
> I am trying to start postgres from the command line on Solaris 8.  I rebooted my server and now all i get when i try to start postgres is an error.  I listed the error below.
> 
> Is there a way to get postgres to read/reference the libraries correctly?  How do i fix this problem, without rebuilding postgres?  
> 
> $> su - postgres
> 
> bash-2.03$ cd /usr/local/pgsql/bin
> 
> bash-2.03$ ./postmaster
> 	ld.so.1: ./postmaster: fatal: relocation error: file /usr/local/ssl/lib/libcrypto.so.0.9.6: symbol __register_frame_info: referenced symbol not found
> 	Killed
> 
> bash-2.03$
> 
> 
> ----
> Any help would be appreciated.
> 
> 
> B~
> 
> ps.  If i must rebuild postgres, can i rebuild easily without losing my data?
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


-- 
Greg Spiegelberg
  Sr. Product Development Engineer
  Cranel, Incorporated.
  Phone: 614.318.4314
  Fax:   614.431.8388
  Email: gspiegelberg@Cranel.com
Cranel. Technology. Integrity. Focus.





view thread (2+ messages)

Message-ID: <3EEF167C.4000501@cranel.com>
Permalink:  ../3EEF167C.4000501@cranel.com/
Also on:    postgresql.org/message-id/3EEF167C.4000501@cranel.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: gspiegelberg@cranel.com
  Subject: Re: Starting postgres on Solaris
  In-Reply-To: <3EEF167C.4000501@cranel.com>
  References: <B7D27A23094E40428993B399E9CD427234F114@2kmail> <3EEF167C.4000501@cranel.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox