Odpowiedz na ten temat
Strona 1 z 2 1 2 OstatniaOstatnia
Pokaż wyniki od 1 do 10 z 17
  1. Avatar Roberto
    Dołączył
    Feb 2007
    Skąd
    Wrocław
    Postów
    11,866

    Cytuj | #1

    Co zrobić, żeby dograć wsparcie dla postgres'a w PHP które jest w snow leo?
    szukałem, próbowałem, nijak mi nie chce działać...
    zainstalowałem sterownik z pecl'a, dodałem ścieżkę w php.ini do katalogu z nim, dodałem go do rozszerzeń i dupa, nie chce działać, lae w php info go widzi, rozpoznaje, etc. ale już próba połączenia zwraca fatal error

    postgres instalowany ze źródeł, działa normalnie...

    jak dograć w takim razie wsparcie dla postgres'a dla php?
    da się?
    czy muszę kompilować od 0 'swojego' php'a i go podmienić?

    najchętniej obyłbym się bez fink'ów, dawinportóe, etc.
    chyba że mnie ktoś przekona

    zależy mi na tym, żeby mieć działającego php'a z wsparciem dla mysql, postgresa, biblioteką gd, xslt

    wpadłem na wspaniałe Marc Liyanage - Software - Mac OS X Packages - PHP ale zdaje się nie działać pod Snow Leo? przynajmniej mi...
    Ostatnio edytowane przez Roberto ; 24.06.2010 o 16:26
    Komputer: MacBook Pro 13,3" 2,26GHz (Lion 10.7.3)
    Telefon: iPhone 4S
    Tablet: iPad 2 3G
    dlaczego nie korzystasz z opcji szukaj?
    http://ifiboughtyourappalreadycaniup...acappstore.com


  2. Avatar macieks72

    Dołączył
    Aug 2009
    Postów
    9,327

    Cytuj | #2

    Jest sposób, co prawda nie robiłem tego z pgsql.so ale z mcrypt.so i jakimś jeszcze innym extension.

    Sciągnij źródła php dokładnie takie jaką masz wersje php (chyba 5.3.1), wejdź w katalog 'php-src/ext/pgsql' (chyba, albo jakoś podobie, ale to znajdziesz) w terminalu, daj:
    1. phpize
    2. ./configure
    3. make
    4. potem przenies pgsql.so do katalogu extensions php i dodaj linie w php.ini

    To ./configure sprawdz z --help, bo prawdopodobnie będzie trzeba dać dodatkowe parametry wskazujące na library postgresa i jego nagłówki .h, coś jak --lib-dir, --includes-dir itp


    Czyli przykładowo jeśli masz postgresql z macport to mniej więcej tak (pseudo kod, zobacz z --help, bo pewnie pokręciłem troszkę):
    ./configure --include-dir=/opt/local/include --lib-dir=/opt/local/lib


    Ewentualnie zainstaluj MAMP.
    Komputer: Macbook Pro wykąpany w pepsi, teraz Acer Aspire 5750G
    Telefon: iPhone 4 - iOS 5.1.1
    Ludzie, używajcie alta. No chyba że wam obojętne, czy robicie komuś 'łaskę', czy 'laske'.

  3. Avatar Roberto
    Dołączył
    Feb 2007
    Skąd
    Wrocław
    Postów
    11,866

    Cytuj | #3

    próbowałem też tego i zdawało się nie banglać właśnie niestety...
    snow leopard - tutaj coś takiego znalazłem
    zrobiłem to samo dla samego pgsql jak i dla pdo_pgsql
    dodałem flagi --with-pdo-pgsql=usr/local/pgsql i --with-pgsql=usr/local/pgsql
    tam mam zainstalowanego postgres'a (z oficjalnych źródeł - nie mam macports)

    nadal pg_connect() zwraca fatal error, bo nie ma takiej funkcji...

    co do MAMP'a - z tego co wiem ma wsparcie dla postgres'a, ale go nie instaluje - jak go dodać w takim razie? ogólnie to raczej chyba wolałbym bez MAMP'a (chociaż... nie wiem już...)

    ---------- Wpis dodano o 18:09 ---------- Poprzedni wpis dodano o 17:20 ----------

    ok, jestem głupkiem...
    zrobiłem dwa extensiony, ale w php.ini dodałem tylko jeden...
    teraz zdaje się banglać
    Ostatnio edytowane przez Roberto ; 24.06.2010 o 16:24
    Komputer: MacBook Pro 13,3" 2,26GHz (Lion 10.7.3)
    Telefon: iPhone 4S
    Tablet: iPad 2 3G
    dlaczego nie korzystasz z opcji szukaj?
    http://ifiboughtyourappalreadycaniup...acappstore.com

  4. Avatar macieks72

    Dołączył
    Aug 2009
    Postów
    9,327

    Cytuj | #4

    No to ok jak zabanglało. Czyli kompilowałeś tak? Mniej więcej w ten sposób co wyżej?

    A ja właśnie się przestawiam całkowicie na MAMP-a. Wiem wiem, wcześniej się z niego naśmiewałem, ale przyjrzałem się bliżej i mi bardzo podszedł. A ten php w systemie często mi powoduje crashe i wywala apache, w sumie apache migiem wstaje po takim crashu, ale troszkę mnie to denerwuje jak coś nie chodzi tip top.

    EDIT:
    No i co troszkę dziwne dla mnie jest jeszcze jedno: MAMP 32bitowy działa jakby szybciej niż systemowe apache/php + mysql 64bity. Tak zauważyłem. Może przez ten XCache w MAMP, ale chyba nie, bo już zaraz po starcie wydaje się działać szybciej. Ciekawe czemu, jednak te 64 bity jakby nie zawsze były lepsze.

    No ale ok, bo nie na temat się rozpisałem.
    Ostatnio edytowane przez macieks72 ; 24.06.2010 o 22:50
    Komputer: Macbook Pro wykąpany w pepsi, teraz Acer Aspire 5750G
    Telefon: iPhone 4 - iOS 5.1.1
    Ludzie, używajcie alta. No chyba że wam obojętne, czy robicie komuś 'łaskę', czy 'laske'.

  5. Avatar Roberto
    Dołączył
    Feb 2007
    Skąd
    Wrocław
    Postów
    11,866

    Cytuj | #5

    skompilowałem tak jak napisałem (w sensie z takimi flagami) i tak, ze źródeł php
    cały myk polegał chyba na tym, żeby wgrać i pdo_pgsql i pgsql żeby wszystko zaczęło banglać ładnie. przynajmniej w moim projekcie

    osobiście nie chcę MAMP'a. kiedyś korzystałem, ale jak mam out-of-the-box apacza i php (mysql normalnie doinstalowane) to nie widzę potrzeby tracenia miejsca na dysku na MAMP'a

    mi tam się nigdy nie wykładał apacz ani php, ale ja tam też intensywnie z tego nie korzystam.
    Komputer: MacBook Pro 13,3" 2,26GHz (Lion 10.7.3)
    Telefon: iPhone 4S
    Tablet: iPad 2 3G
    dlaczego nie korzystasz z opcji szukaj?
    http://ifiboughtyourappalreadycaniup...acappstore.com

  6. Avatar argasek
    Dołączył
    Jan 2010
    Skąd
    Kraków
    Postów
    3

    Cytuj | #6

    Zarzućcie w diabły MAMPy, XAMPPy, PHP/Apache dostarczony z systemem, Macportsy itp. Tak, owszem, można się bawić w kompilację, ale po co aż tak hardkorowo? Polecam następującą metodę:
    1. Zasysamy i instalujemy PostgreSQL, jest kilka opcji do wyboru:
    2. Zasysamy i instalujemy Zend Server Community Edition (darmowa wersja)
    3. Jeśli moduły pgsql i pdo_pgsql nie są włączone w konfiguracji, włączamy je.
    Oczywiście Zend Server trzeba sobie "dostroić" do swoich potrzeb, np. ja dodałem nasłuch na standardowym porcie 80, porobić sobie vhosty (jeśli pracujecie naraz nad kilkoma projektami) itp. itd.

    Dodam dwie istotne informacje, żeby nie było zaskoczenia:
    • jest jakiś problem z obsługą locale przez Postgresa pod Mac OS X, konkretnie chodzi o collations (sortowanie nie działa prawidłowo pomimo dobrych ustawień w bazie - nowy ficzer wersji 8.4 Postgresa)
    • jeśli z jakichś powodów chcecie zainstalować wersję 8.3 Postgresa, to prawie na pewno (o ile piszecie coś bardziej złożonego niż Hello World ) natkniecie się na tego okrutnego buga. Pomaga zmiana kolejności ładowania modułów .so do PHP w plikach INI (szczegóły pod podanym linkiem)

    powodzenia
    Komputer: MacBook Pro 15" (MB470PL/A) (Snow Leopard 10.6.4)
    Telefon: Nokia E50


  7. Dołączył
    Oct 2010
    Skąd
    Żywiec, Katowice, PL
    Postów
    5

    Cytuj | #7

    Hm.. a jak próbuję i niestety nic nie wychodzi.. :/ czy może ktoś podać dokładnie w jaki sposób to zrobić? a komenda o ktrej wspomniano --with-pdo-pgsql nie jest wogóle widoczna. Obecnie system zrobił aktualizację i mam PHP 5.3.2.

    Czy może ktoś coś poradzić? Bądź napisać jak on tego dokonał na swoim przykładzie?
    Komputer: Komputer: MacBook Pro 13,3" 2,4GHz (Snow Leo 10.6.4)
    Telefon: Nokia E90

  8. Avatar Roberto
    Dołączył
    Feb 2007
    Skąd
    Wrocław
    Postów
    11,866

    Cytuj | #8

    nie wiemy co próbujesz, ani co ci nie wychodzi.
    dokładnie - co robisz i gdzie jest błąd.

    zaciągnąć źródła PHP (5.3.2 skoro taki masz w systemie), skompilować te pluginy, wgrać w odpowiednie miejsca w OS Xowym PHP że tak powiem i wsio.
    Komputer: MacBook Pro 13,3" 2,26GHz (Lion 10.7.3)
    Telefon: iPhone 4S
    Tablet: iPad 2 3G
    dlaczego nie korzystasz z opcji szukaj?
    http://ifiboughtyourappalreadycaniup...acappstore.com


  9. Dołączył
    Oct 2010
    Skąd
    Żywiec, Katowice, PL
    Postów
    5

    Cytuj | #9

    A więc:
    zainstalowałem normalnie pgsql z paczki pkg z oficjalnej strony (v.9) jako miejsce wybrałem /usr/local/pgsql
    włączając pgAdmin normalnie baza działa i można na niej pracować.

    Następnie pobrałem źródła PHP (v.5.3.2 - bo taką posiadam w systemie).
    i wykonałem następująco:
    1)rozpakowałem archiwum i skopiowałem go w całości do folderu /usr/local/source
    2)wszedłem do katalogu a dokładnie do folderu: /usr/local/source/php-5.3.2/ext/pgsql
    3)następnie użyłem komend:

    phpize

    Configuring for:
    PHP Api Version: 20090626
    Zend Module Api No: 20090626
    Zend Extension Api No: 220090626


    ./configure --with-pgsql=/usr/local/pgsql --includedir=/usr/local/pgsql/include --with-libdir=/usr/local/pgsql/lib

    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... /usr/local/pgsql/lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i386-apple-darwin10.4.0
    checking host system type... i386-apple-darwin10.4.0
    checking target system type... i386-apple-darwin10.4.0
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
    checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20090626
    checking for PHP installed headers prefix... /usr/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... no
    checking for nawk... no
    checking for awk... awk
    checking if awk is broken... no
    checking for PostgreSQL support... yes, shared
    checking for pg_config... /usr/local/pgsql/bin/pg_config
    checking for PQescapeString in -lpq... yes
    checking for PQunescapeBytea in -lpq... yes
    checking for PQsetnonblocking in -lpq... yes
    checking for PQcmdTuples in -lpq... yes
    checking for PQoidValue in -lpq... yes
    checking for PQclientEncoding in -lpq... yes
    checking for PQparameterStatus in -lpq... yes
    checking for PQprotocolVersion in -lpq... yes
    checking for PQtransactionStatus in -lpq... yes
    checking for PQexecParams in -lpq... yes
    checking for PQprepare in -lpq... yes
    checking for PQexecPrepared in -lpq... yes
    checking for PQresultErrorField in -lpq... yes
    checking for PQsendQueryParams in -lpq... yes
    checking for PQsendPrepare in -lpq... yes
    checking for PQsendQueryPrepared in -lpq... yes
    checking for PQputCopyData in -lpq... yes
    checking for PQputCopyEnd in -lpq... yes
    checking for PQgetCopyData in -lpq... yes
    checking for PQfreemem in -lpq... yes
    checking for PQsetErrorVerbosity in -lpq... yes
    checking for PQftable in -lpq... yes
    checking for PQescapeStringConn in -lpq... yes
    checking for PQescapeByteaConn in -lpq... yes
    checking for pg_encoding_to_char in -lpq... yes
    checking for lo_create in -lpq... yes
    checking for lo_import_with_oid in -lpq... yes
    checking for ld used by cc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
    checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
    checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm
    checking whether ln -s works... yes
    checking how to recognize dependent libraries... pass_all
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking the maximum length of command line arguments... 196608
    checking command to parse /usr/bin/nm output from cc object... rm: conftest.dSYM: is a directory
    ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking for dsymutil... dsymutil
    checking for nmedit... nmedit
    checking for -single_module linker flag... yes
    checking for -exported_symbols_list linker flag... yes
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fno-common
    checking if cc PIC flag -fno-common works... yes
    checking if cc static flag -static works... no
    checking if cc supports -c -o file.o... yes
    checking whether the cc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin10.4.0 dyld
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no

    creating libtool
    appending configuration tag "CXX" to libtool
    configure: creating ./config.status
    config.status: creating config.h
    config.status: config.h is unchanged



    make

    /bin/sh /usr/local/source/php-5.3.2/ext/pgsql/libtool --mode=install cp ./pgsql.la /usr/local/source/php-5.3.2/ext/pgsql/modules
    cp ./.libs/pgsql.so /usr/local/source/php-5.3.2/ext/pgsql/modules/pgsql.so
    cp ./.libs/pgsql.lai /usr/local/source/php-5.3.2/ext/pgsql/modules/pgsql.la
    ----------------------------------------------------------------------
    Libraries have been installed in:
    /usr/local/source/php-5.3.2/ext/pgsql/modules

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
    - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
    during execution

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------

    Build complete.
    Don't forget to run 'make test'.



    make test (i tutaj niestety nie nawiązano połączenia z bazą)

    ================================================== ===================
    PHP : /usr/bin/php
    PHP_SAPI : cli
    PHP_VERSION : 5.3.2
    ZEND_VERSION: 2.3.0
    PHP_OS : Darwin - Darwin MacBook-Pro-Witold-Gren.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; rootnu-1504.7.4~1/RELEASE_I386 i386
    INI actual : /usr/local/source/php-5.3.2/ext/pgsql/tmp-php.ini
    More .INIs :
    CWD : /usr/local/source/php-5.3.2/ext/pgsql
    Extra dirs :
    VALGRIND : Not used
    ================================================== ===================
    TIME START 2010-10-21 16:10:31
    ================================================== ===================
    SKIP PostgreSQL create db [tests/01createdb.phpt] reason: could not connect
    SKIP PostgreSQL connection [tests/02connection.phpt] reason: could not connect
    SKIP PostgreSQL sync query [tests/03sync_query.phpt] reason: could not connect
    SKIP PostgreSQL async query [tests/04async_query.phpt] reason: could not connect
    SKIP PostgreSQL large object [tests/05large_object.phpt] reason: could not connect
    SKIP PostgreSQL copy functions [tests/06copy.phpt] reason: could not connect
    SKIP PostgreSQL optional functions [tests/07optional.phpt] reason: could not connect
    SKIP PostgreSQL escape functions [tests/08escape.phpt] reason: could not connect
    SKIP PostgreSQL notice function [tests/09notice.phpt] reason: could not connect
    SKIP PostgreSQL pg_convert() [tests/10pg_convert.phpt] reason: could not connect
    SKIP PostgreSQL pg_convert() (8.5+) [tests/10pg_convert_85.phpt] reason: could not connect
    SKIP PostgreSQL pg_metadata() [tests/11pg_meta_data.phpt] reason: could not connect
    SKIP PostgreSQL pg_insert() [tests/12pg_insert.phpt] reason: could not connect
    SKIP PostgreSQL pg_insert() (8.5+) [tests/12pg_insert_85.phpt] reason: could not connect
    SKIP PostgreSQL pg_select() [tests/13pg_select.phpt] reason: could not connect
    SKIP PostgreSQL pg_select() (8.5+) [tests/13pg_select_85.phpt] reason: could not connect
    SKIP PostgreSQL pg_update() [tests/14pg_update.phpt] reason: could not connect
    SKIP PostgreSQL pg_update() (8.5+) [tests/14pg_update_85.phpt] reason: could not connect
    SKIP PostgreSQL pg_delete() [tests/15pg_delete.phpt] reason: could not connect
    SKIP PostgreSQL pg_result_status() [tests/16pg_result_status.phpt] reason: could not connect
    SKIP PostgreSQL pg_fetch_*() functions [tests/17result.phpt] reason: could not connect
    SKIP PostgreSQL pg_escape_bytea() functions [tests/18pg_escape_bytea.phpt] reason: could not connect
    SKIP PostgreSQL pg_ping() functions [tests/19pg_ping.phpt] reason: could not connect
    SKIP PostgreSQL pg_get_pid() functions [tests/20pg_get_pid.phpt] reason: could not connect
    SKIP PostgreSQL pg_get_notify() functions [tests/21pg_get_notify.phpt] reason: could not connect
    SKIP PostgreSQL pg_fetch_object() [tests/22pg_fetch_object.phpt] reason: could not connect
    SKIP PostgreSQL sync query params [tests/23sync_query_params.phpt] reason: could not connect
    SKIP PostgreSQL sync prepared queries [tests/24sync_query_prepared.phpt] reason: could not connect
    SKIP PostgreSQL async query params [tests/25async_query_params.phpt] reason: could not connect
    SKIP PostgreSQL async prepared queries [tests/26async_query_prepared.phpt] reason: could not connect
    SKIP PostgreSQL create large object with given oid [tests/27large_object_oid.phpt] reason: could not connect
    SKIP PostgreSQL import large object with given oid [tests/28large_object_import_oid.phpt] reason: could not connect
    SKIP Bug #14383 (using postgres with DBA causes DBA not to be able to find any keys) [tests/80_bug14383.phpt] reason: dba extension not available
    SKIP Bug #24499 (Notice: Undefined property: stdClass: [tests/80_bug24499.phpt] reason: could not connect
    SKIP Bug #27597 (pg_fetch_array not returning false) [tests/80_bug27597.phpt] reason: could not connect
    SKIP Bug #32223 (weird behaviour of pg_last_notice) [tests/80_bug32223.phpt] reason: could not connect
    SKIP Bug #32223 (weird behaviour of pg_last_notice using define) [tests/80_bug32223b.phpt] reason: could not connect
    SKIP Bug #36625 (pg_trace() does not work) [tests/80_bug36625.phpt] reason: could not connect
    SKIP Bug #39971 (pg_insert/pg_update do not allow now() to be used for timestamp fields) [tests/80_bug39971.phpt] reason: could not connect
    SKIP Bug #42783 (pg_insert() does not support an empty value array) [tests/80_bug42783.phpt] reason: could not connect
    SKIP PostgreSQL old api [tests/98old_api.phpt] reason: could not connect
    SKIP PostgreSQL drop db [tests/9999dropdb.phpt] reason: could not connect
    SKIP Bug #37100 (data is returned truncated with BINARY CURSOR) [tests/bug37100.phpt] reason: could not connect
    SKIP Bug #37100 (data is returned truncated with BINARY CURSOR) (8.5+) [tests/bug37100_85.phpt] reason: could not connect
    SKIP PostgreSQL pg_delete() - basic test using schema [tests/pg_delete_001.phpt] reason: could not connect
    SKIP PostgreSQL pg_select() - basic test using schema [tests/pg_insert_001.phpt] reason: could not connect
    SKIP PostgreSQL pg_meta_data() - basic test using schema [tests/pg_meta_data_001.phpt] reason: could not connect
    SKIP PostgreSQL pg_select() - basic test using schema [tests/pg_select_001.phpt] reason: could not connect
    SKIP PostgreSQL pg_update() - basic test using schema [tests/pg_update_001.phpt] reason: could not connect
    ================================================== ===================
    TIME END 2010-10-21 16:10:34

    ================================================== ===================
    TEST RESULT SUMMARY
    ---------------------------------------------------------------------
    Exts skipped : 0
    Exts tested : 54
    ---------------------------------------------------------------------

    Number of tests : 49 0
    Tests skipped : 49 (100.0%) --------
    Tests warned : 0 ( 0.0%) ( 0.0%)
    Tests failed : 0 ( 0.0%) ( 0.0%)
    Expected fail : 0 ( 0.0%) ( 0.0%)
    Tests passed : 0 ( 0.0%) ( 0.0%)
    ---------------------------------------------------------------------
    Time taken : 3 seconds
    ================================================== ===================

    We would like to send this report automatically to the
    PHP QA team, to give us a better understanding of how
    the test cases are doing. If you don't want to send it
    immediately, you can choose "s" to save the report to
    a file that you can send us later.



    sudo make install

    /bin/sh /usr/local/source/php-5.3.2/ext/pgsql/libtool --mode=install cp ./pgsql.la /usr/local/source/php-5.3.2/ext/pgsql/modules
    cp ./.libs/pgsql.so /usr/local/source/php-5.3.2/ext/pgsql/modules/pgsql.so
    cp ./.libs/pgsql.lai /usr/local/source/php-5.3.2/ext/pgsql/modules/pgsql.la
    ----------------------------------------------------------------------
    Libraries have been installed in:
    /usr/local/source/php-5.3.2/ext/pgsql/modules

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
    - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
    during execution

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20090626/


    potem oczywiście w pliku:

    /etc/php.ini

    odznaczam średnik:

    extension=php_pdo_pgsql.dll
    extension=php_pgsql.dll


    zapisuje i wykonuje restart apache:

    sudo apachectl -k restart

    i niestety nie daje to żadnego efektu. To samo jest z skopiowaniem pliku pgsql.so do tego katalogu.. myślę że teraz jest to bardziej jasne i jeśli można to proszę o pomoc.
    Ostatnio edytowane przez leniwiecsid ; 21.10.2010 o 15:18
    Komputer: Komputer: MacBook Pro 13,3" 2,4GHz (Snow Leo 10.6.4)
    Telefon: Nokia E90

  10. Avatar macieks72

    Dołączył
    Aug 2009
    Postów
    9,327

    Nie chce mi się tego wszystkiego analizować, ale jak widzę moduł pg_sql.so skompilowany masz, ale nie widzę czy ładujesz to w php.ini?

    I co mówi phpinfo(), widać tam pg_sql?
    Ostatnio edytowane przez macieks72 ; 21.10.2010 o 15:20
    Komputer: Macbook Pro wykąpany w pepsi, teraz Acer Aspire 5750G
    Telefon: iPhone 4 - iOS 5.1.1
    Ludzie, używajcie alta. No chyba że wam obojętne, czy robicie komuś 'łaskę', czy 'laske'.

Odpowiedz na ten temat
Strona 1 z 2 1 2 OstatniaOstatnia