在已经编译安装好php7场景下,install gd库 with free-type (解决Call to undefined function   imagettftext()) install gd with free-type 有free-type才能支持php的imagettftext()图片处理函数 cd /root/php7/php-7.2.31/ext/gd #进入安装源文件的gd扩展文件./configure --with-php-config=/usr/local/php746…
gd-2.0.33.tar.gz http://www.boutell.com/gd/ jpegsrc.v6b.tar.gz http://www.ijg.org/ libpng-1.2.7.tar.tar http://sourceforge.net/projects/libpng/ zlib-1.2.2.tar.gz http://sourceforge.net/projects/zlib/ freetype-2.1.9.tar.gzhttp://sourceforge.net/projec…
编译memcached时,报错没有libevent,于是下载libevent,configure , make && make install ,然后在重新安装memcache成功之后.memcached默认安装在/usr/local/bin/目录下. 执行命令 ./memcache -help 报错: [root@localhost bin]# ./memcached ./memcached: error : cannot open shared object file: No such…
在已编译安装的PHP环境下安装LDAP模块 (乐维温馨提示:其他模块也能以这个方式安装) 1.在PHP源码包内找到ldap模块文件 cd php-5.6.37 cd ext/ldap/ 2.phpize 命令是用来准备 PHP 扩展库的编译环境 phpize ./configure make & make install 若报错 configure: error: Cannot find ldap libraries in /usr/lib 执行cp -frp /usr/lib64/liblda…
文章转载至Mac下Call to undefined function imagettftext()终极解决方案 安装了一套onethink程序准备调试,结果在登录页面发现验证码无法显示,单独访问验证码页面报错Call to undefined function imagettftext(). 使用搜索引擎查询了下,发现问题的关键是 gd未安装freetype,访问phpinfo.php文件发现 ​ 解决方案 缺点:不过phpinfo有植入广告哈 ​ http://php-osx.liip.ch…
在上一篇文章我们知道了如何去编译安装一个自己需要的 PHP 版本. 2018/04/25 PHP7的编译安装 这里还没有完,我们还需要安装我们的扩展,才算完成今天的任务. -- 下载扩展 还是官网下载:我这里下载了官方的最新版 1.1.2 GitHub -- 下载成功之后,我们就可以进去看看 -- cd swoole 之后会发现,并没有你需要的 .configure 这个文件,原因也很好理解,既然是作为 PHP 扩展存在,应当由 PHP 来编译 phpize的作用就是这个,这里我使用了正常的 p…
问题: Fatal error: Call to undefined function Think\imagettftext() in /var/www/webreg/ThinkPHP/Library/Think/Verify.class.php on line 143 查看phpinfo()后得知,gd中没有freetype的支持 解决: 首先安装freestyle,php-gd 确保先安装freestyle,然后是php-gd:假设是先安装了php-gd,那么在安装完freestyle后.须…
redis的大名我想大家都不陌生,今天在ubuntu server上进行编译安装,虽然apt也可以安装,但作为内存数据库,redis又是c开发的,编译安装,对机器的适应和性能更好. 安装笔记如下 第1步:下载redis的最新版本,到redis的官网redis.io下载. 最新版本是Redis 5.0.7 is the latest stable version 在ubuntu服务器上,wget http://download.redis.io/releases/redis-5.0.7.tar.g…
了解gd库 在php中,使用gd库来对图像进行操作,gd库是一个开放的动态创建的图像的源代码公开的函数库,可以从官方网站http://www.boutell.com/gd处下载.目前,gd库支持gif,png,jpeg,wbmp和xbm等多种图像格式.gd库通常用于图像的处理. 1.安装WAMP后,搭载好PHP开发环境后,在php.ini中找到php_gd2.dll,把前面的分号去掉.2.在php安装文件目录下的ext文件夹下找到php_gd2.dll文件,把它复制到C:\WINDOWS\sys…
编译操作参考版,没有每一步详细操作,慎入 关闭selinux和防火墙 service iptables stop chkconfig iptables off vi /etc/selinux/config 把SELINUX=enforcing 修改为disabled yum -y groupinstall "Development Tools" "Server Platform Development" yum install -y gcc gcc-c++ make…
2018年3月12日 14:09:39 注意时效 centos7 网卡 cd /etc/sysconfig/network-scripts/ TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADD…
安装配置选项1: ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex…
前段时间在做oracle查询的时候遇到了一个非常奇怪的现象,现将现象和解决过程记录下来,以备查看: 环境描述:A数据库通过dblink访问B数据库的视图,B数据库的视图的数据是通过B的dblink连接到C数据库的某个物理表. 现象描述:在程序里通过jdbc连接A数据库,查询B数据库的视图,报错:ORA-00600: internal error code, arguments: [kxxx], [], [], [], [], [], [],[], [], [], [], [], 排错过程:用C#…
安装memcached时总是提示“failed to install service or service already installed”,开始以为是版本问题,就下了好几个不同版本,可还是老问题, 经过上网查资料,终于把memcached给安上了. 解决办法是: 1.在开始菜单里找到附件以管理员身份运行命令提示符(最关键的一步) 2.转到memcached程序文件夹下 3.运行命令行开始安装 memcached.exe -d install 没有出错,安装完毕...…
NSArray *array = [[UIApplication sharedApplication] windows]; UIWindow* win=[array objectAtIndex:0]; [win setHidden:NO]; 在调用支付宝payOrder 之前,写上上面三行代码就可以,可是写这又一个坏处.就是会把viewcontroller的全部逻辑都走一遍的,另一个方法.就是找到info.plistMain storyboard file base name删除就能够了.…
说明: 操作系统:CentOS 6.2 32位 系统安装教程:CentOS 6.2安装(超级详细图解教程): http://www.osyunwei.com/archives/1537.html 准备篇: 一.配置好IP.DNS .网关,确保使用远程连接工具能够连接服务器       CentOS 设置IP地址.网关.DNS教程:http://www.osyunwei.com/archives/423.html 二.配置防火墙,开启80端口.3306端口 vi /etc/sysconfig/ip…
注意:如果您已经编译安装过GD库,请重新编译安装php不带gd库成功后,执行以下操作 安装libpng wget http://jaist.dl.sourceforge.net/project/libpng/libpng16/1.6.26/libpng-1.6.26.tar.gztar -xf libpng-1.6.26.tar.gzcd libpng-1.6.26 CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/local/libpng ma…
一.下载php7.3的源码 https://www.php.net/downloads.php 下载php-7.3.4.tar.gz 二.安装gcc,gcc-c++,kernel-devel yum -y install gcc gcc-c++ kernel-devel 三.安装php需要的依赖库 yum -y install wget pcre pcre-devel openssl openssl-devel libicu-devel autoconf libjpeg libjpeg-deve…
原文: https://typecodes.com/web/centos7compilephp7.html?utm_source=tuicool&utm_medium=referral 1 创建php用户和用户组,并在github下载php7源码 #######新建php用户和php组 [root@typecodes ~]# groupadd -r www && useradd -r -g www -s /bin/false -d /usr/local/php7 -M php ##…
编译安装PHP7后没有在ext中没有生成mysqli.so等文件,现在单独编译安装mysqli php7安装的位置:/usr/local/php7/ 我的扩展目录:/usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/ 解压php7安装包,进入 ext/mysqli/ 目录 执行: /usr/local/php7/bin/phpize   会在该目录下生成configure等文件 [如果提示没有autoconf.m4错误,用 a…
原文: https://typecodes.com/web/centos7compilephp7.html?utm_source=tuicool&utm_medium=referralPHP官方:http://php.net/Github源:https://github.com/php/php-src/releases 1 创建php用户和用户组,并在github下载php7源码 #######新建php用户和php组 [root@typecodes ~]# groupadd -r www &am…
==================== PHP 7.0 编译安装================== wget http://cn2.php.net/get/php-7.0.9.tar.bz2/from/this/mirror -- 下载php镜像tar xvf mirror -- 解压镜像cd php-7.0.9/ -- 进入安装目录sudo apt-get update -- 更新阿里云库 sudo apt-get install libkrb5-dev \ libc-client2007…
操作环境: 1.系统:Centos7.2 2.服务:Nginx 1.下载PHP7.0.2的安装包解压,编译,安装: $ cd /usr/src/ $ wget http://cn2.php.net/distributions/php-7.0.2.tar.gz $ .tar.gz $ cd php- 1.1 编译前检查 请检查是否安装了gcc ,没有的话执行yum install gcc 检查是否安装了libxml2 ,没有的话执行yum install libxml2 检查是否安装了libxml…
一.编译安装PHP 1. 下载源码包并解压 源码包地址:http://php.net/downloads.php 下载源码包 当前PHP最新本门是7.2.9,下载 php-7.2.9 源码包 wget http://be2.php.net/get/php-7.2.9.tar.gz/from/this/mirror -O php-7.2.9.tar.gz 解压源码包 解压缩 tar zxf php-7.2.9.tar.gz 进入解压缩后的目录,查看解压的文件 [root/usr/local/src…
买 Mac Pro 的时候,系统为 OS X 10.11.5,编译 PHP-5.6.21 的时候,也遇到一些坑,安装过程记录如下: Mac Pro 编译安装 PHP 5.6.21 及 问题汇总 后来,系统升级为 OS X 10.11.6,再后来,打算升级  PHP 至 5.6.28,报错: [报错1] ./configure 时报错 conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found [解决] 再次升级到最新的苹果系统 …
关于在CentOS6下编译安装Python2.7.6的方法非常的多了,小编以前也介绍过相关的文章了,下面一聚教程小编再来为各位介绍一下吧,希望文章能帮助到各位.   CentOS下面Python在升级到2.7.6的时候,没有找到安装包直接安装,只能通过源代码编译的方式来安装Python 2.7.6版本.这篇是编译和安装Python2.7.6的过程记录. CentOS系统中安装了development tools.要编译安装Python,执行下面代码:  代码如下 复制代码 $ pushd /us…
Ubuntu16.04下编译安装OpenCV3.4.0(C++ & python) 前提是已经安装了python2,python3 1)安装各种依赖库 sudo apt-get update sudo apt-get install build-essential sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev sudo apt-get in…
centos7.6环境下编译安装tengine-2.2.2的编译安装 .获取tengine2..2的源码包 http://tengine.taobao.org/download/tengine-2.2.2.tar.gz .获取tengine的编译参数 /usr/loca/nginx/sbin/nginx -V # tengine2..2的编译安装 .tar.gz cd tengine- ./configure --prefix=/usr/local/tengine- --with- --add-…
CentOS系统下面Python在升级到2.7.6的时候,没有找到安装包直接安装,只能通过源代码编译的方式来安装Python 2.7.6版本.这篇是编译和安装Python2.7.6的过程记录. CentOS系统中安装了development tools.要编译安装Python,执行下面代码: yum install gcc pushd /usr/local/src sudo mkdir python sudo chown $USER python cd python wget https://w…
centos 7 下 rabbitmq 3.8.0 & erlang 22.1 源码编译安装 安装前请检查好erlang和rabbitmq版本是否相匹配参考:RabbitMQ Erlang Version Requirements 1. erlang 22.1 源码编译安装 1.1 安装Erlang编译安装必要依赖 -openjdk-devel git 1.2 下载erlang 22.1源码包 wget http://erlang.org/download/otp_src_22.1.tar.gz…