码迷,mamicode.com
首页 > Web开发 > 详细

php编译安装报错

时间:2018-06-08 20:46:25      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:str   UI   The   phpize   safe   make   cal   host   localhost   

Cannot find OpenSSL‘s <evp.h>

解决方法:

下载openssl-1.1.0h.tar  包

[root@localhost ~]# cd openssl-1.1.0h  &&  ./config  && make  && makeinstall 

 

configure: error: Cannot find OpenSSL‘s libraries

报错:configure: error: Cannot find OpenSSL‘s libraries

解决方法:

[root@localhost php-5.6.36]# find / -name libssl.so

[root@localhost php-5.6.36]# ln -s /usr/local/lib64/libssl.so /usr/lib/

 

 

 

 

 

关于timezone报错: It is not safe to rely on the system‘s timezone settings

报错:It is not safe to rely on the system‘s timezone settings

[root@localhost local]# php -i|grep pdo
PHP Warning: Unknown: It is not safe to rely on the system‘s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC‘ for now, but please set date.timezone to select your timezone. in Unknown on line 0

 

解决方法:

[root@localhost local]# vim /etc/php.ini 

找到date.timezone,修改为 date.timezone = PRC,后保存。

 [Date]

; Defines the default timezone used by the date functions

; http://php.net/date.timezone

date.timezone = PRC           #注释取消掉,date.timezone = PRC。PRC,People’s Republic of China,中华人民共和国,也就是日期使用中国的时区。

 

 

 

[root@localhost pdo_mysql]# /usr/bin/phpize 
Can‘t find PHP headers in /usr/include/php
The php-devel package is required for use of this command.

 

解决方法:

yum install php-devel  -y 

 

php编译安装报错

标签:str   UI   The   phpize   safe   make   cal   host   localhost   

原文地址:https://www.cnblogs.com/byfboke/p/9157177.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!