Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-lang/php + PDO. how to ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
legacy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 144

PostPosted: Thu Dec 20, 2012 8:12 pm    Post subject: dev-lang/php + PDO. how to ? Reply with quote

hi
i am on a MIPS32 machine, i'd like to have the PDO support added to dev-lang/php
i added "pdo" to the USE flags but it doesn't work ... as far as i can see from this

Quote:

0 /lanmap2/graph/aggregate-hosts.php(80): PDO->__construct('sqlite:../db/db')
#1 {main}
thrown in /lanmap2/graph/aggregate-hosts.php on line 80

Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /lanmap2/graph/aggregate-hosts.php:80
Stack trace:
#0 /lanmap2/graph/aggregate-hosts.php(80): PDO->__construct('sqlite:../db/db')
#1 {main}
debug-non-zts-20100525/php_pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /lanmap2/graph/gen-graph.php:83


could not find drive ... ummm, suggestions ?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Dec 20, 2012 10:32 pm    Post subject: Reply with quote

You have PDO enabled and you're trying to use the SQLite driver, which isn't.
Back to top
View user's profile Send private message
legacy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 144

PostPosted: Fri Dec 21, 2012 1:19 am    Post subject: Reply with quote

hi
i have re-emerged =dev-db/sqlite-3.7.15 with ldo in my use flags, but i have still the issue
it is not exactly clear to me: how to fix ?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Dec 21, 2012 12:05 pm    Post subject: Reply with quote

Did you also reinstall PHP with the sqlite use flag?
Back to top
View user's profile Send private message
legacy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 144

PostPosted: Fri Dec 21, 2012 4:26 pm    Post subject: Reply with quote

yes

i have did 3 tests
1) sqlite in use flags
2) sqlite2 in use flags
3) sqlite3 in use flags
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Dec 21, 2012 4:50 pm    Post subject: Reply with quote

Hm, that's odd. Does sqlite even show up in phpinfo() output? Maybe you need to load the extension for it manually.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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