Home > Backend Development > PHP Tutorial > laravel-5 - mac php 执行命令出现PHP Warning

laravel-5 - mac php 执行命令出现PHP Warning

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:33:29
Original
1131 people have browsed it

在配置laravel5所需的mcrypt时,按照网上的说明步骤执行以下命令

  • tar zxvf php5.6.4
  • cd php5.6.4/ext/mcrypt/
  • ./configure
  • phpize
  • make
  • make install

之后每次执行php命令,例如php -v 或 composer 终端都会提示:

<code>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
</code>
Copy after login
Copy after login

请问怎么修复这个问题,谢谢各位:D

回复内容:

在配置laravel5所需的mcrypt时,按照网上的说明步骤执行以下命令

  • tar zxvf php5.6.4
  • cd php5.6.4/ext/mcrypt/
  • ./configure
  • phpize
  • make
  • make install

之后每次执行php命令,例如php -v 或 composer 终端都会提示:

<code>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
</code>
Copy after login
Copy after login

请问怎么修复这个问题,谢谢各位:D

是php的mcrypt的拓展没有安装,自己下载下来,手动编译一下将就好了

请先确认一下 mcrypt 的库文件是否在 /usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/ 这个目录下

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template