ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

【庖丁解牛】图像处理库: 解决WeCenter至少需要有GD图像处理库才能正常运行

2021-04-17 23:55:38  阅读:250  来源: 互联网

标签:庖丁解牛 enable install GD yum usr 图像处理 php dir


错误复现

以下是安装wecenter时候的报错信息:
在这里插入图片描述
zmedu 致码高胜寒

解决方案一

[root@xinsz08 install]# yum install php-mysqlnd

解决方案二

如果方案一不管用,建议重新编译php,亲测有效:

在从新编译之前先安装依赖包:

 yum -y install curl-devel
 yum -y install postgresql-devel
 yum install libxslt-devel -y

安装libzip:
https://blog.csdn.net/xinshuzhan/article/details/107550083

修改lib库
https://blog.csdn.net/xinshuzhan/article/details/107550742

做好之后,使用下面的语句重新编译

[root@xinsz08 php-7.3.6]# ‘./configure’ ‘–prefix=/app/php’ ‘–with-pdo-pgsql’ ‘–with-zlib-dir’ ‘–with-freetype-dir’ ‘–enable-mbstring’ ‘–with-libxml-dir=/root/data/php-7.3.6/ext/libxml’ ‘–enable-soap’ ‘–enable-calendar’ ‘–with-curl’ ‘–with-gd’ ‘–with-pgsql’ ‘–disable-rpath’ ‘–enable-inline-optimization’ ‘–with-bz2’ ‘–with-zlib’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-pcntl’ ‘–enable-mbregex’ '–with-freetype-dir=/usr/include/freetype2/freetype ’ ‘–enable-exif’ ‘–enable-bcmath’ ‘–with-mhash’ ‘–enable-zip’ ‘–with-pcre-regex’ ‘–with-pdo-mysql’ ‘–with-mysqli’ ‘–with-jpeg-dir=/usr’ ‘–with-png-dir=/usr’ ‘–with-openssl’ ‘–with-fpm-user=zmedu’ ‘–with-fpm-group=zmedu’ ‘–with-libdir=/lib/x86_64-linux-gnu/’ ‘–enable-ftp’ ‘–with-gettext’ ‘–with-xmlrpc’ ‘–with-xsl’ ‘–enable-opcache’ ‘–enable-fpm’ ‘–with-iconv’ ‘–with-xpm-dir=/usr’ ‘–with-apxs2=/app/httpd24/bin/apxs’

总结

解决问题的方法有很多,但目前这两个是解决 图像处理库: 解决WeCenter至少需要有GD图像处理库才能正常运行 最佳方法

我是高胜寒,欢迎留言一起交流,我们下次再见

标签:庖丁解牛,enable,install,GD,yum,usr,图像处理,php,dir
来源: https://blog.51cto.com/xinsz08/2714589

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有