MacOS High Sierra
php 7.1
pecl install lua(失败,出现以下错误)
错误:
检查默认路径中的lua ...找不到 configure:错误:请重新安装lua发行版 - lua.h应该在/ include /中 错误:`/ private / tmp / pear / temp / lua / configure --with-php-config=/usr/local/opt/php@7.1/bin/php-config'失败
答案 0 :(得分:0)
溶液:
pecl下载lua
tar xvzf lua-2.0.4.tgz
cd lua-2.0.4
phpize
编辑"配置"脚本,找到声明lib路径的行(搜索" / usr / lib64 ..."),添加" / usr / local / lib"路径,继续安装
./配置
请
make install
添加路径到" lua.so"到你的php.ini文件