Unable to load pdo_sqlite.so extension

前端 未结 5 1484
北海茫月
北海茫月 2020-12-20 23:07

I\'m trying to install the pdo-sqlite ext for the cli.

I have tried to run sudo apt-get install php5-sqlite and it says the ext is already up to date bu

5条回答
  •  我在风中等你
    2020-12-20 23:44

    I know this question has been answered, but other people might have the same problem as I did. I hope this helps someone, because I spent three f***ing days stuck on this.

    As far as I have found out, there is a faulty file in /usr/local/lib called libsqlite3.so.0 which points to libsqlite3.so.0.8.6. I renamed the file in case it was needed for something. With the command:

    cd /usr/local/lib

    sudo mv libsqlite3.so.0 ./libsqlite3.so.0.back

    But you can also delete it: rm libsqlite3.so.0

    The thread that lead me to the answer: link

    This solved my problems, and I hope they solve yours as well :)

提交回复
热议问题