慧9建 发表于 2017-7-8 13:07:43

Mac下Call to undefined function imagettftext() 解决方案

  文章转载至Mac下Call to undefined function imagettftext()终极解决方案
  安装了一套onethink程序准备调试,结果在登录页面发现验证码无法显示,单独访问验证码页面报错Call to undefined function imagettftext()。
  使用搜索引擎查询了下,发现问题的关键是
  gd未安装freetype,访问phpinfo.php文件发现


  ​
  解决方案
  缺点:不过phpinfo有植入广告哈


  ​
  http://php-osx.liip.ch
  curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
  curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
  curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
  可以通过phpinfo函数查看本机的php版本号再选择替换不迟
  终端执行可能会很慢呀,无需开启vpn直接使用自家的宽带就可以更新了,我用的还是移动宽带哈
  freetype安装成功


  ​
  系统信息





From :blog.sina.com.cn/s/blog_1380a6f6b0102w1pd.html
页: [1]
查看完整版本: Mac下Call to undefined function imagettftext() 解决方案