Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
instalacja pdo do php
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
WombaT
n00b
n00b


Joined: 18 Jan 2009
Posts: 31

PostPosted: Mon Jun 28, 2010 6:16 pm    Post subject: instalacja pdo do php Reply with quote

Zainstalowalem php (5.2.13) z flagami m.in. mysql, pdo, unicode, session, cgi, gd.

Po instalacji dziala wsio ok, mysql tez. Problem mam jednak z pdo.
Code:
Fatal error: Class 'PDO' not found in /home/wombat/htdocs/bee/prac/index.php on line 6


wg manuala php, pdo jest dolaczane do php w wersji 5.1 w gore, czyli w moim powinno byc. No ale nie ma. Zainstalowalem pakiet pear, i probowalem uzyc:
Code:
pecl install pdo


jednak operacja zakonczyla sie bledem:
Code:
libtool: Version mismatch error.  This is libtool 2.2.6b, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b
libtool: and run autoconf again.
make: *** [pdo.lo] Error 63
ERROR: `make' failed


wyszukałem w goole cos na ten temat i znalazlem cos takiego:
Code:
wget http://pecl.php.net/get/uploadprogress
tar -xvzf uploadprogress
cd ./uploadprogress-1.0.1
phpize
aclocal
libtoolize --force
autoheader
autoconf
make && make install

.. works :) !

z : http://pecl.php.net/bugs/bug.php?id=16963&edit=1

ale to reczna kompilacja wiec tez chcialem tak sprobowac i sciganac zrodla pdo, jednak na stronie z pdo pisze jak wol:
Quote:
Do not use this, as PDO has been moved into core (the php source) so this pecl extension is dead.

gdzie porubione dosc jasno rozumiem jako "nie uzywac".

Tylko ze teraz juz nie mam pomyslu jak uruchomic do pdo... W koncu to jest w tym php czy nie ma?
Back to top
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Mon Jun 28, 2010 7:17 pm    Post subject: Reply with quote

phpinfo pokaz.
Back to top
View user's profile Send private message
WombaT
n00b
n00b


Joined: 18 Jan 2009
Posts: 31

PostPosted: Mon Jun 28, 2010 7:50 pm    Post subject: Reply with quote

temat juz w sumie nie wazny, dziala juz, ale i tak nie wiem jak. Robilem kilka rzeczy w systemie i w ktoryms momencie poprostu zadzialalo, nie jestem w stanie stwierdzic co pomoglo.

solved do tematu chyba dawac nie bede bo i tak odpowiedzi na problem nie ma:P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum