PDO_SQLITE驱动程序不存在..怎么办? [英] PDO_SQLITE driver not present.. what to do?

查看:85
本文介绍了PDO_SQLITE驱动程序不存在..怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在所有地方(包括官方文档中)都看到,PHP应该默认包含/应该包含 PDO_SQLITE 驱动程序.

I see everywhere (including on the official docs) that the PDO_SQLITE driver is/should be included by default in PHP.

但是,当我查看我的extension_directory时,我仅看到以下文件:

However, when I look at my extension_directory, I see only these files:

gd.so mcrypt.so mysqli.so mysql.so pdo_mysql.so pdo.so

结果,我正在尝试安装的框架(Symfony)告诉我我需要安装PDO_SQLITE或SQLite3 .so扩展...

And, as a result, a framework I'm trying to install (Symfony) tells me I need to install either the PDO_SQLITE or the SQLite3 .so extensions...

任何人都可以帮忙吗?我可以尝试在网络上的某个地方找到所需的.so文件,将其放在我的extensions_directory中,然后将其包含在 php.ini ??

Can anyone help? Can I just try and find the needed .so file somewhere on the web, place it in my extensions_directory and then include it in php.ini??

顺便说一句::我正在运行ubuntu上通过apt-get下载的php 5.3.6.

BTW: I'm running php 5.3.6 downloaded via apt-get on ubuntu.

推荐答案

您尝试过sudo apt-get install php5-sqlite吗?

这篇关于PDO_SQLITE驱动程序不存在..怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