如何进行 PHP 重新编译?图像创建真彩色错误
由于这是一个新问题,我认为可以创建一个新问题吗?
我之前的问题在这里:
imageantialias call to undefined function error with GD安装
Markus帮助我解决了问题,此后我联系了客户并为他们设置了VPS,我已经传输了文件和数据库,一切都运行良好。除了相同的错误之外,只是这一次,我收到了不同的错误;
Fatal error: Call to undefined function imagecreatetruecolor() in /home/public_html/admin/library/functions.php on line 232
我认为这与同一件事有关,并且需要重新编译 php?有人可以给我一些关于如何在 Mac OS X 上重新编译 php 的说明吗?我尝试了 PHP 文档,但我似乎无法理解它是如何工作的。
非常感谢!
As this is a new question I assume it's fine to create a new fresh question?
My previous question is here:
imageantialias call to undefined function error with GD installed
Markus helped me figure out the problem, I have since contacted the clients and set up a VPS for them, I have transferred the files and database and everything is running fine. Apart from the same error, only this time, I'm getting a different error;
Fatal error: Call to undefined function imagecreatetruecolor() in /home/public_html/admin/library/functions.php on line 232
I assume this is relating to the same thing and it required a php recompile? Could someone please give me some instructions on how to do a php recompile on Mac OS X, I tried the PHP docs but I can't seem to understand how it works.
Many Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您安装了正确版本的 PHP 和 GD。来自 PHP 手册:
Make sure you have the correct version of PHP and GD installed. From the PHP manual: