Network - Server

make failed error when installing pdo via pecl

  • sudo apt-get install php5-sqlite
    The biggest issue here is that PDO is no longer supported in PECL and has been moved to CORE. 
    On that note all the PDO drivers for the respected databases have been moved into the main php5 database packages. So when you install php5-sqlite it not only installs the basic driver it also installs the pdo driver at the same time.
    Now if you are getting this error that means that you already attempted to install the outdated pecl version. Doing that seems to corrupt your php installation and now even if you install the right package it still wont work.
    To fix this you must PURGE not remove all the installed packages that start with php5 including php itself.
    Once all these packages are purged reinstall the ones you deleted. 
    Finally install the correct php5 database package, so for sqlite install php5-sqlite. After which pdo-sqlite will be properly installed and ready for use.

    0 Bình luận

    Trở về
    • Setup window xp từ usb!
    • Setup window xp từ usb!

      Tôi xin chia sẻ với các bạn cách sử dụng USB để làm bộ cài đặt windows xp, giống như một đĩa...

    • Mysql command
    • Mysql command

       # [mysql dir]/bin/mysql -h hostname -u root -p Create a database on the sql server. mysql> create database [databasename]; List...