Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Problem z zainstalowaniem PostgreSQL'a po WinXP
Forum PHP.pl > Forum > Bazy danych > PostgreSQL
aliali
Witam!

Mam dość nietypowy problem i mam nadzieję że ktoś mi cośdoraddzi bo na inncyh forach brak byłsłów . Posiadam książkę "Bazy danych i PostgreSQL od
podstaw" autorów: Richard Stones i Neil Matthew.

Mam zainstalowany system Windows XP + SP1. Ściągnąłem Cygwina (wszystkie
pakiety bo jestem początkujący i nie wiedziałem co mi będzie potrzebne).
Zainstalowałem Cygwina + wszystkie pakiety - instalacja dość długo trwała
ale to pewnie oznaka tylko tego, że wszystko jest zainstalowane.

Podobno w cygwinie jest już jakaś wersja postgresql'a ale nie mogłem jej
znaleźć.

Dlatego też pobrałem z serwera (www.postgresql.org) plik
postgresql-7.4.3.tar.bz2). Posepowałem zgodnie z instrukcjami w książce
(strona 87) ale pomimo tego mam problemy. Ściągnąłem też plik
cygipc-1.14-1-src.tar.bz2.
Poniżej opisze jak postępowałem:

1) Zainstalowałem Cygwina na E:\Cygwin (to jest jedna z partycji NTFS)
2) Skopiowałem plik cygipc...tar.bz2 do katalogu e:\Cygwin i uruchomiłem
shella.
3) Wydałem następujące komendy:

cd /
bunzip2 cygipc-1.14-1-src.tar.bz2
tar xvf cygipc-1.14-1-src.tar

przez co w katalogu E:\Cygwin powstał katalog cygipc-1.14-1

4) Następnie skopiowałem plik postgresql-7.4.3.tar.bz2 do katalogu
E:\Cygwin\usr\src i z shell'a wydałem następujące komendy:

bunzip2 postgresql-7.4.3.tar.bz2
tar xvf postgresql-7.4.3.tar
./configure
make
make install

i w ten sposób zainstalował się PostgreSQL.

Później wydałem w shell'u komende: $ /usr/local/bin/ipc-daemon.exe &
(wszystko robie tak jak w tej książce, a ten znaczek dolara to się sam
wyświetla - JA TEGONIE WPISUJE)

Pojawił się komunikat
$ [1]2036

Później wydałem komende :
$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
(według ksiązki w tym miejscu przed tą komendą powinien być nie znak
dolara ale pg$ - u mnie jest tylko $ - moze to w tym problem!!!)

WŁAŚNIE: Po wydaniu tej komendy otrzymuje coś takiego:
----------------------------------
The files belonging to this database system will be owned by user
"Sebo".
This user must also own the server process.

The database clusters will be initialized with locale C.

creating directory /usr/local/pgsql/data... ok
creating directory /usr/local/pgsql/data/base... ok
creating directory /usr/local/pgsql/data/global... ok
creating directory /usr/local/pgsql/data/pg_xlog... ok
creating directory /usr/local/pgsql/data/pg_clog... ok
selecting default max_connection...10
selecting default shared_buffers...50
creating configuration files... ok
creating template1 database in /usr/local/pgsql/data/base/1... FATAL:
could not create shared memory segment: Function not implemented
DETAIL: Filed system call call shmget(key=1, size=1081344, 03600).

initdb: failed
initdb: removing data directory "/usr/local/pgsql/data"
--------------------------------------

Bardzo proszę o pomoc. Jest mi to pilnie potrzebne bo muszę zrobić mały
projekt. Siedziałem dziś nad tym 6h i dużo rzeczy sam odkryłem ale z tym
nie mogę dać sobie rady. Proszę o w miarę szybka odpowiedź.

Z góry bardzo dziękuje i pozdrawiam.

P.S. Nie wiem czy to może mieć coś wspólnego z tym ale mam procesor z
obsługą HT (P4HT)
Jabol
Cytat(PGSQL-ANNOUNCE Mailing list)
After almost 9 months of development, the PostgreSQL Global Development
Group is proud to announce that development on PostgreSQL 8.0.0 has now
finished, and is ready for some serious testing.

For those wondering about the 8.0.0 designation on this release, there
have been several *very* large features included in this release that we
felt warranted the jump.  As with all of our releases, we aim to have this
one as rock solid as possible, but *at least* one of the features added to
this release involved such changes that may warrant a bit extra testing
post-release before deploying it in production.

Although the list of new features in 8.0.0 is extensive, with both SMB
(Win32 Native Support)
and Enterprise (Nested Transactions and Point in
Time Recory) features being added, there is one thing that hasn't been
included as part of the core distribution, and that is a Windows
Installer, which can be found at:

  http://pgfoundry.org/projects/pginstaller

For a complete list of changes/improvements since 7.4.0 was released,
please see:

  http://developer.postgresql.org/beta-history.txt

That said, and without further ado, Beta 1 is currently available for
download on all mirrors:

  http://www.postgresql.org/mirrors-ftp.html

And, thanks to David Fetter, the Beta is also available via BitTorrent at:

  http://bt.postgresql.org

As with all releases, the success of this release falls in the your hands
... to go from Beta -> Release, we need as many people out there to put it
through her paces as possible, on as many platforms as possible.  We urge
anyone, and everyone, to download a copy and run her through her
regression tests, and report any/all problems, and bugs, to

  pgsql-bugs@postgresql.org

The more bugs we can find, and eliminate, during Beta, the more successful
the Release will be ...

On behalf of all of the developers, Happy Bug Hunting ...



---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Polecam się przyjrzeć. Beta bo beta, ale wkrótce (zapewne wcześniej niż się z tą bazą porządnie zapoznasz) będzie dostępna wersja finalna... Zresztą, na win to i tak tylko do testów?

PS. masz szczęście, właśnie tego maila odebrałem.
aliali
Dzięki. Mapewno przyjrzę się tej wersji ale nadal mi ten problem nie daje spokoju. Nie lubię prostych rozwiązań.. W każdym razie bedę musiał szukać dalej.

Pozdrawiam

P.S. Będe tu zaglądał wiec jakby ktoś miał jakiś pomysł to proszę pisac winksmiley.jpg
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.