PHP致命错误:找不到类sqlite3
问题描述:
我正在使用ubuntu 12.04和php 5.x,我需要在其中使用sqlite3,但是我收到了
Im using ubuntu 12.04, and php 5.x I need to use sqlite3 in it but Im getting an error of
php fatal error: class sqlite3 not found
我完成了所有安装过程,
I done all the installation processes,
喜欢
$ sudo apt-get install php5-cli php5-dev make
$ sudo apt-get install libsqlite3-0 libsqlite3-dev
$ sudo apt-get install php5-sqlite3
$ sudo apt-get remove php5-sqlite3
$ cd ~
$ wget http://pecl.php.net/get/sqlite3-0.6.tgz
$ tar -zxf sqlite3-0.6.tgz
$ cd sqlite3-0.6/
$ sudo phpize
$ sudo ./configure
$ sudo make
$ sudo make install
$ sudo apache2ctl restart
和
cd /etc/php5/conf.d
cat > sqlite3.ini
# configuration for php SQLite3 module
extension=sqlite3.so
^D
sudo /etc/init.d/apache2 restart
现在我还想做什么?
任何人都可以帮助我解决此问题...
Can anyone please help me to fix this...
先谢谢您
答
我自己找到了解决方案,
Found a solution my self,
我已安装
$ sudo apt-get install php5-sqlite
不是
$ sudo apt-get install php5-sqlite3
并且仅使用sqlite3类..现在没有问题.
and using sqlite3 class only.. no issue now.