gpt4 book ai didi

php - 我如何在 ubuntu 上重新编译 php?

转载 作者:可可西里 更新时间:2023-11-01 00:11:15 25 4
gpt4 key购买 nike

我收到这个错误

Call to undefined function imagecreatefromjpeg() 

在阅读之后我需要用

重新编译 php
- ./configure --with-jpeg-dir=/usr/lib OR any other directory which contains the BINARY library of libjpeg

但是什么目录以及是否有我需要启用的模块...

最佳答案

sudo apt-get install php5-gd
/etc/init.d/apache2 restart

关于php - 我如何在 ubuntu 上重新编译 php?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4812248/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com