pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
FW: Help installing pgSQL 7.4.2 on Solaris 9
2+ messages / 2 participants
[nested] [flat]

* FW: Help installing pgSQL 7.4.2 on Solaris 9
@ 2004-05-07 20:59  Jeff Stout <jstout@cctus.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Jeff Stout @ 2004-05-07 20:59 UTC (permalink / raw)
  To: pgsql-admin

I am trying to install pgSQL 7.4.2 on Solaris 9

I am using gcc 3.3.2, readline 4.3, perl 5.8,

my full PATH is
/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin: \
/usr/bin:/usr/sbin

After downloading and un-taring/un-ziping

I run ./configure

I don't see any errors.

when I run "make" (gnu make 3.80) all hell breaks loose

I get tons of
gcc - 02 -fno-strict-aliasing -Wall -Wmissing-protypes -Wmissing-declaration

when it is entering in and out of directories

This completes, then I run "make install"

same gcc errors but not as many

When I try to initialize the DB this it where everything stops.

su postgres
./initdb -D /usr/local/pgsql/data

The program /usr/local/pgsql/bin/postgress   needed by
initdb does not belong to PostgreSQL version 7.4.2
or there may be a configuration problem

ld.so.1:/usr/local/pgsql/bin/postgres: fatal:
libreadline.so.4  open failed: No such file or directory


I'm not sure what I'm missing, the install seems pretty straight forward
I've tried different versions of postgres 7.4.1 and 7.4 same errors.

Any help or advice would be greatly appreciated.

Thanks
Jeff Stout
CCT









^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: FW: Help installing pgSQL 7.4.2 on Solaris 9
@ 2004-05-07 22:06  Jim Seymour <jseymour@LinxNet.com>
  parent: Jeff Stout <jstout@cctus.com>
  0 siblings, 0 replies; 2+ messages in thread

From: jseymour@LinxNet.com @ 2004-05-07 22:06 UTC (permalink / raw)
  To: pgsql-admin

"Jeff Stout" <jstout@cctus.com> wrote:
> 
> I am trying to install pgSQL 7.4.2 on Solaris 9
> 
> I am using gcc 3.3.2, readline 4.3, perl 5.8,
> 
> my full PATH is
> /usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin: \
> /usr/bin:/usr/sbin
> 
> After downloading and un-taring/un-ziping
> 
> I run ./configure
> 
> I don't see any errors.
> 
> when I run "make" (gnu make 3.80) all hell breaks loose
> 
> I get tons of
> gcc - 02 -fno-strict-aliasing -Wall -Wmissing-protypes -Wmissing-declaration

That's just the makefile commands being echo'd.  Have you never built a
package from a source tarball before?  This is normal.

> 
> when it is entering in and out of directories
> 
> This completes, then I run "make install"
> 
> same gcc errors but not as many
> 
> When I try to initialize the DB this it where everything stops.
> 
> su postgres
> ./initdb -D /usr/local/pgsql/data
> 
> The program /usr/local/pgsql/bin/postgress   needed by
> initdb does not belong to PostgreSQL version 7.4.2
> or there may be a configuration problem
> 
> ld.so.1:/usr/local/pgsql/bin/postgres: fatal:
> libreadline.so.4  open failed: No such file or directory

Don't know about the "doesn't belong or..." problem, but the second one
is probably due to the same thing as I suggested to another Solaris
user, just within the last few days...

Is directory containing libreadline in LD_LIBRARY_PATH when you're su'd
to the postgreSQL user?

I added 

    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib; export LD_LIBRARY_PATH

to /etc/init.d/postgresql and created a .profile in its home directory
with that in it.

Solved all those problems :).

You can also solve such problems by using the -R switch during build
(man ld) and with Solaris 8/9's new "crle" utility.

-- 
Jim Seymour                | Spammers sue anti-spammers:
jseymour@LinxNet.com       |     http://www.LinxNet.com/misc/spam/slapp.php
http://jimsun.LinxNet.com  | Please donate to the SpamCon Legal Fund:
                           |     http://www.spamcon.org/legalfund/



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-05-07 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-07 20:59 FW: Help installing pgSQL 7.4.2 on Solaris 9 Jeff Stout <jstout@cctus.com>
2004-05-07 22:06 ` Jim Seymour <jseymour@LinxNet.com>

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