日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > php >内容正文

php

Mac--PHP已经开启gd扩展验证码不显示

發(fā)布時(shí)間:2023/12/2 php 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Mac--PHP已经开启gd扩展验证码不显示 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

錯(cuò)誤顯示:Call to undefined function imagettftext()

原因:

mac系統(tǒng)中自帶的php的gd庫中,缺少對(duì)freetype的支持,導(dǎo)致圖片無法顯示。

解決:

1 下載freetype,安裝即可

下載地址:https://download.savannah.gnu.org/releases/freetype/

下載完成后編譯安裝

make clean

./configure --with-static --with-shared

make & make install

2 安裝一個(gè)新的版本的PHP

url -s http://php-osx.liip.ch/install.sh | bash -s 7.2

?可能會(huì)出警告提示:

Detected macOS Mojave 10.14. There are serious issues with it, due to the original apache not loading foreign libraries anymore. PHP within apache will most certainly not work anymore if you proceed! The cli version still will. See this issue at https://github.com/liip/php-osx/issues/249 for details and discussion **** Restart this script withcurl -s https://php-osx.liip.ch/install.sh | bash -s force 7.1 to really install it

?大概意思為apache沒有加載,如果繼續(xù)的話PHP將不會(huì)在工作,直接忽略 執(zhí)行下面提示的命令

curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.1

?或者可以通過brew的方式安裝,參考下面鏈接

https://www.cnblogs.com/jingxiaoniu/p/11102255.html

?

以上就是這次的全部?jī)?nèi)容!

轉(zhuǎn)載于:https://www.cnblogs.com/jingxiaoniu/p/11114661.html

總結(jié)

以上是生活随笔為你收集整理的Mac--PHP已经开启gd扩展验证码不显示的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。