pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Rookie in installation-trouble -> PLEEEASE HELP
3+ messages / 3 participants
[nested] [flat]

* Rookie in installation-trouble -> PLEEEASE HELP
@ 2001-02-27 21:59 Christoph Lange <lucky78@gmx.net>
  2001-03-01 18:28 ` Re: Rookie in installation-trouble -> PLEEEASE HELP Peter Eisentraut <peter_e@gmx.net>
  2001-03-01 19:00 ` Re: Rookie in installation-trouble -> PLEEEASE HELP Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 3+ messages in thread

From: Christoph Lange @ 2001-02-27 21:59 UTC (permalink / raw)
  To: pgsql-admin

Hi Postgresql-experts,

this is a desperate cry for help to all of you. I am a rookie concerning
Unix and all kind of databases but I would like to install Postgresql 7.0.3 for
a test run in my home directory (/home/lange) on a Unix platform. I have
tried to get Postgresql running several times (means: downloads and subsequent
removals of file-chaos) by now, but haven&#8217;t succeeded yet. Using the
installation guide at
http://postgresql.siamu.ac.th/docs/postgres/install16147.htm I basically have produced two kinds of failure. I hope it is a very obvious
mistake and it would be very kind if somebody looked through those two
command scenarios and - if possible &#8211; gave some hints what to do or where to
find installation instructions for dummies.

SCENARIO 1: Installation under /home/lange/pgsql/postgresql-7.0.3
uranus% mkdir pgsql
uranus% mkdir pgsql/install
uranus% cd pgsql/install
uranus% gunzip postgresql-7.0.3.tar.gz
uranus% tar -xf postgresql-7.0.3.tar

uranus% cd /src
uranus% mkdir /home/lange/pgsql/arch_ind
uranus% mkdir /home/lange/pgsql/arch_dep
uranus% ./configure --prefix=/home/lange/pgsql/arch_ind
--exec-prefix=/home/lange/pgsql/arch_dep
uranus% gmake
uranus% gmake install
uranus% mkdir /home/lange/pgsql/data
uranus% chown lange /home/lange/pgsql/data
uranus% su - lange
uranus% chmod u+x /home/lange/pgsql/postgresql-7.0.3/src/bin/initdb/initdb

uranus% home/lange/pgsql/postgresql-7.0.3/src/bin/initdb/initdb -D
~/pgsql2/data

This last command does not work because the files &#8220;postgres&#8220;,
&#8222;psql&#8220; and &#8222;pg_version&#8220; as well as the
&#8222;lib&#8220; directory with all its files are missing. They do exist &#8211; spread
among all sublime directories of /home/lange/pgsql/postgresql-7.0.3 - and it is
possible to copy them into their right place so that the above command works,
but then you have to look for the &#8220;postmaster&#8221; and so on.
Basically no file is at its right place. In the end I could not use the command
&#8220;createdb&#8221; since something was wrong with the &#8220;libpq.so&#8221;
file. Anybody knows, what this is all about?


SCENARIO 2: Installation under /home/lange/usr
uranus% gunzip postgresql-7.0.3.tar.gz
uranus% tar -xf postgresql-7.0.3.tar

SINCE
uranus% mv postgresql-7.0.3 /home/lange/usr/src
PRODUCED THE MESSAGE
mv: postgresql-7.0.3 is a directory
I CHANGED
/home/lange/postgresql-7.0.3
INTO
/home/lange/usr

uranus% cd usr/src
uranus% ./configure
uranus% gmake
All of PostgreSQL is successfully made. Ready to install.

uranus% cd /home/lange/usr/src/test/regress
uranus% gmake all
uranus% gmake runcheck
ALL RESULTS WERE OK
uranus% cd /home/lange/usr/src

uranus% gmake install
./mkinstalldirs /usr/local/pgsql/bin /usr/local/pgsql/lib 
mkdir /usr/local
mkdir /usr/local/pgsql
mkdir /usr/local/pgsql/bin
mkdir /usr/local
mkdir /usr/local/pgsql
mkdir /usr/local/pgsql/lib
gmake: *** [installdirs] Error 2

