View previous topic :: View next topic |
Author |
Message |
legacy Tux's lil' helper
Joined: 10 Sep 2012 Posts: 144
|
Posted: Thu Dec 20, 2012 8:12 pm Post subject: dev-lang/php + PDO. how to ? |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Dec 20, 2012 10:32 pm Post subject: |
|
|
You have PDO enabled and you're trying to use the SQLite driver, which isn't. |
|
Back to top |
|
|
legacy Tux's lil' helper
Joined: 10 Sep 2012 Posts: 144
|
Posted: Fri Dec 21, 2012 1:19 am Post subject: |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Dec 21, 2012 12:05 pm Post subject: |
|
|
Did you also reinstall PHP with the sqlite use flag? |
|
Back to top |
|
|
legacy Tux's lil' helper
Joined: 10 Sep 2012 Posts: 144
|
Posted: Fri Dec 21, 2012 4:26 pm Post subject: |
|
|
yes
i have did 3 tests
1) sqlite in use flags
2) sqlite2 in use flags
3) sqlite3 in use flags |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Dec 21, 2012 4:50 pm Post subject: |
|
|
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 |
|
|
|