【庖丁解牛】圖像處理庫: 解決WeCenter至少須要有GD圖像處理庫才能正常運行

錯誤復現

如下是安裝wecenter時候的報錯信息:
在這裏插入圖片描述
zmedu 致碼高勝寒php

解決方案一

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

解決方案二

若是方案一無論用,建議從新編譯php,親測有效:linux

在重新編譯以前先安裝依賴包:sql

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

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

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

作好以後,使用下面的語句從新編譯socket

[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’ide

總結

解決問題的方法有不少,但目前這兩個是解決 圖像處理庫: 解決WeCenter至少須要有GD圖像處理庫才能正常運行 最佳方法post

我是高勝寒,歡迎留言一塊兒交流,咱們下次再見url

相關文章
相關標籤/搜索