简体   繁体   English

PHP启动:无法加载动态库“ /usr/lib/php/20131226/tidy.dll”-在第0行的“未知”中没有这样的过程

[英]PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0

I've recently installed Cygwin to my new work laptop and ever since I've being bombarded with the above Warning message like commercial advertisements whenever I execute commands that involves php scripts 我最近将Cygwin安装到我的新工作笔记本电脑上,并且自从我每次执行涉及php脚本的命令时,都被上述警告消息(如商业广告)轰炸,

PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_tidy.dll' - No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/tidy.dll' - No such process in Unknown on line 0

I've done all the research (online) I could to remove this message / fix the problem. 我已完成所有研究(在线),可以删除此消息/解决问题。 Also I can confirm the missing libraries are in fact NOT MISSING. 我也可以确认丢失的库实际上是未丢失的。 My cygwin install directory is C:\\cygwin. 我的cygwin安装目录是C:\\ cygwin。 Although I couldn't find /usr/lib in Windows Explorer (C:\\cygwin\\usr), I could, however find it as well as the libraries in cygwin. 尽管我在Windows资源管理器(C:\\ cygwin \\ usr)中找不到/ usr / lib,但是我可以找到它,以及cygwin中的库。 Lastly, I tried to add all paths for Windows (C:\\cygwin\\lib) and linux (/usr/lib) to their environment specific path variables. 最后,我尝试将Windows(C:\\ cygwin \\ lib)和linux(/ usr / lib)的所有路径添加到其特定于环境的路径变量。 None of these worked. 这些都不起作用。

This might seem nothing but noise as it doesn't stop me from executing php scripts on command line. 这似乎不过是杂音,因为它并没有阻止我在命令行上执行php脚本。 But I pretty sure issues like these are never negligible in later stages of development. 但是我很确定,在开发的后期阶段,此类问题绝不可忽略。

thanks Brett for his comment. 感谢布雷特的评论。 When I did a search again, I found the following Stack-overflow page that answers my question Error In PHP5 ..Unable to load dynamic library The solution is around the following grep command suggested in one of the reply post 当我再次进行搜索时,我发现下面的堆栈溢出页面可以回答我的问题PHP5中的错误..无法加载动态库解决方法是在其中一封回复帖子中建议使用以下grep命令

grep -Hrv ";" /etc/php5 | grep -i "extension="

As soon as I run it I found the ini file where I could comment the correct extension to get rid of php_tidy.dll message 运行它后,我立即找到了ini文件,在其中可以注释正确的扩展名以摆脱php_tidy.dll消息

My issue request fixes in a 2nd place, so as an extension to the above grep command, I used 我的问题请求修复在第二位,因此,作为对上述grep命令的扩展,我使用了

grep -Hrv ";" /etc/php5 | grep -i "tidy.dll"

which gave me the location another file that requires similar commenting. 这给了我该位置另一个需要类似注释的文件。

Updated both files (php.ini and tidy.ini) rid of the messages. 更新了两个文件(php.ini和tidy.ini)中的消息。 Now my output looked much cleaner. 现在我的输出看起来更干净了。

A more appropriate solution is to install the missing libraries via apt-get, which was discussed in other post. 一个更合适的解决方案是通过apt-get安装缺少的库,这在其他文章中已经讨论过。 But most of the discussion relates to missing .so files, I'm not sure what to "apt-get" for the dlls. 但是大多数讨论都与缺少的.so文件有关,我不确定该对dll进行什么“ apt-get”操作。 For the time being, I'm happy where I am. 暂时,我在哪里很开心。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP警告:PHP启动:无法加载动态库'/usr/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so' - PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20131226/pdo_mysql.so' PHP警告:PHP启动:无法加载动态库/usr/lib/php/20151012/php_imap.dll - PHP Warning: PHP Startup: Unable to load dynamic library /usr/lib/php/20151012/php_imap.dll PHP 启动无法加载动态库 /usr/lib/php/20151012/php_mysqli.dll - PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll PHP启动:无法加载动态库'/usr/lib/php/20151012/php_mysqli.dll'和php_mysql.dll - PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysqli.dll' and php_mysql.dll 消息:PHP启动:无法加载动态库'/usr/lib/php/20151012/php_curl.dll'-/usr/lib/php/20151012/php_curl.dll:无效的ELF标头 - Message: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: invalid ELF header PHP警告:PHP启动:无法加载动态库'usr / lib / php / 20151012 / php_pdo_firebird.dll - PHP Warning : PHP Startup: Unable to load dynamic library 'usr/lib/php/20151012/php_pdo_firebird.dll PHP警告:PHP启动:无法加载动态库'/usr/lib/php/20151012/mysql.so' - PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mysql.so' PHP警告:PHP启动:无法加载动态库'./lib.so'-./lib.so:未定义符号:*在第0行的Unknown中 - PHP Warning: PHP Startup: Unable to load dynamic library './lib.so' - ./lib.so: undefined symbol: * in Unknown on line 0 PHP警告:PHP启动:无法加载动态库'/usr/lib/php/20151012/gd.so' - PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' PHP 警告:PHP 启动:无法加载动态库 '/usr/lib/php/20151012/msqli.so' - PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/msqli.so'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM