php编译安装报错

关于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

[[email protected] 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

解决方法:

[[email protected] 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,中华人民共和国,也就是日期使用中国的时区。

[[email protected] 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

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

时间: 2024-10-03 22:39:09

php编译安装报错的相关文章

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt.

PHP编译安装报错: mcrypt.h not found. Please reinstall libmcrypt. 转载2016-04-25 12:40:44 标签:linuxitphp 解决方法: 1.为系统安装perl-Geo-IP,默认yum源中没有这个包,特意安装epel第三方yum源[[email protected] ~] rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rp

php5.6.11编译安装报错configure: error: Don't know how to define struct flock on this system

centos 6.8 32位系统下,安装php.5.6.11是出现这个错误 解决办法: 1 2 3 4 vim /etc/ld.so.conf.d/local.conf     # 编辑库文件 /usr/local/lib                       # 添加该行 :wq                                  # 保存退出 ldconfig -v                          # 使之生效 注意事项: 这里添加的库文件路径一定要和你

PHP编译安装报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt

我是在CentOS6.5安装php5.5.28这个版本,PHP编译代码如下: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-gd --with-ico

php 编译安装报错 configure: error: mcrypt.h not found. Please reinstall libmcrypt.

编译安装php时报错的解决方法: 错误一:configure: error: mcrypt.h not found. Please reinstall libmcrypt. 解决办法:需要安装Libmcrypt wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz        tar -zxvf libmcrypt-2.5.8.tar.gz        cd /usr/local/

mysql 源码编译安装报错-curses_library

Curses library not found. Please install appropriate package 今天安装mysql-5.5.47的时候,报下面的错误: -- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) CMake Error at

安装编译qemu-kvm报错Make sure to have the zlib libs and headers installed.

[[email protected] qemu-kvm.git]# ./configure Error: zlib check failed Make sure to have the zlib libs and headers installed. 解决上面报错需要安装zlib相关的软件 [[email protected] qemu-kvm.git]# yum install zlib* 安装完上面软件后继续出现下面报错 [[email protected] qemu-kvm.git]# .

mysql安装报错

如果编译时出现了以下错误:checking for tgetent in -ltermcap- nochecking for termcap functions library- configure: error: No curses/termcap library found说明 curses/termcap 库没有安装去下载一个ncurses-5.6.tar.gz,wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gztar zx

LNMP安装报错解决方案

configure: error: no acceptable cc found in $PATH 解决方案:yum install -y gcc configure: error: xml2-config not found. Please check your libxml2 installation. 解决方案:yum install -y libxml2-devel configure: error: Cannot find OpenSSL's <evp.h> 解决方案:yum ins

Scrapy安装报错 Microsoft Visual C++ 14.0 is required 解决办法

Scrapy安装报错 Microsoft Visual C++ 14.0 is required 解决办法原因:Scrapy需要的组 twisted 需要 C++环境编译. 方法一:根据错误提示去对应的网站下载C++ 14.0  ,然后重新安装 方法二:直接下载对应系统的whl 安装 1.win10,python_3.6.1,64位2.pip install Scrapy报错3.http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载twiste