Call to undefined function imagettfbbox()

使用larvel5时,引入“gregwar/captcha” 结果发现无法显示验证码,查看日志结果,报"PHP message: PHP Fatal error: Call to undefined function imagettfbbox()错误。
后来明白缺少freetype,就重新编辑了php,结果还是报缺少imagettfbbox()方法,不知还需要设置哪里,有遇到过的吗。指教!

系统:linux centos6.5
php 5.6.30

    './configure' '--prefix=/usr/local/php' '--enable-fpm' '--with-mcrypt' '--enable-mbstring' '--enable-pdo' '--with-curl' '--disable-debug' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-zlib' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-pcntl' '--enable-mbregex' '--with-mhash' '--enable-zip' '--with-pcre-regex' '--with-mysql' '--with-mysqli' '--with-openssl' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' '--enable-gd-native-ttf' '--with-gettext'

clipboard.png

clipboard.png

阅读 8.9k
1 个回答

需要 gd 库 + freetype

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题