laravel-5 - mac php 执行命令出现PHP Warning
程序员文章站
2022-06-10 08:18:09
...
在配置laravel5所需的mcrypt时,按照网上的说明步骤执行以下命令
- tar zxvf php5.6.4
- cd php5.6.4/ext/mcrypt/
- ./configure
- phpize
- make
- make install
之后每次执行php命令,例如php -v 或 composer 终端都会提示:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' - dlopen(/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so, 9): image not found in Unknown on line 0
请问怎么修复这个问题,谢谢各位:D
回复内容:
在配置laravel5所需的mcrypt时,按照网上的说明步骤执行以下命令
- tar zxvf php5.6.4
- cd php5.6.4/ext/mcrypt/
- ./configure
- phpize
- make
- make install
之后每次执行php命令,例如php -v 或 composer 终端都会提示:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' - dlopen(/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so, 9): image not found in Unknown on line 0
请问怎么修复这个问题,谢谢各位:D
是php的mcrypt的拓展没有安装,自己下载下来,手动编译一下将就好了
请先确认一下 mcrypt 的库文件是否在 /usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/ 这个目录下
推荐阅读
-
PHP下使用mysqli的函数连接mysql出现warning: mysqli::real_connect(): (hy000/1040): ...
-
laravel-5 - mac php 执行命令出现PHP Warning
-
PHP下使用mysqli的函数连接mysql出现warning: mysqli::real_connect(): (hy000/1040): ...,mysqlihy000_PHP教程
-
laravel-5 - mac php 执行命令出现PHP Warning
-
phpmyamdin安装出现Warning: require(./libraries/Error_Handler.class.php) 错
-
phpmyamdin安装出现Warning: require(./libraries/Error_Handler.class.php) 错
-
PHP下使用mysqli的函数连接mysql出现warning: mysqli::real_connect(): (hy_PHP
-
PHP下使用mysqli的函数连接mysql出现warning: mysqli::real_connect(): (hy_PHP
-
php-随机出现 PHP Warning: mysql_connect()
-
php出现Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result解决办法