Any idea?


PLEASE HELP &#8211; I am getting mad!
Thanks to all helpful Postgresql-experts.
Christoph Lange 



-- 
Sent through GMX FreeMail - http://www.gmx.net




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

* Re: Rookie in installation-trouble -> PLEEEASE HELP
  2001-02-27 21:59 Rookie in installation-trouble -> PLEEEASE HELP Christoph Lange <lucky78@gmx.net>
@ 2001-03-01 18:28 ` Peter Eisentraut <peter_e@gmx.net>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2001-03-01 18:28 UTC (permalink / raw)
  To: Christoph Lange <lucky78@gmx.net>; +Cc: pgsql-admin

Christoph Lange writes:

> uranus% cd /src
> uranus% mkdir /home/lange/pgsql/arch_ind
> uranus% mkdir /home/lange/pgsql/arch_dep
> uranus% ./configure --prefix=/home/lange/pgsql/arch_ind
> --exec-prefix=/home/lange/pgsql/arch_dep
  ^^^^^^^^^^^^^
This option doesn't work in 7.0.

> uranus% home/lange/pgsql/postgresql-7.0.3/src/bin/initdb/initdb -D
> ~/pgsql2/data
>
> This last command does not work because the files &#8220;postgres&#8220;,
> &#8222;psql&#8220; and &#8222;pg_version&#8220; as well as the
> &#8222;lib&#8220; directory with all its files are missing.

Probably need to set your PATH.

> Basically no file is at its right place. In the end I could not use the command
> &#8220;createdb&#8221; since something was wrong with the &#8220;libpq.so&#8221;
> file. Anybody knows, what this is all about?

Probably need to set your LD_LIBRARY_PATH.  See installation instructions.

> uranus% gmake install
> ./mkinstalldirs /usr/local/pgsql/bin /usr/local/pgsql/lib
> mkdir /usr/local
> mkdir /usr/local/pgsql
> mkdir /usr/local/pgsql/bin
> mkdir /usr/local
> mkdir /usr/local/pgsql
> mkdir /usr/local/pgsql/lib
> gmake: *** [installdirs] Error 2

Maybe a permission problem.


If you're just getting started, try out the 7.1 pre-releases.  They should
install more easily.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/




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

* Re: Rookie in installation-trouble -> PLEEEASE HELP
  2001-02-27 21:59 Rookie in installation-trouble -> PLEEEASE HELP Christoph Lange <lucky78@gmx.net>
@ 2001-03-01 19:00 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2001-03-01 19:00 UTC (permalink / raw)
  To: Christoph Lange <lucky78@gmx.net>; +Cc: pgsql-admin

Christoph Lange <lucky78@gmx.net> writes:
> uranus% ./configure --prefix=/home/lange/pgsql/arch_ind
> --exec-prefix=/home/lange/pgsql/arch_dep
> uranus% gmake
> uranus% gmake install
> uranus% mkdir /home/lange/pgsql/data
> uranus% chown lange /home/lange/pgsql/data
> uranus% su - lange
> uranus% chmod u+x /home/lange/pgsql/postgresql-7.0.3/src/bin/initdb/initdb

> uranus% home/lange/pgsql/postgresql-7.0.3/src/bin/initdb/initdb -D
> ~/pgsql2/data

Um, that initdb is not the one you just built and installed; the one you
just built and installed is somewhere under /home/lange/pgsql/arch_ind.
Or possibly /home/lange/pgsql/arch_dep, not sure whether exec_prefix
works in 7.0.  But either way you do not want to invoke it from the
source tree.  Doing so will confuse it about where to find the postmaster.

			regards, tom lane



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


end of thread, other threads:[~2001-03-01 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-27 21:59 Rookie in installation-trouble -> PLEEEASE HELP Christoph Lange <lucky78@gmx.net>
2001-03-01 18:28 ` Peter Eisentraut <peter_e@gmx.net>
2001-03-01 19:00 ` Tom Lane <tgl@sss.pgh.pa.us>

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