PHP启动:无法使用Jenkins加载动态库'/usr/lib/php/20160303/pdo_sqlite.so' [英] PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/pdo_sqlite.so' with Jenkins

查看:151
本文介绍了PHP启动:无法使用Jenkins加载动态库'/usr/lib/php/20160303/pdo_sqlite.so'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Jenkins管道中运行phpunit测试套件时,我收到此警告.

I'm getting this warning when running the phpunit test suite in Jenkins pipeline.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/pdo_sqlite.so' - /usr/lib/php/20160303/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0

但是,直接在终端中运行测试套件时,不会引发此警告.

However this warning is not thrown when running the test suite directly in terminal.

我的系统中有PHP 7.1,这是我安装的唯一PHP版本. php7.1-sqlite3已安装.

I have PHP 7.1 in my system and this is the only PHP version I have installed. php7.1-sqlite3 is installed.

谢谢.

推荐答案

据我发现,/usr/local/lib中有一个名为libsqlite3.so.0的错误文件,该文件指向libsqlite3.so.0.8.6.我将文件重命名以防万一.使用命令:

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

但是您也可以删除它: rm libsqlite3.so.0

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 :)

这篇关于PHP启动:无法使用Jenkins加载动态库'/usr/lib/php/20160303/pdo_sqlite.so'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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