简体   繁体   English

PHP警告:PHP启动:无法加载动态库'bz2'

[英]PHP Warning: PHP Startup: Unable to load dynamic library 'bz2'

Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: E:\\phpXampp\\php\\ext\\gd2 (The specified module could not be found.), E:\\phpXampp\\php\\ext\\php_gd2.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gettext' (tried: E:\\phpXampp\\php\\ext\\gettext (The specified module could not be found.), E:\\phpXampp\\php\\ext\\php_gettext.dl l (The specified module could not be found.)) in Unknown on line 0 警告:PHP启动:无法加载动态库'gd2'(尝试:E:\\ phpXampp \\ php \\ ext \\ gd2(找不到指定的模块。),E:\\ phpXampp \\ php \\ ext \\ php_gd2.dll(在第0行上的Unknown中找不到指定的模块。))PHP警告:PHP启动:无法加载动态库'gettext'(尝试:E:\\ phpXampp \\ php \\ ext \\ gettext(找不到指定的模块) 。),E:\\ phpXampp \\ php \\ ext \\ php_gettext.dl l(找不到指定的模块。)在第0行的Unknown中

I have this problem installing laravel. 我在安装laravel时遇到此问题。 Actual link is 实际链接是

E:\\XAMPPL\\php\\ext\\gettext while it show E:\\phpXampp\\php\\ext\\gettext in warning. E:\\XAMPPL\\php\\ext\\gettext ,但在警告中显示E:\\phpXampp\\php\\ext\\gettext

How to change the path? 如何改变路径?

Go to you php installation folder - I'm guessing this is E:\\XAMPPL\\php\\ . 转到您的php安装文件夹-我猜这是E:\\XAMPPL\\php\\ Open and edit the php.ini file there. 在此处打开并编辑php.ini文件。

Look for the line containing extension_dir . 查找包含extension_dir的行。 This is used by php to locate your extensions. php使用它来查找扩展名。 Edit this line to: 将此行编辑为:

extension_dir = "E:\XAMPPL\php\ext" 

This should solve the problem. 这应该可以解决问题。

Alternatively, you could just edit it to: 或者,您可以将其编辑为:

extension_dir = "ext" 

They both refer to the same path. 它们都指向相同的路径。

I uninstalled composer and then installed latest composer setup and restarted my PC. 我卸载了composer,然后安装了最新的composer安装程序并重新启动了PC。 And it Worked. 而且有效。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM