1 Answers
Best Answer
安装方法和fileinfo类似,在ext找到calendar类似目录
参考:http://oneinstack.com/question/oneinstack-how-to-support-the-fileinfo/
编译方法如下:
cd /root/oneinstack/src tar zxvf php-7.0.18.tar.gz # 解压已经安装的php版本 cd php-7.0.18/ext/fileinfo /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install cd /usr/local/php/lib/php/extensions ls #看到no-debug-non-zts-20131226类似文件夹 cd no-debug-non-zts-20131226 ls #查看有没有 calendar.so,如果有,证明编译成功 加载calendar echo 'extension=calendar.so' > /usr/local/php/etc/php.d/ext-calendar.ini
Please login or Register to submit your answer