Call to undefined function think\captcha\imagettftext()

        php安裝gd庫以後,在生成驗證碼圖片的時候報錯Call to undefined function think\captcha\imagettftext(),查閱資料(參考資料:http://www.shangzh.com/1094.html)可能是因爲gd庫缺失freetype支持,然後查找下載資源:https://download.savannah.gnu.org/releases/freetype/,下載安裝(位置:/usr/local/freetype),然後重新安裝gd,configure時添加指定額外參數--with-freetype-dir=/usr/local/freetype,安裝完後重啓php即可,驗證碼生成正常。

發佈了10 篇原創文章 · 獲贊 1 · 訪問量 5770
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章